All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Got a second disk added to my KVM VPS. How to 'install' it?
I was running low on disk space on my KVM VPS, so I ordered some additional disk space. Since you can't easily resize disk kvm disks, I got a second disk added to my KVM VPS. Problem is that this is my first KVM VPS and I don't want to mess anything up.
How do I properly 'install' (i.e. format and partition) this new harddisk?
cat /proc/partitions;
253 0 15728640 vda
253 1 248832 vda1
253 2 1 vda2
253 5 15476736 vda5
253 16 10485760 vdb
11 0 1048575 sr0
252 0 14905344 dm-0
252 1 520192 dm-1
vdb is the new disk (10GB in size).
I Googled and I think this is the correct procedure:
http://www.mikestechblog.com/joomla/operating-systems-section/operating-systems-ubuntu/53-add-a-second-hard-drive-in-ubuntu.html
Other articles I found that are similar, but do not add the disk using it's UUID are:
http://rbgeek.wordpress.com/2012/05/11/how-to-add-2nd-hard-drive-to-ubuntu/
http://www.ghacks.net/2009/09/10/add-a-second-drive-to-your-ubuntu-server/
http://www.cyberciti.biz/faq/linux-disk-format/ basically the same
However I am not sure and that's why I'm asking. There's some data on this VPS that I would rather not see destroyed by my noob Linux skills. This is on a KVM VPS running Ubuntu Server 12.04 64 Bit.
Thanks!
Comments
mkfs.ext3 /dev/vdb then mount it unless I'm missing something....
Maybe resize using tool like GParted?
What @Maounique said. Also, after you add to fstab you can go ahead and mount it with:
mount /mountpoint
format: mkfs.ext3 /dev/vdb1 asuming you want ext3 and you made only one big partition
create mount point.
add to /etc/fstab to be mounted at boot. Be careful not to make a typo as it will probably not finish booting next time, also leave an empty line at the end of file.
Thanks guys, I managed to add the disk. I could not use the UUID because since it's an virtual disk, they all have the same UUID (0x000000)
Thanks again!