Well, the big question is "Is your VM provided volume defined as an LVM device or set up to give fixed partitions?"
If the filesystem is an LVM filesystem and you have got the space into your volume group, then using
lvextend should do the job. If you use the
-r flag then it will alter the filesystem when you resize the logical volume.
If you filesystem is on a fixed slice of disk, then I think you are stuck with it. You would need to do something like this:-
- Define the new disk or slice as an LVM Physical Volume
- Create a volume group using this PV
- Create a logical volume of at least 500Gb in the volume group
- Format the logical volume as a filesystem.
- Mount the filesystem & move the data
- Edit /etc/fstab to point to the new filesystem to be mounted
- Unmount the original filesystem
- Unmount the new filesystem and remount it to the correct location
- Destroy the original filesystem/disk/slice
- Define the original disk as an LVM PV
- Extend the volume group by adding this disk/slice
You are now able to use
extendlv as described above. What do you have defined?
If your server is actually a single filesystem, then we're in more trouble.
Can you share the contents of
/etc/fstab for a starter?
Robin