ReLoad

Thierry Jaouen ~ WikiBlog
"Rien à foutre d'être lu, tant que je peux me relire."

Outils pour utilisateurs

Outils du site


Action disabled: source
blog:2012:09:04:agrandir_une_partition_xfs_sans_reboot

LVM et XFS : Agrandir une partition xfs sans reboot

# df -h
Sys. de fichiers    Taille  Uti. Disp. Uti% Monté sur
...
/dev/xvda3            200G  197G  3,8G  99% /home
# cat /proc/mounts  | grep home
/dev/xvda3 /home xfs rw,noatime,wsync,attr2,nobarrier,noquota 0 0

~~READMORE~~

Sur la machine “LVM”, c'est relativement simple:

# lvresize -L +20G /dev/vg0/la_partition

Retour ensuite, sur la machine (virtuelle ou pas) :

# sync

(pour que le changement de taille remonte au noyau ?)

Et on voit dans les logs:

[4516276.344477] Setting capacity to 461373440
[4516276.344499] xvda3: detected capacity change from 214748364800 to 236223201280
[4516276.500261] VFS: busy inodes on changed media or resized disk xvda3
# xfs_growfs /dev/xvda3

Et voila:

# df -h
Sys. de fichiers    Taille  Uti. Disp. Uti% Monté sur
...
/dev/xvda3            220G  197G   24G  90% /home
blog/2012/09/04/agrandir_une_partition_xfs_sans_reboot.txt · Dernière modification : 2012/09/04 17:16 de thierry