iscsi 블록디바이스 생성에 대한 문의.
페이지 정보
본문
data1 : /dev/sdb
data2 : /dev/sdc
data3 : /dev/sdd
로 블록을 생성하여 클라이언트 서버에 iscsi 등록까지 완료 하였고, 타겟서버 리부팅 후 targetcli로 확인했을때, 아래와 같이 data2 블록이 사라진 것을 확인 하였습니다.
o- / .................................................................................. [...]
o- backstores ....................................................................... [...]
| o- block ........................................................... [Storage Objects: 2]
| | o- data1 ..................................... [/dev/sdb (1.0GiB) write-thru activated]
| | | o- alua ............................................................ [ALUA Groups: 1]
| | | o- default_tg_pt_gp ................................ [ALUA state: Active/optimized]
| | o- data3 ..................................... [/dev/sdd (3.0GiB) write-thru activated]
| | o- alua ............................................................ [ALUA Groups: 1]
| | o- default_tg_pt_gp ................................ [ALUA state: Active/optimized]
| o- fileio .......................................................... [Storage Objects: 0]
| o- pscsi ........................................................... [Storage Objects: 0]
| o- ramdisk ......................................................... [Storage Objects: 0]
o- iscsi ..................................................................... [Targets: 3]
| o- iqn.2021-11.com.data1:target ............................................... [TPGs: 1]
| | o- tpg1 ........................................................ [no-gen-acls, no-auth]
| | o- acls ................................................................... [ACLs: 1]
| | | o- iqn.2021-11.com.client:client ................................. [Mapped LUNs: 1]
| | | o- mapped_lun0 .......................................... [lun0 block/data1 (rw)]
| | o- luns ................................................................... [LUNs: 1]
| | | o- lun0 ............................... [block/data1 (/dev/sdb) (default_tg_pt_gp)]
| | o- portals ............................................................. [Portals: 2]
| | o- 192.168.100.130:3260 ...................................................... [OK]
| | o- 192.168.100.150:3260 ...................................................... [OK]
| o- iqn.2021-11.com.data2:target ............................................... [TPGs: 1]
| | o- tpg1 ........................................................ [no-gen-acls, no-auth]
| | o- acls ................................................................... [ACLs: 1]
| | | o- iqn.2021-11.com.client:client ................................. [Mapped LUNs: 0]
| | o- luns ................................................................... [LUNs: 0]
| | o- portals ............................................................. [Portals: 2]
| | o- 192.168.100.130:3260 ...................................................... [OK]
| | o- 192.168.100.150:3260 ...................................................... [OK]
| o- iqn.2021-11.com.data3:target ............................................... [TPGs: 1]
| o- tpg1 ........................................................ [no-gen-acls, no-auth]
| o- acls ................................................................... [ACLs: 1]
| | o- iqn.2021-11.com.client:client ................................. [Mapped LUNs: 1]
| | o- mapped_lun0 .......................................... [lun0 block/data3 (rw)]
| o- luns ................................................................... [LUNs: 1]
| | o- lun0 ............................... [block/data3 (/dev/sdd) (default_tg_pt_gp)]
| o- portals ............................................................. [Portals: 2]
| o- 192.168.100.130:3260 ...................................................... [OK]
| o- 192.168.100.150:3260 ...................................................... [OK]
o- loopback .................................................................. [Targets: 0]
data2 블록을 재생성하려고 시도하였으나, 생성이 안되는데 어떻게 이 문제를 해결할 수 있나요?
/> /backstores/block/ create data2 /dev/sdc
Cannot configure StorageObject because device /dev/sdc is already in use
/>
클라이언트 서버에서 lsscsi, multipath -ll로 확인 시 data1(1G), data3(3G) 멀티패스는 정상적으로 인식이 됩니다.
- 이전글log4j가 무엇인가요?? 21.12.14
- 다음글iscsi targetcli fileio에 대한 질문. 21.11.11
댓글목록
kwazii님의 댓글
kwazii 작성일
"device <device명> is already in use" 메세지가 발생하는 경우는 주로 Device가 사용 중인 경우를 나타냅니다.
타켓 서버의 부팅 중 LVM이나 multipath 데몬에 의해 /dev/sdc 장치가 먼저 선점 되었을 가능성이 있습니다.
pvs나 multipath -ll 명령을 통하여 장치가 어느 곳에서 사용 중인지 확인 해 보시기 바랍니다.