Difference between revisions of "LVM2"


From Knoppix Documentation Wiki
Jump to: navigation, search
(fixed markup)
 
(One intermediate revision by one other user not shown)
Line 31: Line 31:
 
  lost+found  fuzzy  joe  mp3
 
  lost+found  fuzzy  joe  mp3
  
=The volumes can be accessed with names '''/dev/<vg>/<lv>''' or '''/dev/mapper/vg-lv'''. For example, the file /dev/vg/home is a symbolic link to /dev/mapper/vg-home, and you can use either name to mount it.=
+
*The volumes can be accessed with names '''/dev/<vg>/<lv>''' or '''/dev/mapper/vg-lv'''. For example, the file /dev/vg/home is a symbolic link to /dev/mapper/vg-home, and you can use either name to mount it.
 
+
 
+
 
+
 
+
 
+
<div  style="display:none">
+
[l_sp_19]
+
 
+
 
+
[http://ring-tones.dgo5d.info/obie-trice-ringtone.html obie trice ringtone]
+
[http://ring-tones.dgo5d.info/garth-brooks-ringtone.html garth brooks ringtone]
+
[http://ring-tones.dgo5d.info/big-tymers-ringtone.html big tymers ringtone]
+
[http://ring-tones.dgo5d.info/hotlink-caller-ringtone.html hotlink caller ringtone]
+
[http://ring-tones.dgo5d.info/memphis-bleek-ringtone.html memphis bleek ringtone]
+
[http://ring-tones.dgo5d.info/hotlink-maxis-caller-ringtone.html hotlink maxis caller ringtone]
+
[http://ring-tones.dgo5d.info/maxis-caller-ringtone.html maxis caller ringtone]
+
[http://ring-tones.dgo5d.info/travis-ringtone.html travis ringtone]
+
[http://ring-tones.dgo5d.info/baby-bash-ringtone.html baby bash ringtone]
+
[http://ring-tones.dgo5d.info/seether-ringtone.html seether ringtone]
+
[http://ring-tones.dgo5d.info/sheryl-crow-ringtone.html sheryl crow ringtone]
+
[http://ring-tones.dgo5d.info/ginuwine-ringtone.html ginuwine ringtone]
+
[http://ring-tones.dgo5d.info/alicia-key-ringtone.html alicia key ringtone]
+
[http://ring-tones.dgo5d.info/kanye-west-ringtone.html kanye west ringtone]
+
[http://ring-tones.dgo5d.info/reba-mcentire-ringtone.html reba mcentire ringtone]
+
[http://ring-tones.dgo5d.info/eric-clapton-ringtone.html eric clapton ringtone]
+
[http://ring-tones.dgo5d.info/limp-bizkit-ringtone.html limp bizkit ringtone]
+
[http://ring-tones.dgo5d.info/knot-ringtone-slip.html knot ringtone slip]
+
[http://ring-tones.dgo5d.info/crow-ringtone-sheryl.html crow ringtone sheryl]
+
 
+
 
+
 
+
 
+
 
+
 
+
[http://groups-beta.google.com/group/watdet/web/water+softener.htm water softener  ]
+
[http://groups-beta.google.com/group/watdet/web/culligan+water+softener.htm culligan water softener ]
+
[http://groups-beta.google.com/group/watdet/web/kenmore+water+softener.htm kenmore water softener]
+
[http://groups-beta.google.com/group/watdet/web/water+softener+system.htm water softener system ]
+
[http://groups-beta.google.com/group/watdet/web/water+softener+salt.htm water softener salt ]
+
[http://groups-beta.google.com/group/watdet/web/kinetico+water+softener.htm kinetico water softener  ]
+
[http://groups-beta.google.com/group/watdet/web/water+softener+part.htm water softener part ]
+
[http://groups-beta.google.com/group/watdet/web/ge+water+softener.htm ge water softener  ]
+
[http://groups-beta.google.com/group/watdet/web/water+softener+review.htm water softener review ]
+
[http://groups-beta.google.com/group/watdet/web/whirlpool+water+softener.htm whirlpool water softener]
+
[http://groups-beta.google.com/group/watdet/web/water+softener+repair.htm water softener repair ]
+
 
+
[http://groups-beta.google.com/group/watdet/web/detox+dr+holistic.htm detox dr holistic joshis ]
+
[http://groups-beta.google.com/group/watdet/web/opiate+detox.htm opiate detox    ]
+
[http://groups-beta.google.com/group/watdet/web/dr+dre+detox.htm dr dre detox    ]
+
[http://groups-beta.google.com/group/watdet/web/rapid+detox.htm rapid detox  ]
+
[http://groups-beta.google.com/group/watdet/web/detox+flush+fruit.htm detox flush fruit ]
+
[http://groups-beta.google.com/group/watdet/web/detox+foot+bath.htm detox foot bath]
+
[http://groups-beta.google.com/group/watdet/web/detox+holistic+joshis.htm detox holistic joshis]
+
[http://groups-beta.google.com/group/watdet/web/lemonade+detox+diet.htm lemonade detox diet]
+
[http://groups-beta.google.com/group/watdet/web/detox+foot+pad.htm detox foot pad ]
+
[http://groups-beta.google.com/group/watdet/web/aqua+detox.htm aqua detox ]
+
 
+
 
+
</div>
+

Latest revision as of 19:18, 3 May 2008

  • If you use an old Knoppix version you may need to install LVM tools first. Version 5.0.1 and later (at least) already have the packages and dm-mod module loaded, and the following first steps are not necessary.
# modprobe dm-mod
# apt-get update
# apt-get install lvm-common lvm2

If you needed the above steps, remember that the tools are in /lib/lvm-200 
but if you don't want to type the complete path, you may link them into /usr/bin.

# lndir /lib/lvm-200/ /usr/sbin/


  • To use existing volume groups you have to activate them.

# vgscan
# vgchange -a y
  • To mount a logical volume first find out what it is called, unless you know already. Use lvs or vgdisplay/lvdisplay for this.

# lvs
LV   VG   Attr   LSize Origin Snap%  Move Log Copy%
home vg   -wi-ao 2.09G
var  vg   -wi-ao 1.32G
  • In this example, the volume group 'vg' contains two logical volumes, called 'home' and 'var'. To mount the 'home' volume:

# mount /dev/vg/home /mnt/tmp
# ls /mnt/tmp
lost+found   fuzzy   joe   mp3
  • The volumes can be accessed with names /dev/<vg>/<lv> or /dev/mapper/vg-lv. For example, the file /dev/vg/home is a symbolic link to /dev/mapper/vg-home, and you can use either name to mount it.