You want to create a new LUN, LUN ID =1, on a new target, target ID = 2.
Inspect the current state of targets and LUNs in the output from tgt-admin -s. The output is filtered to show only target and LUN associations. [root@EDFAR9P0 init.d]# tgt-admin -s | egrep -i ‘targetin’
Target 1: iqn.2013-03.com.example.mypc:1 LUN information:
LUN: 0 LUN: 1 LUN: 2 LUN: 3
You want to add a new LUN to a new target by using the /iSCSIsharedDisk/physDisk4.img disk image file.
Which two options would you use to do this?
A.
tgt-setup-lun -t 2
tgt-setup-lun -d /iSCSIsharedDisk/physDisk4.img -t 2 ^
B.
tgt-setup-lun -d /iSCSIsharedDisk/physDisk4.img -n 2
C.
tgt-admi n -op new \
-mode target \
—tid 2\
-targetname iqn.2013-03.com.example.mypc:2 tgt-admin -op new \
-mode logicalunit \
-tid 2 \
-lun 1 \
-backing-store/iSCSIsharedDisk/physDisk4.img
D.
tgtadm – op new \
-mode target \
-tid 2\
-targetname iqn.2013-03.com.example.mypc:2 \
-lun 1 \
-backing-store/iSCSIsharedDisk/physDisk4.img
E.
tgt-admin -d /iSCSIsharedDisk/physDisk4.img -n 2
maybe B,C
B & D
The only choices that have valid syntax, per the man pages.
B D
C wrong because has 2 option –tid=2
B C