1834499 Members
2679 Online
110068 Solutions
New Discussion

pvmove question

 
SOLVED
Go to solution
miracle
Frequent Advisor

pvmove question

Hello,

I have a volume group that has one logical volume and it spans 6 LUN's. I want to replace one LUN in this 6 with another one. It is not striped.

Can I use this {pvmove /dev/dsk/c1t0d0 /dev/dsk/c2t0d0} like in the man page?
I am not sure as the man page is 100% clear when there is a LV that spans more than one LUN.

Any help appreciated.
1 REPLY 1
Sundar_7
Honored Contributor
Solution

Re: pvmove question

Sure, you can use pvmove to move the PEs from one LUN to the other even if the LV spans multiple LUNS

# pvcreate /dev/rdsk/

# vgextend /dev/vg01 /dev/dsk/

# pvmove /dev/dsk/c1t0d0 /dev/dsk/

pvmove can fail if the system is not current on LVM patches.

I would recommend a backup of the LV before executing pvmove. Also make sure you dont interrupt the command in between :-)

If you can take a downtime of the system, install the latest LVM cumulative patch before going ahead with the change
Learn What to do ,How to do and more importantly When to do ?