1834259 Members
2446 Online
110066 Solutions
New Discussion

LVM configuration

 
SOLVED
Go to solution
Cesare Di Pietro_1
New Member

LVM configuration

I had the vg00 whith 2 disk mirrored, one disk is been substituted and when the new disk has been insered i have this segnalation when i exec the command vgcfgbackup:
"vgcfgbackup /dev/vg00
vgcfgbackup: /etc/lvmtab is out of date with the running kernel:Kernel indicates 3 disks for "/dev/vg00"; /etc/lvmtab has 2 disks.
Cannot proceed with backup."

What can I do to realigned the configuration?

Thanks
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: LVM configuration

Ideally,

put the replaced disk back

break the mirror.

vgreduce the second disk out of the volume group.

save lvm configuration

make the disk switch.

re-mirror.

What you need to do if you want this new disk in the volume group is extend the volume group to include the new disk.

You may need this little procedure.

cd /etc
mv lvmtab lvmtab.old

vgscan -a

vgreduce -f

follow the instructions this command displayes exactly.

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
Henk Geurts
Esteemed Contributor

Re: LVM configuration

you confused the vgcfgbackup with vgcfgrestore:


when you have replaced a root disk with mirror:

vgcfgrestore -n /dev/vg00 /dev/rdsk/cxtxdx
vgchange -a y /dev/vg00
vgsync /dev/vg00 (if nesseseary)
mkboot /dev/rdsk/cxtxdx
mkboot -a "hpux -lq" /dev/rdsk/cxtxdx

regards


Pete Randall
Outstanding Contributor

Re: LVM configuration

Henk has pointed you in the right direction - you certainly don't need to rebuild your mirrors from scratch. That's the whole point of having mirrors in the first place: to recover from disk failures.


Pete

Pete
Cesare Di Pietro_1
New Member

Re: LVM configuration

Thanks.