User Tools

Site Tools


linux:linux_system

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:linux_system [2026/02/08 03:46] – created - external edit 127.0.0.1linux:linux_system [2026/09/06 02:08] (current) – [Useful Commands] azman
Line 96: Line 96:
 # lvcreate -l +100%FREE -n movie xtravg # lvcreate -l +100%FREE -n movie xtravg
 # lvremove movie # lvremove movie
-# lvremove store+# lvremove xtravg/store
  
 * create single lv on vg * create single lv on vg
Line 147: Line 147:
 # resize2fs -p /dev/xtravg/share # resize2fs -p /dev/xtravg/share
 </file> </file>
 +
 +==== Useful Commands ====
 +
 +Check physical disks: <code># pvscan</code>
 +
 +List volume groups / logical volumes: <code>
 +# vgs
 +# lvs
 +</code>
 +
 +==== Moving VG to another machine ====
 +
 +On current machine, assuming volume group ''myvg'' mounted at ''/extra''.
 +
 +Unmount<code># umount /extra</code>
 +Deactivate VG<code># vgchange -an myvg</code>
 +Export<code># vgexport myvg</code>
 +
 +On to the target machine, assuming mount point is also at ''/extra''.
 +
 +Import<code># vgimport myvg</code>
 +Activate VG<code># vgchange -ay myvg</code>
 +Mount<code># mount /dev/mapper/myvg /extra</code>
  
 ===== Linux AUFS ===== ===== Linux AUFS =====
linux/linux_system.1770522381.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki