User Tools

Site Tools


computing:storage:smeserver_add_disk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:storage:smeserver_add_disk [2012/04/22 20:24]
gcooper
computing:storage:smeserver_add_disk [2014/09/19 13:39] (current)
gcooper
Line 3: Line 3:
 :!: 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. :!: 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.+:!: We also use this technique in virtualized server installations.  For example, if you create a VM using a single large virtual disk, you may easily get to a point where you can't snapshot it due to lack of free disk space.  Using this technique, you can temporarily disconnect the second large 'data' disk, take a snapshot, then reconnect the virtual disk when done.  Just one of the reasons why you should use (expensive) shared storage for your virtualization projects... 
 + 
 +===== Installation ===== 
 + 
 +Shut down the SME Server and physically install the new disk while turned off, then boot it back up.
  
 Partition the drive with one large partition.  Use a [[computing:storage:disk_partitioning|GPT partition table]] if the drive is over 2TB. Partition the drive with one large partition.  Use a [[computing:storage:disk_partitioning|GPT partition table]] if the drive is over 2TB.
Line 12: Line 16:
 fdisk /dev/sdx                       # where x is your new drive fdisk /dev/sdx                       # where x is your new drive
 </file> </file>
 +
 +:!: Use EXT4 for SME Server version 9.
  
 Format the partition and mount it to a temporary location: Format the partition and mount it to a temporary location:
Line 54: Line 60:
 quotacheck -cug /home quotacheck -cug /home
  
-quotacheck quotaon -avug+quotaon -avug
 </file> </file>
  
 ===== Final Steps ===== ===== Final Steps =====
  
-Once we test the new configuration, including at least one reboot, we can take steps to recover the space occupied by the original data.+Once we test the new configuration, including at least one reboot, we can take steps to recover the disk space occupied by the original /home data.
  
 :!: If this is a clean SME Server install and you realize there is little space to be gained, stop right now. :!: If this is a clean SME Server install and you realize there is little space to be gained, stop right now.
computing/storage/smeserver_add_disk.1335147875.txt.gz · Last modified: 2012/04/22 20:24 by gcooper