1829106 Members
2363 Online
109986 Solutions
New Discussion

LVM Problem

 
Dewa Negara_4
Regular Advisor

LVM Problem

Please help. I have a problem on my L-class server. There are 2 fibre channel disks on vg05 both mirroring. One of them is faulty. After replace the faulty disk, I run command vgcfgrestore and vgchange as below. But got an error message mentioned that the component is not exist. How can I resolve the problem? Please help.

Thanks.
Negara

crauapp1:/admdir# vgchange -a y /dev/vg05
-------
--- Physical volumes ---
PV Name /dev/dsk/c8t4d0
PV Name /dev/dsk/c6t4d0 Alternate Link
PV Status available
Total PE 4340
Free PE 2201
Autoswitch On

PV Name /dev/dsk/c9t0d0
PV Name /dev/dsk/c7t0d0 Alternate Link
PV Status unavailable
Total PE 4340
Free PE 2201
Autoswitch On

crauapp1:/admdir# vgcfgrestore -n /dev/vg05 /dev/rdsk/c7t0d0
Volume Group configuration has been restored to /dev/rdsk/c7t0d0
crauapp1:/admdir# vgchange -a y /dev/vg05
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c9t0d0":
A component of the path of the physical volume does not exist.
Volume group "/dev/vg05" has been successfully changed.
Santos
6 REPLIES 6
Rajeev  Shukla
Honored Contributor

Re: LVM Problem

Hi,
What do you see through ioscan command.

Use ioscan -fnCdisk to see if both these disks show as claimed, also their alternate path should come as claimed.

cheers
Rajeev
Dewa Negara_4
Regular Advisor

Re: LVM Problem

Hi,

Yes, both primary and alternate are CLAIMED.

disk 17 0/4/0/0.8.0.255.1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318203FC
/dev/dsk/c7t0d0 /dev/rdsk/c7t0d0

disk 33 0/7/0/0.8.0.255.1.0.0 sdisk CLAIMED DEVICE SEAGATE ST318203FC
/dev/dsk/c9t0d0 /dev/rdsk/c9t0d0
Santos
Rajeev  Shukla
Honored Contributor

Re: LVM Problem

Ok i got you the problem is beacuse you have restored the volume group configuration on only c7t0d0 where as c9t0d0 is also same disk, you have to use both the disk which are in volume group with vgcfgrestore command.

use vgcfgrestore -n /dev/vg05 /dev/rdsk/c7t0d0 /dev/dsk/c9t0d0

and then do vgchange

that should work.

Rajeev
Dewa Negara_4
Regular Advisor

Re: LVM Problem

Hi,

It seems like the command is not working. Pelase see below.

Thanks.

Volume group "/dev/vg05" has been successfully changed.
crauapp1:/admdir# vgcfgrestore -n /dev/vg05 /dev/rdsk/c7t0d0 /dev/rdsk/c9t0d0
Usage: vgcfgrestore
[-R]
[-F]
{ -n vgname |
-f VGConfPath }
{ -l |
{[-o OldPVPath] PVPath}}
OldPVPath and PVPath : character special files
"/dev/rdsk/c9t0d0": Too many arguments
Santos
James Murtagh
Honored Contributor

Re: LVM Problem

Hi Negara,

You really want to run vgcfgrestore when the volume group is offline. It shouldn't matter which disk you restore to as they are the same physical device. Try the following after unmounting filesystems belonging to this volume group :

# vgchange -a n vg05
# vgcfgrestore -n vg05 /dev/rdsk/c9t0d0
# vgchange -a y vg05

The last restore failed because of the syntax - you can only restore to one disk at a time.

Cheers,

James.
Todd McDaniel_1
Honored Contributor

Re: LVM Problem

You can restore the info from the one good disk to the other, of course the vg05 must be deactivated:

#vgchange -a n /dev/vg05
#vgcfgrestore -n /dev/vg05 -o /dev/dsk/c7t0d0 /dev/dsk/c9t0d0

This will copy the info from c7 to the c9 disk.



Unix, the other white meat.