I had to add another harddrive to a test VM and wondered how to take advantage of thin provisioning in linux. On Windows VM’s you have to do a “Quick Format” to use thin provisioning. Here is what you do on a linux (ubuntu) VM.
- Shutdown the VM (if you dont have Hotadd-feature licensed)
- Add a new harddrive with thin provisioning
- Start the VM
- Log in
- Check the dmesg to find the devicename of the new harddrive ( in my case /dev/sdb )
- sudo mkfs.ext3 /dev/sdb (use another mkfs-command to use the filesystem of your choise)
- /dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y - Wait for it to finish
- Mount the harddrive (sudo mount /dev/sdb /home/newharddrive)
Leave a Reply