Operating System - HP-UX
1834884 Members
2521 Online
110071 Solutions
New Discussion

Re: unable to create volume groups

 
Joe Robinson_1
Occasional Advisor

unable to create volume groups

I have 2 FW SCSI drives (Seagates) that I'm loading into an external chassis to add to a server that will serve as a test box. Problem: both drives were used in the past, and have VG's on them. The drives show up as unused, but when I try to add a vg to them, I'm getting errors in that the physical extents from the old vg are still used. How can I clear these old segments off of these drives?

 

 

P.S. This thread has been moevd from Disk to HP-UX > LVM and VxVM. - Hp forum Moderator

3 REPLIES 3
paul courry
Honored Contributor

Re: unable to create volume groups

Well I'm just a newbie HPUX sys admin, but I think the MEDIAINIT command might just do what you want.

Michael Tully
Honored Contributor

Re: unable to create volume groups

Hi Joe,

Try the following to get you started.

The -f option forces clear any old vg
information that is on the disk and tells
the disk that it is goinf to be used for
LVM.

# pvcreate -f /dev/dsk/cXtXdX
# vgextend /dev/yourvg /dev/dsk/cXtXdX

HTH
Michael
Anyone for a Mutiny ?
Shahul
Esteemed Contributor

Re: unable to create volume groups


Hi

U find out ur disk's device files correctly by using HDD's ID. Then do the following

#ioscan -fnC disk
Make sure that ur HDDs are listed here.
#diskinfo /dev/rdsk/cxtxdx

Confirm ur HDD's type model size ...etc
#pvcreate -f /dev/dsk/cxtxdx
#vgextend /dev/vgxx /dev/dsk/cxtxdx

Verify ur addition

#strings /etc/lvmtab

I hope now U will be able to add the HDDs to VG

Best of luck

Shahul