Hi
I have been trying to resize an ubuntu 14.04 LXC for several hours now and it's getting a little frustrating.
The original container was set up as 64Gb and I have extended it to 320Gb on my 4.0-48 host.
The backend storage is LVM on a DELL iSCSI SAN.
In the proxmox Web gui if I browse my storage I can see:
However if I run df -h in the container I get
So as an attempt to extend the container I run:
Assuming this is because the container is running, I shutdown the container and try again however once the container is shut down, vm-315-disk-1 disappears from /dev/MD3000iA-SAS/
Any suggestions?
thanks
I have been trying to resize an ubuntu 14.04 LXC for several hours now and it's getting a little frustrating.
The original container was set up as 64Gb and I have extended it to 320Gb on my 4.0-48 host.
The backend storage is LVM on a DELL iSCSI SAN.
In the proxmox Web gui if I browse my storage I can see:
Code:
vm-315-disk-1 raw 32.00GB
However if I run df -h in the container I get
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/MD3000iA-SAS/vm-315-disk-1 63G 38G 22G 64% /
none 100K 4.0K 96K 4% /dev
cgroup 12K 0 12K 0% /sys/fs/cgroup
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup/cgmanager
none 1.6G 244K 1.6G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 7.9G 8.0K 7.9G 1% /run/shm
none 100M 0 100M 0% /run/user
So as an attempt to extend the container I run:
Code:
# resize2fs /dev/MD3000iA-SAS/vm-315-disk-1
resize2fs 1.42.12 (29-Aug-2014)
resize2fs: Device or resource busy while trying to open /dev/MD3000iA-SAS/vm-315-disk-1
Couldn't find valid filesystem superblock.
Assuming this is because the container is running, I shutdown the container and try again however once the container is shut down, vm-315-disk-1 disappears from /dev/MD3000iA-SAS/
Any suggestions?
thanks