expand disk linux ESVA – vmware
- Angelo Schalley
- Oct, 05, 2009
- Linux, vmware
- No Comments
Shut down your ESVA VM.
Add a new disk (SCSI) – as big as you like. (20GB should be large enough for most sites)
Boot the VM up
login as root on the console
cd /tmp
fdisk /dev/sdb
n
p
1
<enter>
<enter>
w
mkfs.ext3 /dev/sdb1
mkdir /tmpvar
service MailScanner stop
service syslog stop
service mysqld stop
<stop>
mount -t ext3 /dev/sdb1 /tmpvar
mv /var/* /tmpvar
echo “/dev/sdb1 /var ext3 defaults 0 0” >> /etc/fstab
umount /dev/sdb1
rm -rf /tmpvar
init 6
The VM will now reboot. Hopefully you will have plenty of space in your /var file system
now! (check with df -h)