HPE 9000 and HPE e3000 Servers
1825766 Members
1958 Online
109687 Solutions
New Discussion

Re: VG / LV Help

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

VG / LV Help

Hi,

From the new L2000 hpux 11i server, a vg01 is not able to be activated, but the lvol# are created and are in fstab. Startup is fine then.

pvdisply error is:
--------------------------
pvdisplay: Cannot display physical volume "/dev/dsk/c2t2d0".
--------------------------

/etc/fstab is: (omit /vg00)
-----------------------
/dev/vg01/lvol1 /disk1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/lvol2 /disk2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/lvol3 /disk3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
-------------------

I would like to know how to remove the LV and VG01 safely without damaging c2t2d0 physical drive. There are nothing in lv* for vg01 though.

Very appreciated if getting assistance here.

Steven
Steve
7 REPLIES 7
Michael Tully
Honored Contributor
Solution

Re: VG / LV Help

If the volume group exists and you don't want it you can easily remove using the 'vgexport' command.

Exporting the volume group will not damage the drive in any way, but the previous contents will be lost. If your not worried about this, then you can proceed.

# vgexport /dev/vg01

To re-use the disk for another volume group, simply use the 'pvcreate' command.

# pvcreate -f /dev/rdsk/c2t2d0

Anyone for a Mutiny ?
MANOJ SRIVASTAVA
Honored Contributor

Re: VG / LV Help

Hi Steven

You can either do it form the command line or the SAM .

command line

ensure that eithert the lvols are bacled up or not rquired


lvreduce /dev/vg01/lvolXX

then

pvreduce /dev/vg01 /dev/dsk/cxtydz where ther are more than one disk

and finally
vgexport /dev/vg01


after this you can do rmsf to remove the disk device file or do a pvcreate to include the disk in some other vg.


Manoj Srivastava
Bill McNAMARA_1
Honored Contributor

Re: VG / LV Help

strings /etc/lvmtab

to verify that the disk should be configured

then vgdisplay -v vg01
to see what is actually configured.

then ll /dev/vg01/lvol*
to see what lvols are/have been created

Only lvol1, 2, 3 are mounting - perhaps there's a forth lvol that's not.
(the ll will tell you, as will the vgdisplay)

The lvol4 (if exists) is possibly on the missing PV.

ioscan -fnkC disk to see if it shows up on the system.

If not, post up a full
ioscan -fnk

Later,
Bill
It works for me (tm)
Steven Chen_1
Super Advisor

Re: VG / LV Help

Thank you all for the help.

I am posting detail info for further diag. and inst.:

--------------------------

#strings /etc/lvmtab
/dev/vg00
/dev/dsk/c1t2d0
/dev/vg01
/dev/dsk/c4t0d1
/dev/dsk/c4t0d2
/dev/dsk/c4t0d3
/dev/dsk/c6t0d1
/dev/dsk/c6t0d2
/dev/dsk/c6t0d3
-----------------------------------------------------------------------------------

Very appreciated.

Steven

#vgdisplay -v vg01
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg01".

-----------------------------------------------------------------------------------

#ll /dev/vg01/lvol*
br--r----- 1 root sys 64 0x010001 Jun 20 15:47 /dev/vg01/lvol1
br--r----- 1 root sys 64 0x010002 Jun 20 15:47 /dev/vg01/lvol2
br--r----- 1 root sys 64 0x010003 Jun 20 15:47 /dev/vg01/lvol3

--------------------------------------------------------------------------------

#ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 6 0/7/0/0.8.0.108.0.0.0 sdisk CLAIMED DEVICE HP A6188A
Steve
James R. Ferguson
Acclaimed Contributor

Re: VG / LV Help

Hi Steven:

Check your 'etc/lvmrc' file. Make sure that:

AUTO_VG_ACTIVATE=1

If the variable is zero, this is your problem. Change it to one activate all volume groups by default at bootup. Read the commentary in this configuration file for more information.

Regards!

...JRF...
Steven Chen_1
Super Advisor

Re: VG / LV Help

Jame,

AUTO_VG_ACTIVATE=1 is what I get on lvmrc file.
Steve
Bill McNAMARA_1
Honored Contributor

Re: VG / LV Help

according to the ioscan, none of the PVs in vg01 are available.

ie, either there's a scsi card failure, scsi id change, device powered off or vg was moved.

attach an

ioscan -fnk

to see if the c4 card shows at all.

Later,
Bill
It works for me (tm)