Thursday, June 21, 2012

Adding Addtional Drives to a Zentyal Server

This page gives a handy guide to installing additional drives in a Zentyal server (which I've shamelessly copied and pasted ~ for easy usage).

Partition Disks

Open the Administrator Console from the Desktop


In console Type:
sudo fdisk –l
This will give a list of Disks attached to the system:
  • sda contains the system and swap partitions
  • sdb is the first disk
  • sdc is the second disk
  • sdd is the third disk


Open gparted and create a primary partition on each of the disks sdb, sdc & sdd. I created these with an ext4 file system. It is not necessary at this point to provide a volume label or mount point, as this will be done in the following steps.


Next, Open the PCMan File Manager
At the bottom left, click on the folder icon. This will provide a directory tree. Navigate to /media and click once on this folder in the directory tree. In the top menu, click on tools, and then open this folder as root. This will allow you to create folders and change permissions for those folders. The second screen shows the media folder opened in superuser mode.




Right click in the empty space to bring up the context menu and create folders in /media for the three disks. I used: Disk1, Disk2 and Parity.




I edited the permissions for these folders and changed the username to my username, changed the group to fuse, and gave full permissions to all. This may not be necessary. Right Click on each folder, select properties and then the permissions tab.




Close the media folder superuser window. Navigate in the directory tree to /etc and open this folder as root. Scroll down and find the file called fstab. Right click on the file and select open with leafpad.


This is the original fstab


Add the following lines to the end of fstab:
/dev/sdb /media/Disk1 ext4 defaults 0 2
/dev/sdc /media/Disk2 ext4 defaults 0 2
/dev/sdd /media/Parity ext4 defaults 0 2


Save the fstab file and exit leafpad.

No comments:

Post a Comment