User Tools

Site Tools


linux:linux_system

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:linux_system [2026/04/29 05:17] – [Linux LVM] azmanlinux:linux_system [2026/09/06 02:08] (current) – [Useful Commands] azman
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.1777439821.txt.gz · Last modified: by azman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki