User Tools

Site Tools


computing:storage:smeserver_add_disk

This is an old revision of the document!


Add an Additional Hard Drive to SME Server

:!: Here we utilize an additional disk drive to expand the storage of an existing SME Server. We demonstrate using '/home' as the mount point, however the choice of mount point is arbitrary.

Install the new disk in the SME Server while turned off, then boot it up.

Partition the drive with one large partition. Use a GPT partition table if the drive is over 2TB.

fdisk -l

fdisk /dev/sdx                       # where x is your new drive

Format the partition and mount it to a temporary location:

mkfs.ext3 -L Home /dev/sdx1          # where 'Home' is an arbitrary name

mount /dev/sdx1 /mnt/

Now we copy all the existing data from the mount point (/home in this case):

rsync -avr /home/* /mnt/

Then we edit the /etc/fstab file so the new drive is mounted where we want it after a reboot:

vim /etc/fstab

Append this line to the end of the file and save it:

LABEL=Home              /home                   ext3    usrquota,grpquota        1 2

Now we dismount the new partition from the temporary mount point and remount it normally:

umount /mnt
mount -a
mount

You should see the new partition mounted as you wish.

Now we enable quotas on the new filesystem and we are done:

quotacheck -cug /home

quotacheck quotaon -avug
computing/storage/smeserver_add_disk.1335147262.txt.gz · Last modified: 2012/04/22 20:14 by gcooper