LVM unknown device how to recover?

2018/03/15 linux

LV扩容

### 过程如下:

  • 挂载一块硬盘4T

          fdisk /dev/sdb
    
          send n
    
          send p
    
          send w;
    
          mkfs -t ext4 -c /dev/sdb1
    
          wrating....
    
    
          pvcreate /dev/sdb1
    
    
          vgextend rhel /dev/sdb1
    
    
          lvextend -L +2000G  /dev/mapper/lvs-home
    
          #根据文件格式进行重置home大小
    
          xfs_growfs /dev/mapper/lvs-home
    
              or
    
          resize2fs -p /dev/mapper/lvs-home
    
          其中遇到的问题如下:
    
          创建完成PV-->mkfs(格盘)-->vgs(warning Device with uuid XXXXXX-xxxxxx-xxx-xxxx-xxxxx)
    
          解决办法:
          pvcreate --uuid "UUID" --restorefile /etc/lvm/archie/rhel_000001-1511980835.vg  /dev/sdb1 -ff
    
          如果解决不了用第二种方式:
          vgreduce --removemissing --verbose myVG_NAME
    
    

转载请注明出处,本文采用 CC4.0 协议授权

Affiliate

Search

    Post Directory