본문 바로가기
[OS] Linux/- multipath

[Linux7] 스토리지 디바이스 제거

by Eng.yu 2024. 9. 11.

 # umount 

LVM일경우 lv, vg, pv 제거

파티션 존재시 제거

# multipath -l

multipath -f  /dev/mpathxx

# blockdev --flushbufs  /dev/sdx

# echo 1 > /sys/block/sdx/device/delete

# echo 1 > /sys/class/scsi_device/h:c:t:l/device/delete

  (h is the HBA number, c is the channel on the HBA, t is the SCSI target ID, and l is the LUN)

 

참조: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/storage_administration_guide/removing_devices#removing_devices

https://hotpotato.tistory.com/188

'[OS] Linux > - multipath' 카테고리의 다른 글

[Linux] 스토리지 장치 제거  (0) 2025.03.21