linux_wiki:logical_volume_management_lvm

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_wiki:logical_volume_management_lvm [2018/03/07 09:33]
billdozor [Add Disk: Scan SCSI Bus]
linux_wiki:logical_volume_management_lvm [2018/05/30 09:55]
billdozor [Delete Virtual Disk]
Line 31: Line 31:
 If adding a disk to a virtual machine and the new disk does not show up: If adding a disk to a virtual machine and the new disk does not show up:
  
 +\\
 **One Liner Method**<code bash>echo "- - -" > /sys/class/scsi_host/$(grep mpt /sys/class/scsi_host/host?/proc_name | grep -o -E '(host[0-9])')/scan</code> **One Liner Method**<code bash>echo "- - -" > /sys/class/scsi_host/$(grep mpt /sys/class/scsi_host/host?/proc_name | grep -o -E '(host[0-9])')/scan</code>
  
 +\\
 **Manual Method** **Manual Method**
   * Find the host bus number<code bash>grep mpt /sys/class/scsi_host/host?/proc_name</code>   * Find the host bus number<code bash>grep mpt /sys/class/scsi_host/host?/proc_name</code>
Line 199: Line 201:
  
 Login to the virtualization user interface and delete the old disk from inventory. Login to the virtualization user interface and delete the old disk from inventory.
 +
 +\\
 +**Errors During LVM Commands**
 +  * If you see errors during LVM commands like this after a device delete from vmware<code bash>root@llsrlscd01 home $ pvs
 +  /dev/sdc: read failed after 0 of 4096 at 0: Input/output error
 +  /dev/sdc: read failed after 0 of 4096 at 17179803648: Input/output error
 +  /dev/sdc: read failed after 0 of 4096 at 17179860992: Input/output error
 +  /dev/sdc: read failed after 0 of 4096 at 4096: Input/output error
 +  /dev/sdc1: read failed after 0 of 4096 at 17178755072: Input/output error
 +  /dev/sdc1: read failed after 0 of 4096 at 17178812416: Input/output error
 +  /dev/sdc1: read failed after 0 of 4096 at 0: Input/output error
 +  /dev/sdc1: read failed after 0 of 4096 at 4096: Input/output error
 +  PV         VG      Fmt  Attr PSize   PFree
 +  /dev/sda2  vglocal lvm2 a--   19.50g 3.50g
 +  /dev/sdd1  vglocal lvm2 a--  250.00g    0
 +  /dev/sde1  vglocal lvm2 a--   40.00g    0</code>
 +    * Fix by rebooting the system or<code bash>echo 1 > /sys/block/sdX/device/delete</code>
 +      * Where "sdX" is the device, such as 'sdc' in the above example.
  
 ---- ----
  • linux_wiki/logical_volume_management_lvm.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)