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

HP-UX extending strict/ distributed volumes with PVG

how to extend strict/distributed volumes.
HP-UX version : 11.31
HOST1@root:/> ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 0 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP IR Volume
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 2 0/3/0/0/0/0.10.4.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 3 0/3/0/0/0/0.10.4.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d1 /dev/rdsk/c3t0d1
disk 4 0/3/0/0/0/0.10.4.0.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d2 /dev/rdsk/c3t0d2
disk 5 0/3/0/0/0/0.10.4.0.0.0.3 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d3 /dev/rdsk/c3t0d3
disk 6 0/3/0/0/0/0.10.4.0.0.0.4 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c3t0d4 /dev/rdsk/c3t0d4
disk 7 0/3/0/0/0/1.20.4.0.0.0.0 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 8 0/3/0/0/0/1.20.4.0.0.0.1 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
disk 9 0/3/0/0/0/1.20.4.0.0.0.2 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d2 /dev/rdsk/c5t0d2
disk 10 0/3/0/0/0/1.20.4.0.0.0.3 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d3 /dev/rdsk/c5t0d3
disk 11 0/3/0/0/0/1.20.4.0.0.0.4 sdisk CLAIMED DEVICE HP OPEN-V
/dev/dsk/c5t0d4 /dev/rdsk/c5t0d4
HOST1@root:/> ioscan -funC disk |wc -l
25
HOST1@root:/>
HOST1@root:/> xpinfo -i

Device File ALPA Tgt Lun Port CU:LDev Type Serial#
================================================================================
/dev/rdisk/disk12 d5 00 00 CL6A 00:28 OPEN-V 00025796
/dev/rdisk/disk13 e4 00 01 CL5A 01:02 OPEN-V 00025796
/dev/rdisk/disk14 e4 00 02 CL5A 03:15 OPEN-V 00025796
/dev/rdisk/disk15 e4 00 03 CL5A 04:02 OPEN-V 00025796
/dev/rdisk/disk16 d5 00 04 CL6A 02:02 OPEN-V 00025796
HOST1@root:/>
HOST1@root:/> ioscan -m dsf
Persistent DSF Legacy DSF(s)
========================================
/dev/rchgr/autoch1 /dev/rac/c1t0d0
/dev/rdisk/disk1 /dev/rdsk/c0t0d0
/dev/rdisk/disk1_p1 /dev/rdsk/c0t0d0s1
/dev/rdisk/disk1_p2 /dev/rdsk/c0t0d0s2
/dev/rdisk/disk1_p3 /dev/rdsk/c0t0d0s3
/dev/pt/pt2 /dev/rscsi/c2t0d0
/dev/rscsi/c4t0d0
/dev/rtape/tape3_BEST /dev/rmt/c6t0d0BEST
/dev/rtape/tape3_BESTn /dev/rmt/c6t0d0BESTn
/dev/rtape/tape3_BESTb /dev/rmt/c6t0d0BESTb
/dev/rtape/tape3_BESTnb /dev/rmt/c6t0d0BESTnb
/dev/rtape/tape4_BEST /dev/rmt/c1t0d1BEST
/dev/rtape/tape4_BESTn /dev/rmt/c1t0d1BESTn
/dev/rtape/tape4_BESTb /dev/rmt/c1t0d1BESTb
/dev/rtape/tape4_BESTnb /dev/rmt/c1t0d1BESTnb
/dev/rdisk/disk12 /dev/rdsk/c3t0d0
/dev/rdsk/c5t0d0
/dev/rdisk/disk13 /dev/rdsk/c3t0d1
/dev/rdsk/c5t0d1
/dev/rdisk/disk14 /dev/rdsk/c3t0d2
/dev/rdsk/c5t0d2
/dev/rdisk/disk15 /dev/rdsk/c3t0d3
/dev/rdsk/c5t0d3
/dev/rdisk/disk16 /dev/rdsk/c3t0d4
/dev/rdsk/c5t0d4
HOST1@root:/dev/dsk> insf -C disk
insf: Installing special files for sdisk instance 21 address 0/3/0/0/0/0.10.4.0.0.0.5
insf: Installing special files for sdisk instance 22 address 0/3/0/0/0/0.10.4.0.0.0.6
insf: Installing special files for sdisk instance 23 address 0/3/0/0/0/0.10.4.0.0.0.7
insf: Installing special files for sdisk instance 24 address 0/3/0/0/0/0.10.4.0.0.1.0
insf: Installing special files for sdisk instance 17 address 0/3/0/0/0/1.20.4.0.0.0.5
insf: Installing special files for sdisk instance 18 address 0/3/0/0/0/1.20.4.0.0.0.6
insf: Installing special files for sdisk instance 19 address 0/3/0/0/0/1.20.4.0.0.0.7
insf: Installing special files for sdisk instance 20 address 0/3/0/0/0/1.20.4.0.0.1.0
insf: Installing special files for esdisk instance 25 address 64000/0xfa00/0x17
insf: Installing special files for esdisk instance 26 address 64000/0xfa00/0x18
insf: Installing special files for esdisk instance 27 address 64000/0xfa00/0x19
insf: Installing special files for esdisk instance 28 address 64000/0xfa00/0x1a

vgextend -g PVGRAID5-2 /dev/vgsap /dev/disk/disk25 /dev/disk/disk26


HOST1@root:/dev/dsk> strings /etc/lvmpvg
VG /dev/vgsap
PVG PVRAID5
/dev/disk/disk12
/dev/disk/disk13
/dev/disk/disk14
/dev/disk/disk15
HOST1@root:/dev/dsk> cp /etc/lvmpvg /var/tmp/lvmpvg.bck
HOST1@root:/dev/dsk> vgextend -g PVRAID5-2 /dev/vgsap /dev/disk/disk25 /dev/disk/disk26 /dev/disk/disk27 /dev/disk/disk28
Volume group "/dev/vgsap" has been successfully extended.
Physical volume group "PVRAID5-2" has been successfully extended.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST1@root:/dev/dsk> strings /etc/lvmpvg
VG /dev/vgsap
PVG PVRAID5
/dev/disk/disk12
/dev/disk/disk13
/dev/disk/disk14
/dev/disk/disk15
PVG PVRAID5-2
/dev/disk/disk25
/dev/disk/disk26
/dev/disk/disk27
/dev/disk/disk28
HOST1@root:/dev/dsk>
HOST1@root:/dev/dsk> lvextend -L 135168 /dev/vgsap/lvsapdata1 PVRAID5-2
Logical volume "/dev/vgsap/lvsapdata1" has been successfully extended.
Volume Group configuration for /dev/vgsap has been saved in /etc/lvmconf/vgsap.conf
HOST1@root:/dev/dsk>

Installing Ingress Controller - Kubernetes

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