UNIXADVICE
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HP-UX - How to convert HP strict/distributed Volumes to Normal

Go down

HP-UX - How to convert HP strict/distributed Volumes to Normal Empty HP-UX - How to convert HP strict/distributed Volumes to Normal

Post  Admin Thu Jun 24, 2010 1:40 am

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:/>
Admin
Admin
Admin

Posts : 4
Join date : 2010-06-24
Age : 47

http://unixadvice.formyjob.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum