Redes de computadores UNIMEP
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Redimensionamento de Filesystem...

Ir para baixo

Redimensionamento de Filesystem... Empty Redimensionamento de Filesystem...

Mensagem por dfmateus Dom Abr 25, 2010 11:03 pm

RED HAT 4/3/2/1

1) Verificar se tem o jfs2 online:

[root@BACKUP]# rpm -qa |grep lvm
lvm2-2.02.06-6.0.RHEL4
system-config-lvm-1.0.19-1.0


2) Verificar a qual vg o FS esta atrelado:

[root@BACKUP]# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-lvol1
22657532 20437020 1990364 92% /BACKUP


3) Verificar se o VG possui espaço.

[root@~]# vgdisplay rootvg |grep "Free"
Free PE / Size 36 / 1.12 GB


No caso, existe 1.12Gb livres.

3) Verificar o caminho correto do lvol:

4) Aumentando 1 Gb :

[root@BACKUP]# lvextend -L +1000M /dev/rootvg/lvol1
Extending logical volume lvol1 to 21.95 GB
Logical volume lvol1 successfully resized


5) Validando o aumento

[root@BACKUP]# ext2online /BACKUP
ext2online v1.1.18 - 2001/03/18 for EXT2FS 0.5b


PROCEDIMENTO COM RED HAT 5

[root@]# vgdisplay
--- Volume group ---
VG Name oraclevg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 8
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 6
Open LV 6
Max PV 0
Cur PV 1
Act PV 1
VG Size 556.93 GB
PE Size 4.00 MB
Total PE 142573
Alloc PE / Size 141043 / 550.95 GB
Free PE / Size 1530 / 5.98 GB
VG UUID g3Owql-5oE0-1BVP-6IGR-23kL-NXVv-jk87yk

--- Volume group ---
VG Name rootvg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 11
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 10
Open LV 10
Max PV 0
Cur PV 1
Act PV 1
VG Size 20.00 GB
PE Size 32.00 MB
Total PE 640
Alloc PE / Size 545 / 17.03 GB
Free PE / Size 95 / 2.97 GB
VG UUID 1rLBUo-U48H-FVLc-mArc-yPDH-GhJr-kKJbOG


###Checar informaçoes do Filesystem a ser redimensionado :

[root@]# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/oraclevg-u01
5160576 4176940 721492 86% /u01/app/oracle


[root@]# lvdisplay /dev/oraclevg/u01
--- Logical volume ---
LV Name /dev/oraclevg/u01
VG Name oraclevg
LV UUID FyQfhn-S73g-R2HJ-db1g-I9Y5-VqKZ-oX1KAq
LV Write Access read/write
LV Status available
# open 1
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9


[root@]# lvextend -L +5G /dev/oraclevg/u01
Extending logical volume u01 to 10.00 GB
Logical volume u01 successfully resized


##VERIFICANDO SE O LV FOI REALMENTE AUMENTADO

[root@]# lvdisplay /dev/oraclevg/u01
--- Logical volume ---
LV Name /dev/oraclevg/u01
VG Name oraclevg
LV UUID FyQfhn-S73g-R2HJ-db1g-I9Y5-VqKZ-oX1KAq
LV Write Access read/write
LV Status available
# open 1
LV Size 10.00 GB
Current LE 2560
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:9


## EXECUTANDO O COMANDO ABAIXO PARA FAZER O RESIZE NO LV / FILESYSTEM

[root@]# resize2fs /dev/oraclevg/u01
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/oraclevg/u01 is mounted on /u01/app/oracle; on-line resizing required
Performing an on-line resize of /dev/oraclevg/u01 to 2621440 (4k) blocks.
The filesystem on /dev/oraclevg/u01 is now 2621440 blocks long.


## VERIFICANDO SE O FS FOI REALMENTE AUMENTADO

[root@]# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/oraclevg-u01
10321208 4178308 5618676 43% /u01/app/oracle


Abraços cheers

"Ler é fundamental sendo extremamente necessário na Área de TI , leve isso em mente e pratique a leitura bem como o compartilhamento de idéias" study
dfmateus
dfmateus

Mensagens : 50
Data de inscrição : 22/04/2010
Idade : 37
Localização : Piracicaba-SP

http://dfmgoes.wordpress.com/

Ir para o topo Ir para baixo

Ir para o topo


 
Permissões neste sub-fórum
Não podes responder a tópicos