1. Verify the exiting Lun
# mutlipath -ll
2.Verify the LVM disk
# pvs;vgs;lvs
3. Verify the output of disk
4. Once the storage team assing the disk, please scan the disk and make sure it is available to OS
# hp_rescan -a
# df -h
# mutlipath -ll
fdisk -l -------------To check the new attached disk ( Suppose disk is /dev/disk/by-id/scsi-mpathc )
# pvs;vgs;lvs
# pvcreate /dev/disk/by-id/scsi-mpathc
# pvscan
# pvdisplay /dev/disk/by-id/scsi-mpathb /dev/disk/by-id/scsi-mpathc
# vgs
# vgextend vg01 /dev/disk/by-id/scsi-mpathc
# lvs -a -o +devices,size
# pvmove -background /dev/disk/by-id/scsi-mpathb /dev/disk/by-id/scsi-mpathc
# lvs -a -o +devices,size ------------ Verify the LV is now the part of /dev/disk/by-id/scsi-mpathc
pvdisplay /dev/disk/by-id/scsi-mpathb /dev/disk/by-id/scsi-mpathc
44 2018-11-22 17:16:41 vgreduce vg01 /dev/disk/by-id/scsi-mpathb
45 2018-11-22 17:16:48 pvremove /dev/disk/by-id/scsi-mpathb
########################################################################################################################
Remove the old lun from VG
vgreduce vg01 /dev/disk/by-id/scsi-mpathb
pvremove /dev/disk/by-id/scsi-mpathb
Remove the LUN from the system.
#dmsetup remove /dev/disk/by-id/scsi-mpathb
# mutlipath -ll
2.Verify the LVM disk
# pvs;vgs;lvs
3. Verify the output of disk
4. Once the storage team assing the disk, please scan the disk and make sure it is available to OS
# hp_rescan -a
# df -h
# mutlipath -ll
fdisk -l -------------To check the new attached disk ( Suppose disk is /dev/disk/by-id/scsi-mpathc )
# pvs;vgs;lvs
# pvcreate /dev/disk/by-id/scsi-mpathc
# pvscan
# pvdisplay /dev/disk/by-id/scsi-mpathb /dev/disk/by-id/scsi-mpathc
# vgs
# vgextend vg01 /dev/disk/by-id/scsi-mpathc
# lvs -a -o +devices,size
# pvmove -background /dev/disk/by-id/scsi-mpathb /dev/disk/by-id/scsi-mpathc
# lvs -a -o +devices,size ------------ Verify the LV is now the part of /dev/disk/by-id/scsi-mpathc
pvdisplay /dev/disk/by-id/scsi-mpathb /dev/disk/by-id/scsi-mpathc
44 2018-11-22 17:16:41 vgreduce vg01 /dev/disk/by-id/scsi-mpathb
45 2018-11-22 17:16:48 pvremove /dev/disk/by-id/scsi-mpathb
########################################################################################################################
Remove the old lun from VG
vgreduce vg01 /dev/disk/by-id/scsi-mpathb
pvremove /dev/disk/by-id/scsi-mpathb
Remove the LUN from the system.
#dmsetup remove /dev/disk/by-id/scsi-mpathb
No comments:
Post a Comment