1830057 Members
2442 Online
109998 Solutions
New Discussion

Strange /etc/lvmtab

 
Machu
New Member

Strange /etc/lvmtab

Dear all,

I have a strange /etc/lvmtab on my HP L1000.
One of the mirrored disk of vg01 was faulty and my procedure to replace it doesn't work this time :

1) ioscan to find which disk is faulty
2) disk replacement
3) pvcreate -f /dev/rdsk/c1t2d0
4) vgcfgrestore -n /dev/rdsk/c1t2d0 (this command never end today :-( )
5) vgchange -a y /dev/vg01
6) vgsync /dev/vg01

Here is my lvmtab file :
#strings /etc/lvmtab
/dev/vg00
:6U
/dev/dsk/c2t0d0
/dev/dsk/c1t0d0
/dev/vg01
i:78
/dev/dsk/c2t2d0
#

I already try to move the current /etc/lvmtab and to recreat it with the vgscan -av command but the new file still the same.

Any idea ?

Regards,

Antony
6 REPLIES 6
Sanjay_6
Honored Contributor

Re: Strange /etc/lvmtab

Hi,

the correct procedure is,

1) ioscan to find which disk is faulty
2) disk replacement
3) vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t2d0
4) vgchange -a y /dev/vg01
5) vgsync /dev/vg01

But you need the old lvmtab since the new lvmtab does not have the disk that went bad listed in it. you don't need to do a pvcreate on a disk that you want to replace using vgcfgrestore.

Hope this helps.

Regds

John Poff
Honored Contributor

Re: Strange /etc/lvmtab

Hi,

I have a couple of questions.

Did c1t2d0 show up in an ioscan after you replaced the disk? Is c1t2d0 a separate disk or is it an alternate path to c2t2d0?

JP
Uday_S_Ankolekar
Honored Contributor

Re: Strange /etc/lvmtab

I think you vgcfgrestore command is not correct.

vgcfgrestore -n /dev/vg01 /dev/rdsk/diskname
followed by vgchange -a y /dev/vg01,
vgsync /dev/vg01

-USA..
Good Luck..
Todd McDaniel_1
Honored Contributor

Re: Strange /etc/lvmtab

Quoting Sanjay:
But you need the old lvmtab since the new lvmtab does not have the disk that went bad listed in it. you don't need to do a pvcreate on a disk that you want to replace using vgcfgrestore.

unquote

I agree you dont need to vgscan to replace a disk unless your /etc/lvmtab is messed up.

You dont need to pvcreate either if the disk is still listed in /etc/lvmtab as well.

The only steps i routinely do for non-root mirrored disks is:

ioscan -fnC disk
vgcfgrestore -n /dev/vg01 /dev/dsk/cXtXdX
vgchange -a y /dev/vg01
vgsync /dev/vg01
Unix, the other white meat.
Machu
New Member

Re: Strange /etc/lvmtab

Thanks for your (very fast) answer,

Sanjay: I will update my way to do with Your procedure...

John Poff:
all the disks are CLAIMED in the ioscan
this is a separate disk
There is 4 disks :
2x 9GB disk for the OS (mirrored)
2x 9GB disks for the data (mirrored)

Regards,

Antony
Machu
New Member

Re: Strange /etc/lvmtab

OK for the vgrestore line : I made a bad copy/paste... Sorry !

Indeed, the correct line was :
# vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t2d0