expand disk linux ESVA – vmware

expand disk linux ESVA – vmware

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)

Leave a Reply

Your email address will not be published. Required fields are marked *

3 × three =

This site uses Akismet to reduce spam. Learn how your comment data is processed.