cancel
Showing results for 
Search instead for 
Did you mean: 

moving lvols

khilari
Regular Advisor

moving lvols

Hi Guys, i have 4 disks in vg00.. And 1 lvol is on 3 of them. Now one of the disks is failing and i have to change it. So, how do i shift that i lvol from 1 disk to another...
Thanks
5 REPLIES
James R. Ferguson
Acclaimed Contributor

Re: moving lvols

HI:

A vg00 comprised of four physical disks sounds like a poorly configured system; certainly so if (1) all of the logical volumes within vg00 aren't mirrored (or you use hardware mirroring); or if (2) you have non-standard operating system logical volumes (application data).

You don't indicate if anything is mirrored or not. If not, you may be able to 'pvmove' extents off the failing member.

You should look at this:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

Regards!

...JRF...

Michael Steele_2
Honored Contributor

Re: moving lvols

Hi

Yeah, bad design.

Best solution is to reinstall the system from an ignite tape, properly defining each lvol and file system to avoid this kind of mess.
Support Fatherhood - Stop Family Law
AwadheshPandey
Honored Contributor

Re: moving lvols

Hello Khilari,

Is there any mirroring in vg00?
Pls paste vgdisplay -v vg00 and lvdisplay -v /dev/vg00/lvolX o/p.

You can use pvmove -n /dev/vg00/lvolX source disk target disk.

Regards,

Awadhesh
It's kind of fun to do the impossible
Suraj K Sankari
Honored Contributor

Re: moving lvols

Hi Khilari,
The best option is take a Ignite backup replace the faulty disk and restore it in intractive mode.


Suraj
Ishwar_1
Frequent Advisor

Re: moving lvols

khilari,

kindly run the command

#ioscan -fC disk to see which disk as failed

If S/W State is "NO_HW" or other than "claimed" means that disk as got failed.
Another way to check the status of failed disk
>pvdisplay /dev/dsk/c1t2d3 |grep "PVStatus"
PV Status unavailable
status available --> Working
unavailable --> Not Working

If you want to replace the fault disk. Shutdown your system and connect the new one
once the disk as been connected boot the system to single user mode. Check whether the disk as been detected
#ioscan -f -n -N -C disk
intialize the New disk
#pvcreate "New disk Name"
#vgextend vgname "New disk Name"
#pvmove faileddisk "New disk Name"
At last you can remove the physical disk from the volume group once the data as been transfered
#vgreduce "Fault Disk"

Hope this information will help you