Ampliar lvol3 / hp-ux en caliente (si tienes disco)
Encontré una forma de ampliar el / sin mucho trabajo.
Una opción es sacar un ignite y restaurarlo con distintos tamaños de lvoles, pero lo veo demasiado complicado, y todo porque el / tiene que ser contiguous.
El truquillo es el siguiente:
El lvol3 es el / y el siguiente suele ser el /home y el siguiente el /tmp. Si hay extends vacios, co mover el lvol4 y el lvol5 quedaría sitio. Se puede luego hacer un lvextend del lvol3.
HOST:/root#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 368528 154664 70% /
/dev/vg00/lvol1 655360 343088 309912 53% /stand
/dev/vg00/lvol9 3145728 2071256 1068656 66% /var
/dev/vg00/lvol8 4194304 2989792 1195168 71% /usr
/dev/vg00/lvol5 2097152 652048 1434088 31% /tmp
/dev/vg00/lvol7 8388608 6776928 1599112 81% /opt
/dev/vg00/lvol4 524288 21320 499160 4% /homeHOST:/root#lvdisplay -v /dev/vg00/lvol4
— Logical volumes —
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 512
Current LE 4
Allocated PE 4
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default— Distribution of logical volume —
PV Name LE on PV PE on PV
/dev/disk/disk1_p2 4 4— Logical extents —
LE PV1 PE1 Status 1
00000 /dev/disk/disk1_p2 00265 current
00001 /dev/disk/disk1_p2 00266 current
00002 /dev/disk/disk1_p2 00267 current
00003 /dev/disk/disk1_p2 00268 currentHOST:/root# pvmove /dev/disk/disk1_p2:265-268 /dev/disk/disk1_p2
Transferring logical extents of logical volume “/dev/vg00/lvol4″…
Physical volume “/dev/disk/disk1_p2″ has been successfully moved.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.confHOST:/root#lvdisplay -v /dev/vg00/lvol4
— Logical volumes —
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 512
Current LE 4
Allocated PE 4
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default— Distribution of logical volume —
PV Name LE on PV PE on PV
/dev/disk/disk1_p2 4 4— Logical extents —
LE PV1 PE1 Status 1
00000 /dev/disk/disk1_p2 00421 current
00001 /dev/disk/disk1_p2 00422 current
00002 /dev/disk/disk1_p2 00423 current
00003 /dev/disk/disk1_p2 00424 currentpvdisplay -v /dev/disk/disk1_p2
00250 current /dev/vg00/lvol2 00245
00251 current /dev/vg00/lvol2 00246
00252 current /dev/vg00/lvol2 00247
00253 current /dev/vg00/lvol2 00248
00254 current /dev/vg00/lvol2 00249
00255 current /dev/vg00/lvol2 00250
00256 current /dev/vg00/lvol2 00251
00257 current /dev/vg00/lvol2 00252
00258 current /dev/vg00/lvol2 00253
00259 current /dev/vg00/lvol2 00254
00260 current /dev/vg00/lvol2 00255
00261 current /dev/vg00/lvol3 00000
00262 current /dev/vg00/lvol3 00001
00263 current /dev/vg00/lvol3 00002
00264 current /dev/vg00/lvol3 00003
00265 free 00000
00266 free 00000
00267 free 00000
00268 free 00000
00269 current /dev/vg00/lvol5 00000
00270 current /dev/vg00/lvol5 00001
00271 current /dev/vg00/lvol5 00002
00272 current /dev/vg00/lvol5 00003
00273 current /dev/vg00/lvol5 00004
00274 current /dev/vg00/lvol5 00005
00275 current /dev/vg00/lvol5 00006
00276 current /dev/vg00/lvol5 00007
00277 current /dev/vg00/lvol5 00008
00278 current /dev/vg00/lvol5 00009
00279 current /dev/vg00/lvol5 00010
00280 current /dev/vg00/lvol5 00011
00281 current /dev/vg00/lvol5 00012
00282 current /dev/vg00/lvol5 00013
00283 current /dev/vg00/lvol5 00014
00284 current /dev/vg00/lvol5 00015
00285 current /dev/vg00/lvol7 00000HOST:/root#lvdisplay /dev/vg00/lvol3
— Logical volumes —
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 512
Current LE 4
Allocated PE 4
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) defaultHOST:/root#lvextend -l 8 /dev/vg00/lvol3
Logical volume “/dev/vg00/lvol3″ has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
HOST:/root#fsadm -F vxfs -b 1024M /
UX:vxfs fsadm: INFO: V-3-25942: /dev/vg00/rlvol3 size increased from 524288 sectors to 1048576 sectorsHOST:/root#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 368544 674840 35% /
/dev/vg00/lvol1 655360 343088 309912 53% /stand
/dev/vg00/lvol9 3145728 2071248 1068664 66% /var
/dev/vg00/lvol8 4194304 2989792 1195168 71% /usr
/dev/vg00/lvol5 2097152 652048 1434088 31% /tmp
/dev/vg00/lvol7 8388608 6776928 1599112 81% /opt
/dev/vg00/lvol4 524288 21320 499160 4% /home