Changes

Jump to: navigation, search

Logical Volume Management

8 bytes added, 13:41, 13 February 2014
no edit summary
** <code>vgs</code> - display compact information about all volume groups
** <code>vgdisplay</code> - display verbose information about all volume groups
** <code>vgcreate</code> - creates a new volume group. Usually, only one volume group is used per system, but additional ones can be created in special circumstances. You must specify at least one PV to create a LVVG.** <code>vgextend</code> - adds additional PVs to an LVa VG.** <code>vgreduce</code> - removes PVs from an LVa VG.** <code>vgremove</code> - destroys an LVa VG.
* LV management
** <code>lvs</code> - display compact information about all logical volumes
{{Admon/note|Using LVM in Fedora's Rescue Mode|The Fedora installation DVD has a "rescue mode" which may be used to fix problems on a previously-installed system -- useful if (for example) you have deleted or messed up a file that is necessary to successfully boot the system. In rescue mode, only a single LVM command is available: <code>lvm</code>. To use any of the lvm commands, you can type <code>lvm</code> followed by the name of the command you wish to execute. Alternately, typing <code>lvm</code> by itself will start the LVM shell, and you can then type any of the lvm commands directly. To use non-LVM commands, exit from the LVM shell.}}
 
== LVM Device Names ==
# Edit /etc/fstab to have the file-system mounted automatically at boot time
# (refer to [httphttps://wwwwiki.tuxfilesarchlinux.org/linuxhelpindex.php/fstab.html httphttps://wwwwiki.tuxfilesarchlinux.org/linuxhelpindex.php/fstab.html] for additional information)
# Here is an example of issuing a command to add the mount point to the bottom of the /etc/fstab file:<br /><br />echo "/dev/vg_muskoka/lv_archive /archive ext3 defaults 1 2" >>/etc/fstab
# Add the disk (if not already attached) -- for this example, let's assume the disk is <code>/dev/sdb</code>
# Create a partition with <code>fdisk</code> - let's assume the partition is <code>/dev/sdb1</code>
# Format Mark the partitionas usable by LVM: <code>pvcreate /dev/''sdb1''</code>
# Add the partition to your volume group: <code>vgextend vg_main /dev/''sdb1''</code>
13,420
edits

Navigation menu