티스토리 뷰

# multipath -ll
pathe (2c5fee86d7438e06f6c9ce9002eae9f8b) dm-0 Nimble  ,Server          
size=10G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 1:0:0:3  sdb 8:16 active ready running
| `- 16:0:0:3 sdd 8:48 active ready running
`-+- policy='service-time 0' prio=1 status=enabled
  |- 1:0:1:3  sdc 8:32 active ghost running
  `- 16:0:1:3 sde 8:64 active ghost running

 

mpathe 라는 DM LUN을 스토리지에서 제거 하려고 할 경우

 

스토리지에서 LUN 마운트 해제 작업 후 아래와 같이 출력 됨

 

# multipath -ll
Jul 24 14:32:12 | sdb: couldn't get target port group
Jul 24 14:32:12 | sdd: couldn't get target port group
Jul 24 14:32:12 | sdc: couldn't get target port group
Jul 24 14:32:12 | sde: couldn't get target port group
mpathe (2c5fee86d7438e06f6c9ce9002eae9f8b) dm-0 Nimble  ,Server          
size=10G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| |- 1:0:0:3  sdb 8:16 active faulty running
| `- 16:0:0:3 sdd 8:48 active faulty running
`-+- policy='service-time 0' prio=0 status=enabled
  |- 1:0:1:3  sdc 8:32 active faulty running
  `- 16:0:1:3 sde 8:64 active faulty running

 

# rescan-scsi-bus.sh

 

fc나 scsi i/o 설정 다시 스캔

 

# multipath -ll

 

명령어 입력 해보면 더이상 DM 볼륨은 보이지 않습니다.

만약 보인다면

 

아래 명령어로 수작업 삭제

 

# multipath -f mpathe

 

 

그런데 아래 명령어를 수행하면 기존 /dev/sdb 외 기존 정보가 남아 있음.

 

# fdisk -l
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 899.6 GB, 899627876352 bytes, 1757085696 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk label type: gpt


#         Start          End    Size  Type            Name
 1         2048      1001471    488M  EFI System      EFI System Partition
 2      1001472     79124479   37.3G  Linux swap     
 3     79124480   1757083647  800.1G  Microsoft basic
fdisk: cannot open /dev/sdb: 입력/출력 오류

.

.

.

 

# ls -lh /dev/disk/

/dev/disk/by-id:

lrwxrwxrwx 1 root root  9  7월 24 14:32 pci-0000:81:00.0-fc-0x56c9ce901e77be01-lun-3 -> ../../sdc
lrwxrwxrwx 1 root root  9  7월 24 14:32 pci-0000:81:00.0-fc-0x56c9ce901e77be03-lun-3 -> ../../sdb
lrwxrwxrwx 1 root root  9  7월 24 14:32 pci-0000:81:00.1-fc-0x56c9ce901e77be01-lun-3 -> ../../sde
lrwxrwxrwx 1 root root  9  7월 24 14:32 pci-0000:81:00.1-fc-0x56c9ce901e77be03-lun-3 -> ../../sdd

 

아직 기존 볼륨에 대한 정보가 남아 있음.

 

# echo 1 > /sys/block/sdc/device/delete/device/deleted/device/delete
# echo 1 > /sys/block/sdd/device/delete/device/deletee/device/delete


# echo 1 > /sys/block/sde/device/deleted/device/delete

# echo 1 > /sys/block/sdc/device/deleted/device/delete

# echo 1 > /sys/block/sdd/device/deleted/device/delete

# echo 1 > /sys/block/sdb/device/deleted/device/delete
# fdisk -l

Disk /dev/sda: 899.6 GB, 899627876352 bytes, 1757085696 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 262144 bytes / 262144 bytes
Disk label type: gpt


#         Start          End    Size  Type            Name
 1         2048      1001471    488M  EFI System      EFI System Partition
 2      1001472     79124479   37.3G  Linux swap     
 3     79124480   1757083647  800.1G  Microsoft basic

 

삭제 완료.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함