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

Next revision
Previous revision
computing:storage:smeserver_add_disk [2012/04/22 20:14]
gcooper created
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> 
 + 
 +===== Final Steps ===== 
 + 
 +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. 
 + 
 +Carefully: 
 + 
 +<file> 
 +df -h                                 # just to check the current disk utilization 
 +umount /home 
 +mount                                 # just to make sure the new partition is no longer mounted 
 +du -sh /home/                       # just to see what we are about to delete 
 +rm -rf /home/* 
 +mount -a 
 +df -h                                 # compare the results with the first command
 </file> </file>
computing/storage/smeserver_add_disk.1335147262.txt.gz · Last modified: 2012/04/22 20:14 by gcooper