블록 장치가 더 이상 존재하지 않는다는 것을 알고 있습니다 /dev/sde
(이 장치를 에뮬레이트하는 소프트웨어를 중지했기 때문에). 하지만 출력 lsblk
및 /dev
디렉터리에는 여전히 표시됩니다.
명령을 시도하면 fdisk -l /dev/sde
(아래)에 많은 오류가 표시됩니다.syslog
Sep 26 16:25:41 ubuntu3 kernel: [29651.631827] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.631835] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.631838] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.631839] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.631840] Read(10): 28 00 00 00 00 00 00 00 20 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.631845] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.638989] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.639024] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.639026] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.639027] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.639029] Read(10): 28 00 00 00 00 00 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.639034] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.639039] Buffer I/O error on dev sde, logical block 0, async page read
Sep 26 16:25:41 ubuntu3 kernel: [29651.639857] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.639859] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.639861] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.639862] Read(10): 28 00 00 01 86 98 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.639866] blk_update_request: I/O error, dev sde, sector 99992
Sep 26 16:25:41 ubuntu3 kernel: [29651.639884] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.639886] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.639887] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.639888] Read(10): 28 00 00 01 86 98 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.639891] blk_update_request: I/O error, dev sde, sector 99992
Sep 26 16:25:41 ubuntu3 kernel: [29651.639892] Buffer I/O error on dev sde, logical block 12499, async page read
Sep 26 16:25:41 ubuntu3 kernel: [29651.640065] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.640068] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.640069] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.640070] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.640071] Read(10): 28 00 00 00 00 00 00 00 20 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.640075] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.640089] sd 49:0:0:1: [sde] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Sep 26 16:25:41 ubuntu3 kernel: [29651.640090] sd 49:0:0:1: [sde] Sense Key : Illegal Request [current]
Sep 26 16:25:41 ubuntu3 kernel: [29651.640091] sd 49:0:0:1: [sde] Add. Sense: Logical unit not supported
Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] sd 49:0:0:1: [sde] CDB:
Sep 26 16:25:41 ubuntu3 kernel: [29651.640092] Read(10): 28 00 00 00 00 00 00 00 08 00
Sep 26 16:25:41 ubuntu3 kernel: [29651.640095] blk_update_request: I/O error, dev sde, sector 0
Sep 26 16:25:41 ubuntu3 kernel: [29651.640096] Buffer I/O error on dev sde, logical block 0, async page read
/dev/sde
활성 블록 장치 목록에서 이를 제거하도록 Linux에 어떻게 지시해야 합니까?
운영 체제: Ubuntu 14.04.5 LTS, 커널 3.19.0-78-일반
(MacBook의 VMware Fusion 8.5.8에서 가상 머신으로 작동)
답변1
SCSI 하위 시스템에서 장치에 대한 각 경로를 제거할 수 있습니다.
echo 1 > /sys/block/sde/device/delete
참고하시기 바랍니다,전체 명령출력 리디렉션 전 명령의 일부뿐만 아니라 루트로 실행해야 합니다. 따라서 을 사용하는 경우 sudo
다음을 수행하십시오.
sudo bash -c 'echo 1 > /sys/block/sde/device/delete'