■ device 장치와 마운트 정보 보기
# sg_map -x
[root@test ~]# sg_map -x
/dev/sg0 6 0 0 0 0 /dev/sda
/dev/sg1 6 0 1 0 0 /dev/sdb
/dev/sg2 6 0 2 0 0 /dev/sdc
/dev/sg3 6 0 3 0 0 /dev/sdd
/dev/sg4 6 0 4 0 0 /dev/sde
/dev/sg5 6 0 5 0 0 /dev/sdf
/dev/sg6 6 0 6 0 0 /dev/sdg
/dev/sg7 6 0 7 0 0 /dev/sdh
/dev/sg8 6 0 27 0 0 /dev/sdi
/dev/sg9 6 0 9 0 0 /dev/sdj
/dev/sg10 6 0 10 0 0 /dev/sdk
/dev/sg11 6 0 11 0 0 /dev/sdl
/dev/sg12 6 0 12 0 0 /dev/sdm
/dev/sg13 6 0 13 0 13
/dev/sg14 6 0 14 0 0 /dev/sdn
/dev/sg15 6 0 15 0 0 /dev/sdo
/dev/sg16 6 0 16 0 0 /dev/sdp
/dev/sg17 6 0 17 0 0 /dev/sdq
/dev/sg18 6 0 18 0 0 /dev/sdr
/dev/sg19 6 0 19 0 0 /dev/sds
/dev/sg20 6 0 20 0 0 /dev/sdt
/dev/sg21 6 0 21 0 0 /dev/sdu
/dev/sg22 6 0 22 0 0 /dev/sdv
/dev/sg23 6 0 23 0 0 /dev/sdw
/dev/sg24 6 0 24 0 0 /dev/sdx
/dev/sg25 6 0 25 0 0 /dev/sdy
/dev/sg26 6 0 26 0 13
■ device 장치 제거
# echo "scsi remove-single-device 6 0 14 0" > /proc/scsi/scsi
설명 : " 6 0 14 0 ==> sg_map 에서 정보 확인"
- device 장치 연결후 cat
/proc/scsi/scsi 확인시 신규 disk 인식이 자동 되지 않을 경우 아래와 같이 재인식 명령 실행
# echo "- - -" > /sys/class/scsi_host/host6/scan
설명 : host6 정보는 아래와 같이 host 다음 scsi6으로 확인
[root@test ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi6 Channel: 03 Id: 00 Lun: 00
Vendor: HP Model: P420 Rev: 5.42
Type: RAID ANSI SCSI revision: 05
도움이 되셨다면 공감과 댓글 부탁 드립니다. *^.^*
'Linux' 카테고리의 다른 글
/etc/xinetd.conf 설정 값 (0) | 2014.11.24 |
---|---|
[Linux] NIC Port 변경 (0) | 2014.09.25 |
max open files, max process 설정 값 변경 (0) | 2014.08.11 |
vsftp 일반 계정 설정 (0) | 2014.04.17 |
Dell 서버 Array 체크 rpm (0) | 2014.04.08 |