Bonjour
J'ai installé une redhat enterprise Linux 5 en laissant l'outils de partitionnement par défaut. RHEL5 a créé une partition "/" de 6.7Go, alors que le HDD installé est de 36 Go.
J'aimerais redimensionner ma partition racine car je n'ai plus d'espace disque pour installer un package.
[root@xen ~]# df -h
Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/mapper/VolGroup00-LogVol00 6,7G 6,7G 0 100% /
/dev/sda1 97M 19M 73M 21% /boot
tmpfs 7,9G 0 7,9G 0% /dev/shm
10.20.30.40
vol/vol_infra/iso 701G 543G 158G 78% /iso
10.20.30.40
vol/vol_infra/xen 60G 18G 43G 30% /nfs
J'ai réussi à redimensionner le physical Volume à 15 Go
[root@xen ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 15,00 GB / not usable 31,81 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 479
Free PE 198
Allocated PE 281
PV UUID s9pdZ8-f3WP-FtOv-doIb-g6V8-DWqF-9adiqB
En faisant un lvdisplay, j'obtiens :
[root@xen ~]# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID i5IauN-IvsZ-59JU-VDMt-DIcJ-kcFb-qGyfnt
LV Write Access read/write
LV Status available
# open 1
LV Size 6,84 GB
Current LE 219
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID tJEiAX-e434-8CuW-pufv-7MJZ-vTsl-ofIF3K
LV Write Access read/write
LV Status available
# open 1
LV Size 1,94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
J'ai voulu essayé de redimensionner ma partition racine à 12Go "/dev/VolGroup00/LogVol00" et j'obtiens :
[root@xen ~]# lvresize -L 12G /dev/VolGroup00/LogVol00
Extending logical volume LogVol00 to 12,00 GB
device-mapper: reload ioctl failed: Argument invalide
Failed to suspend LogVol00
J'aimerais savoir quel argument il faut utiliser ? :$
Je vous remercie d'avance.
Cordialement