*nix Thread, Adding a SCSI Hard drive to Ubuntu 6 Server in Technical; I have Ubunto 6 LTS running on a Dell Poweredge server which I am trying to convert into a mail ...
1st April 2008, 02:31 PM #1
Adding a SCSI Hard drive to Ubuntu 6 Server
I have Ubunto 6 LTS running on a Dell Poweredge server which I am trying to convert into a mail server running Zimbra.
I have downloaded and started the Zimbra install only for it to tell me that I have insufficient disc space. I have a single 8G SCSI hard drive at the moment.
The server has 5 more free SCSI hotswap bays and I have another 8 G drive pulled from a windows 2000 server (I don't know what's on the drive in terms of files etc but it can all be got rid of).
What I need to be able to do is to add this drive on to the server so that I can use it to install the Zimbra ZCS on it.
I am a complete newbie to a) Linux, b) Ubuntu and c) Zimbra so I would appreciate someone pointing me in the right direction with regard to getting this drive up and running.
1st April 2008, 02:50 PM #2
Good to see you again.
I think the best bet would be to slap the disk in and boot the machine up.
Once its up, login and type:
Paste that output somewhere as it may be useful later.
Then again the following command:
It should report back with a list of partitions on the disks both the original and the new.
We need to establish which is the new one, it'll probably be sdb but you'll know because it will be the one NOT mentioned in the output of df -h.
Once we know which one the new is, we can partition/format it.
Again, in the command window, we need to run the following:
fdisk newdisklocation (eg. fdisk /dev/sdb)
type p and press enter, it will list the partitions (if any) on the disk.
Once your happy its definitely the new disk as opposed to the old, press n and enter.
Press p for primary partition.
Press 1 for the partition number.
Use the default values for the cylinders so it uses the whole disk.
Once its complete press w and enter to write the changes to the disk and exit from FDISK back to the command line.
On the command line, we use the following command to format the disk:
mkfs.ext3 newhddpartitionname (eg. mkfs3.ext3 /dev/sdb1) - note the 1 is the number of the partition created.
Once this is done, we're good to mount the drive to a location on the system.
Linux as I'm sure you'll be aware doesn't use drive letters like windows, and instead each 'directory' could be a different drive, partition, or even machine and you'd be unlikely to know unless you looked.
So, we need to decide where to put this disk, and I think from memory Zimbra likes to install itself into /opt.
Its up to you at this point whether we make /opt the entire new disk, or whether we make /opt/zimbra and set the new disk to just hold zimbra.
Either way, you use the following command to mount the new drive
mount /dev/sdb1 /opt
mount /dev/sdb1 /opt/zimbra
This assumes /dev/sdb1 is the name of the partition.
If this works, re-run df -h and you should see a new entry as the new drive.
Bear in mind though, this will only work for this current boot up, we'll need to add it to fstab (or via a little script) to mount this on boot up.
We'll cross that bridge when we get there.
Thanks to kmount from:
HarryMonkey (1st April 2008)
1st April 2008, 02:52 PM #3
Take a look at gparted
sudo apt-get install gparted && sudo gparted
1st April 2008, 02:54 PM #4
3rd April 2008, 02:57 PM #5
Thanks for that Kim, it all worked once I got the drive in the case etc. What do I need to do to get it to do this permanently each time I boot?
Originally Posted by kmount
3rd April 2008, 06:13 PM #6
edit the file /etc/fstab
and add a line such as
sudo nano /etc/fstab
(assuming sda1, the mountpoint and an ext3 filesystem
/dev/sda1 /opt/zimbra ext3 defaults,errors=remount-ro 0
and to test the mount (unmount first) and run
which will mount anything specified in the fstab file
3rd April 2008, 06:19 PM #7
Bingo. - I think you'll need to tab and put another 0 in the line though in the example above.
Its important to test it before rebooting just to be sure its not mashed up fstab (and prevents booting!).
/dev/sdb1 /opt/zimbra ext3 defaults,errors=remount-ro 0 0
So, mount it as we did, and then type:
Confirm this with df -h to make sure its not there anymore.
Confirm its now in df -h
Last Post: 25th October 2007, 12:04 PM
By sidewinder in forum Hardware
Last Post: 16th January 2007, 05:40 PM
Last Post: 14th January 2007, 08:53 PM
By SimpleSi in forum Windows
Last Post: 29th December 2006, 03:23 PM
By Norphy in forum Hardware
Last Post: 17th October 2006, 09:48 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)