1829863 Members
2186 Online
109993 Solutions
New Discussion

Volume Group

 
manu_9
Frequent Advisor

Volume Group

If one of the disk fails in the volume group having 5 disks in total.what is the procedure to get the things intact , Will data loss happen ??? .As in my case the volume grp is still active by ls -l hangs.
4 REPLIES 4
Bharat Katkar
Honored Contributor

Re: Volume Group

Manu,
If that disk is physically bad and you don't have any mirroring or backup then you will loose the data. If you know the LV's configured on that PV and have a backup of same then you can replace the bad disk and try using "vgcfgrestore" for that particular VG.
Also have a look at this thread for "vgcfrestore"

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=620723

Regards,

You need to know a lot to actually know how little you know
manu_9
Frequent Advisor

Re: Volume Group

Thanks , But if i do the following

1) Replace the bad disk with a Good one and do
a)vgchange -a y /dev/datavg
b)vgcfgrestore -n

what are the possible alternatives resulting minimum loss.
Anand_20
Advisor

Re: Volume Group

When disk fail occurs the mounted partitions belongs to the disk on this volume group will be unavailable.

Immediate solution is to replace the disk and restore the data from backup.

Moving disk
1. Backup data and lvm configuration (vgcfgbackup)
2. vgchange -a n /dev/vg_name to deactivate volume group
3. vgexport /dev/vg_name to remove volume group
4. replace disk
5. vgscan -v
6. vgimport /dev/vg_name /dev/dsk/device to re-add into volume
7. vgchange -a y /dev/vg_name to reactivate volume group

After performing the above restore the backups


manu_9
Frequent Advisor

Re: Volume Group

Thanks to all who replied .