You are on page 1of 3

Primeiro verifique o tamanho atual dos seus filesystems e salve em seu computado

r para referencia:
L3000 [/] #bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 1911416 184328 91% /
/dev/vg00/lvol1 298928 84920 184112 32% /stand
/dev/vg01/lvol1 35557376 12918496 21223982 38% /vg01
/dev/vg00/lvol8 6291456 2186272 4073944 35% /var
/dev/vg00/lvol7 7340032 1754336 5542096 24% /usr
/dev/vg00/lvol6 2097152 417064 1670400 20% /tmp
/dev/vg00/lvol5 12582912 3932744 8582640 31% /opt
/dev/vg00/lvol4 524288 16696 503632 3% /home
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4350
VGDA 2
PE Size (Mbytes) 8
Total PE 4340
Alloc PE 4198
Free PE 142
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 38
Allocated PE 38
Used PV 1
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 3072
Current LE 384
Allocated PE 384
Used PV 1
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 256
Allocated PE 256
Used PV 1
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 64
Allocated PE 64
Used PV 1
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 12288
Current LE 1536
Allocated PE 1536
Used PV 1
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 256
Allocated PE 256
Used PV 1
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7168
Current LE 896
Allocated PE 896
Used PV 1
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 768
Allocated PE 768
Used PV 1

--- Physical volumes ---


PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4340
Free PE 142
Autoswitch On
Proactive Polling On

Reinicie o servidor:
L3000 [/] #shutdown -ry 0
Não deixe o sistema operacional começar a subir, precione enter quando apareçer a tela
dos 10 segundos.
Após digite bo para o boot, e em seguida "y" para interagir.
Main Menu: Enter command or menu > bo
Interact with IPL (Y, N, or Cancel)?> y
Vamos dar o boot em modo de manutenção com o comando abaixo:
ISL> hpux -lm
Ele terminou de carregar quando apareçer uma mensagem parecida com essa:
INIT: SINGLE USER MODE
INIT: Running /sbin/sh
Já no sistema precisamos ativar o VG00 para aumentar o tamanho dos filesystems.
# vgchange -a y vg00
Activated volume group
Volume group "vg00" has been successfully changed.
Agora vamos começar a aumentar os file systems observe o exemplo abaixo:
Esse exemplo serve para todos os filesystem, quando tiramos o bdf a primeira col
una é o endereço do filesystem,
cheque tambem o tamanho atual do filesytem no comando vgdisplay (salvo anteriorm
ente).
/dev/vg00/lvol4 524288 16696 503632 3% /home
No caso, no vgdisplay ele informa 512 MB:
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 64
Allocated PE 64
Used PV 1
Então executamos o comando abaixo para por o novo tamanho no file system /dev/vg00
/lvol4 o /home.
No exemplo abaixo ele tinha 512 ele foi para 600 MB
# lvextend -L 600 /dev/vg00/lvol4
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
O Comando abaixo faz aplicar o novo tamanho ao filesystem.
# extendfs -F vxfs /dev/vg00/rlvol4
Repita os dois comandos acima para os outros filesystems.
Feito, talvez possa ser necessario reativar o vg:
#vgchange -a y vg00
montar os file systems
#mount -a
e verificar via bdf
#bdf
Reinicie o sistema, e pronto quando iniciar estará com os novos tamanhos.
#shutdown -ry 0

You might also like