HP-UX - How to convert Strict/Distributed to normal Volume

use this following website to view and discuss and post about various UNIX related issues and break fixes. please share your views.

http://unixadvice.formyjob.net/forum.htm


How to convert Strict/Distributed volumes to normal.
Some times the HP engineers will create the volumes with strict / distributed instead of doing striping in the volume manager. We may not have enough disks to extend the volumes, in that case we can remove the strict allocation and make the volume as normal volume.

To turn off the Distributed allocation policy:

# lvchange -D n /dev/vg02/lvol1

That can be done online. After that you should be able to do your lvextend.


Change the allocation policy of a logical volume to nonstrict:

#lvchange -s n /dev/vg01/lvol7




HOST2@root:/> lvdisplay -v /dev/vgsap/test |more
--- Logical volumes ---
LV Name /dev/vgsap/test
VG Name /dev/vgsap
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24784
Current LE 3098
Allocated PE 3098
Stripes 0
Stripe Size (Kbytes) 0
Bad block NONE
Allocation PVG-strict/distributed
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk12 628 628
/dev/disk/disk13 628 628
/dev/disk/disk14 628 628
/dev/disk/disk15 627 627
/dev/disk/disk19 498 498
/dev/disk/disk22 89 89

--- Logical extents ---
LE PV1 PE1 Status 1
000000000 /dev/disk/disk12 00011520 current
000000001 /dev/disk/disk13 00011520 current
000000002 /dev/disk/disk14 00011520 current
000000003 /dev/disk/disk15 00011520 current
000000004 /dev/disk/disk12 00011521 current
000000005 /dev/disk/disk13 00011521 current
000000006 /dev/disk/disk14 00011521 current
000000007 /dev/disk/disk15 00011521 current
000000008 /dev/disk/disk12 00011522 current
000000009 /dev/disk/disk13 00011522 current
000000010 /dev/disk/disk14 00011522 current
000000011 /dev/disk/disk15 00011522 current
000000012 /dev/disk/disk12 00011523 current
000000013 /dev/disk/disk13 00011523 current
000000014 /dev/disk/disk14 00011523 current
000000015 /dev/disk/disk15 00011523 current
000000016 /dev/disk/disk12 00011524 current
HOST2@root:/>

HOST2@root:/> lvchange -D n /dev/vgsap/test
Logical volume "/dev/vgsap/test" has been successfully changed.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST2@root:/>

HOST2@root:/> lvchange -s n /dev/vgsap/test
Logical volume "/dev/vgsap/test" has been successfully changed.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST2@root:/>

HOST2@root:/> lvextend -L 26832 /dev/vgsap/test
Logical volume "/dev/vgsap/test" has been successfully extended.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST2@root:/>

No comments:

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...