Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:lvm [2019/03/25 12:42]
tmade [Backup & Recovery Partition Table]
linux:lvm [2019/12/30 14:41]
tmade [Usefull Commands]
Line 68: Line 68:
  
   lvextend -r -l +100%FREE /dev/vgname/lvname   lvextend -r -l +100%FREE /dev/vgname/lvname
 +  lvextend -r -L 10G /dev/vgname/lvname
      
 ==== Backup & Recovery Partition Table ==== ==== Backup & Recovery Partition Table ====
Line 81: Line 82:
 A „LUN“ (or virtual Disk) can be recognised in a VMware Virtual Maschine (Linux) with the following command: A „LUN“ (or virtual Disk) can be recognised in a VMware Virtual Maschine (Linux) with the following command:
      
-  echo "- - -" > /sys/class/scsi_host/host1/scan 
   echo "- - -" > /sys/class/scsi_host/host0/scan   echo "- - -" > /sys/class/scsi_host/host0/scan
 +  echo "- - -" > /sys/class/scsi_host/host1/scan
 +  echo "- - -" > /sys/class/scsi_host/host2/scan  
  
 "host1" represents the controller ID. "host1" represents the controller ID.
Line 144: Line 146:
   pvcreate /dev/sdb1   pvcreate /dev/sdb1
   pvresize -v -d /dev/sdb1   pvresize -v -d /dev/sdb1
-  vgextend system /dev/sdc1 +  vgextend system /dev/sdc1                         #add "/dev/sdc1" to vg "system" 
-  vgreduce /dev/system /dev/sdb1+  vgreduce system /dev/sdb1                         #remove "/dev/sdb1" from vg "system"
   lvcreate --name backups --size 30G server1   lvcreate --name backups --size 30G server1
   mkfs.ext3 /dev/mapper/server1-backups   mkfs.ext3 /dev/mapper/server1-backups
linux/lvm.txt · Last modified: 2019/12/30 14:41 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki