Thursday, May 31, 2012

UBUNTU: Add New Hard Disk in Virtual Server

Case: In Unlicensed vmware

1. Power off the server
2. Right Click on server  > Edit Setting
3. Add New Hard Disk  >  Next  >  Next
4. Disk Size: 25 GB  > Case for db server(don't click thin provisioning)
5. Specify Datastore > Datastore01
6. Next  > Next  > Finish  >  Ok

** Power on the server back.

How to present/mount New Hard Disk in Ubuntu?

1. To list the HD in server

# fdisk -l
/dev/sdb/ ..........

2. To Format the new Hard Disk# mkfs.ext3  /dev/sdb
# Yes: Y  >  Enter

# cd  /

3. To Mount New HD in Ubuntu Server
# mkdir  data  &&   mount /dev/sdb/   /data/
# df  -h

4. Configure/edit  fstab file
# nano  /etc/fstab

**Add line under the last row:(Can also refer to existing ubuntu server)
/dev/sdb  /data/   ext3  noatime   0    0


Ctrl X  >  Y   >  Enter  (to save & exit).
.

1 comments:

Anonymous said...

Thanks for this nice instruction but one question is if I have Debian or cent-OS then this steps are applicable or not?
vps ubuntu

Post a Comment