User Tools

Site Tools


logical_volume_manager

Differences

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

Link to this comparison view

Next revision
Previous revision
logical_volume_manager [2014/11/24 01:14]
0.0.0.0 created
logical_volume_manager [2014/11/24 02:15] (current)
ben
Line 9: Line 9:
 :It will probably report that some packages are missing, so use :It will probably report that some packages are missing, so use
  sudo apt-get install <...>  sudo apt-get install <...>
-:to install the missing packages.  <code>apt-get</code> should then automatically install Webmin once the pre-requisites are installed.+:to install the missing packages.  ''apt-get'' should then automatically install Webmin once the pre-requisites are installed.
   * The Webmin installer should tell you the URL at which Webmin can be accessed - e.g. https://hostname:10000/ Visit this URL and log in as any user in the sudoers file (i.e. any user that can execute commands using sudo).   * The Webmin installer should tell you the URL at which Webmin can be accessed - e.g. https://hostname:10000/ Visit this URL and log in as any user in the sudoers file (i.e. any user that can execute commands using sudo).
   * Go to the **Logical Volume Management** page under the **Hardware** section on the left.   * Go to the **Logical Volume Management** page under the **Hardware** section on the left.
Line 25: Line 25:
  
 ===== Mirroring ===== ===== Mirroring =====
-**Note:** At least **three** physical disks need to be added to the Volume Group before 2-disk (i.e. <code>-m1</code>) mirroring can be enabled, as LVM needs to store a log of the mirroring state on a disk that isn't involved in the mirroring itself.  For a 3-disk (<code>-m2</code>) mirror, four physical disks need to be in the VG, etc.+**Note:** At least **three** physical disks need to be added to the Volume Group before 2-disk (i.e. ''-m1'') mirroring can be enabled, as LVM needs to store a log of the mirroring state on a disk that isn't involved in the mirroring itself.  For a 3-disk (''-m2'') mirror, four physical disks need to be in the VG, etc.
  
 To convert a logical volume so that it is mirrored onto another physical disk, use, e.g.: To convert a logical volume so that it is mirrored onto another physical disk, use, e.g.:
Line 46: Line 46:
 dm-crypt can be used to encrypt a partition. This is only useful while the disk is unmounted, as while it is mounted the keys are in memory and the disk can be read.  dm-crypt can be used to encrypt a partition. This is only useful while the disk is unmounted, as while it is mounted the keys are in memory and the disk can be read. 
  
-<source lang="bash">+<code bash>
  # To create  # To create
  cryptsetup -y create encrypted-volume /dev/mapper/pool-volume  cryptsetup -y create encrypted-volume /dev/mapper/pool-volume
Line 57: Line 57:
  umount /dev/mapper/encrypted-volume  umount /dev/mapper/encrypted-volume
  cryptsetup remove encrypted-volume  cryptsetup remove encrypted-volume
-</source>+</code>
  
 ===== Resizing ===== ===== Resizing =====
logical_volume_manager.1416791659.txt.gz · Last modified: 2014/11/24 01:14 by 0.0.0.0