Meu servidor Xen está usando o LVM para os domUs. Eu desliguei um domU e aumentei de 10G para 24G:
lvextend -L24G /dev/xen-disks/my_domu
que parece ter funcionado:
--- Logical volume --- LV Path /dev/xen-disks/my_domu LV Name my_domu VG Name xen-disks LV UUID EVe9Va-v1ls-FSVR-OlFZ-5juy-PkJ1-7MxDkZ LV Write Access read/write LV Creation host, time fractal, 2015-04-01 13:25:05 -0700 LV Status available # open 1 LV Size 24.00 GiB Current LE 6144 Segments 2 Allocation inherit Read ahead sectors auto - currently set to 4096 Block device 252:6
Eu posso ver o espaço extra dentro do domU, mas minhas tentativas de aumentar o tamanho de /dev/xvda1
para fazer uso dele falharam.
As informações da partição da domU de dentro:
Disk /dev/xvda: 25.8 GB, 25769803776 bytes 255 heads, 63 sectors/track, 3133 cylinders, total 50331648 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000e84db Device Boot Start End Blocks Id System /dev/xvda1 63 18860309 9430123+ 83 Linux /dev/xvda2 18860310 20964824 1052257+ 5 Extended /dev/xvda5 18860373 20964824 1052226 82 Linux swap / Solaris
e são informações de montagem:
/dev/xvda1 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type devtmpfs (rw,mode=0755) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755) none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880) none on /run/shm type tmpfs (rw,nosuid,nodev)
Alguma idéia de ser capaz de usar esse 14Gb?