I have a volume mount to /home how do I resize it
Linode
Linode Staff
After reboot, I can't resize using the command, it shows target is busy.
1 Reply
vhumphrey
Linode Staff
After powering off your Linode and resizing the storage volume and rebooting you were unable run the commands necessary to resize the file system. The target busy or device busy error is usually displayed when a user is running commands inside of the resource they are trying to unmount or resize. This site explains the cause of the target busy error. Try to run the commands from the /root
directory:
sudo -i
orsu -i
to become root.cd /root
to change to that directory as root.As root run the commands to resize your storage volume
e2fsck -f /dev/disk/by-id/scsi-0Linode_Volume_Volume-100GB-for-your-volume
resize2fs /dev/disk/by-id/scsi-0Linode_Volume_Volume-100GB-for-your-volume
Mount your resized storage volume with the command:
mount /dev/disk/by-id/scsi-0Linode_Volume_Volume-100GB-for-your-volume /home
To make the volume mount persist across reboots edit the /etc/fstab
file and add:
/dev/disk/by-id/scsi-0Linode_Volume_Volume-100GB-for-your-volume /home ext4 defaults 0 2