+ Post New Thread
Results 1 to 7 of 7
*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 ...
  1. #1

    HarryMonkey's Avatar
    Join Date
    Mar 2007
    Location
    Bedford
    Posts
    1,066
    Thank Post
    50
    Thanked 196 Times in 148 Posts
    Rep Power
    169

    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.

    Many thanks

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,657
    Thank Post
    350
    Thanked 789 Times in 710 Posts
    Rep Power
    344
    Hi Steve,

    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:

    df -h

    Paste that output somewhere as it may be useful later.

    Then again the following command:

    ls /dev/sd*

    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

    OR

    mkdir /opt/zimbra
    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.

  3. Thanks to kmount from:

    HarryMonkey (1st April 2008)

  4. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    Take a look at gparted

    Code:
    sudo apt-get install gparted && sudo gparted

  5. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,657
    Thank Post
    350
    Thanked 789 Times in 710 Posts
    Rep Power
    344
    Bah, pretty gui!

  6. #5

    HarryMonkey's Avatar
    Join Date
    Mar 2007
    Location
    Bedford
    Posts
    1,066
    Thank Post
    50
    Thanked 196 Times in 148 Posts
    Rep Power
    169
    Quote Originally Posted by kmount View Post
    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 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?
    Thanks
    Steve

  7. #6


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    338
    edit the file /etc/fstab

    Code:
    sudo nano /etc/fstab
    and add a line such as

    Code:
    /dev/sda1        /opt/zimbra      ext3    defaults,errors=remount-ro        0
    (assuming sda1, the mountpoint and an ext3 filesystem
    and to test the mount (unmount first) and run

    Code:
    sudo  mount -a
    which will mount anything specified in the fstab file

  8. #7


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,657
    Thank Post
    350
    Thanked 789 Times in 710 Posts
    Rep Power
    344
    Bingo. - I think you'll need to tab and put another 0 in the line though in the example above.

    /dev/sdb1 /opt/zimbra ext3 defaults,errors=remount-ro 0 0
    Its important to test it before rebooting just to be sure its not mashed up fstab (and prevents booting!).

    So, mount it as we did, and then type:

    cd /
    umount /opt/zimbra
    Confirm this with df -h to make sure its not there anymore.
    mount -a
    Confirm its now in df -h
    Reboot

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 25th October 2007, 12:04 PM
  2. Replacing a 4 year old SCSI drive?
    By sidewinder in forum Hardware
    Replies: 1
    Last Post: 16th January 2007, 05:40 PM
  3. Replies: 4
    Last Post: 14th January 2007, 08:53 PM
  4. Adding/Replacing a Drive in Server
    By SimpleSi in forum Windows
    Replies: 12
    Last Post: 29th December 2006, 03:23 PM
  5. Replies: 9
    Last Post: 17th October 2006, 09:48 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •