How to enable volume group (2451 Views)
Reply
Frequent Advisor
csreenivas
Posts: 67
Registered: ‎05-15-2007
Message 1 of 8 (2,451 Views)
Accepted Solution

How to enable volume group

We have rebooted the server.But we didn't see the vg02 after reboot? I have tried with vgchange but it is showing the below message.
Can anyone of you help me in this?

vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t4d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
Honored Contributor
Honored Contributor
DCE
Posts: 1,593
Registered: ‎05-16-2005
Message 2 of 8 (2,451 Views)

Re: How to enable volume group



You may of lost a disk during the reboot

Does dev/dsk/c2t4d0 show up as a claimed device with an ioscan -fnC disk?

Also, do a
strings /wtc/lvmtab
to see if c2t4d0 is actually assigned to vg02
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 8 (2,451 Views)

Re: How to enable volume group

Shalom,

Depends on whether the vg is part of shared storage or serviceguard.

basic:
vgchange -a y vg02

Should activate the volume group.

Assuming it does not ever need to be activated on another system, you can auto activate in /etc/lvmrc

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Frequent Advisor
csreenivas
Posts: 67
Registered: ‎05-15-2007
Message 4 of 8 (2,451 Views)

Re: How to enable volume group

The disk c2t4d0 is not showing in ioscan.
It shows below info with strings /etc/lvmtab.

strings /etc/lvmtab
/dev/vg02
/dev/dsk/c0t3d0
/dev/dsk/c2t4d0
/dev/dsk/c4t5d0

Can you please help us in solving this issue.
Honored Contributor
Geoff Wild
Posts: 7,170
Registered: ‎06-04-2001
Message 5 of 8 (2,451 Views)

Re: How to enable volume group

If c2t4d0 doesn't show - then either your devs were renumbered or the disk has died.

If it has died, you should see a NO_HW in the output of an ioscan -funC disk

If that's the case, then you need to replace the disk and do a vgcfgrestore, then restore your data.

If the hardware is fine, you could try exporting/importing the vg:

vgexport -s -v -m /tmp/vg02.map /dev/vg02

mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000

vgimport -s -v -m /tmp/vg02.map /dev/vg02

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Honored Contributor
Honored Contributor
DCE
Posts: 1,593
Registered: ‎05-16-2005
Message 6 of 8 (2,451 Views)

Re: How to enable volume group



It sounds like you may of lost a disk. Hopefully the VG is mirrored, although if the vg will not come on line,it sounds like it is not.

Check your syslog for error messages.

If the disk is bad, you will have to get it replaced, and restore the data from your last good backup
Frequent Advisor
csreenivas
Posts: 67
Registered: ‎05-15-2007
Message 7 of 8 (2,451 Views)

Re: How to enable volume group

When I try to export the vgo2 it is showing the below message.

#vgexport -s -v -m /tmp/vg02.map /dev/vg02
Beginning the export process on Volume Group "/dev/vg02".
Volume group "/dev/vg02" is still active.
vgexport: Couldn't export volume group "/dev/vg02"
Respected Contributor
Robert Salter
Posts: 235
Registered: ‎09-30-1998
Message 8 of 8 (2,451 Views)

Re: How to enable volume group

Did you do a diskinfo on the disk?
diskinfo /dev/rdsk/c2t4d0
Or a pvdisplay?
pvdisplay /dev/dsk/c2t4d0
Or as Geoff said did you get any NO_HWs in the ioscan?
If you can see the disk from any of the above and there isn't a NO_WH, then you may have lost the header info on the disk. You can recover it with a vgcfgrestore.

If you're going to do the vgexport and want to deactivate the volume group do a
vgchange -a n /dev/vg02

Think beer,
robert
Time to smoke and joke
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.