°Ô½Ã¹° 20°Ç
   
[SUSE] iscsi ¿¬°á (½ºÅ丮Áö)
±Û¾´ÀÌ : theko ³¯Â¥ : 2011-10-05 (¼ö) 13:38 Á¶È¸ : 2686
- Ÿ°ÙÀ» ¸ÕÀú ã´Â´Ù.
# iscsiadm -m discovery -t sendtargets -p 10.217.98.52

- Ÿ°Ù Á¤º¸À» º»´Ù.
# iscsiadm -m node

10.217.98.52:3260,2 iqn.1986-03.com.sun:02:22b43411-7f0c-4ccb-f25b-e535d9ef6030
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:1d532ef4-1bee-66d8-d3ea-fc4278e7d00e
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:c1d98308-22af-e0b8-c0d0-db67cf51a314
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:916ea043-12c4-6393-eb50-b85ff5f768cd
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:445f178a-333b-6b36-b18a-8132e7112021
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:06608c12-fe30-ca5b-a973-e0a08ca02186
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:2c1188f5-747d-e03b-a4a1-f5b6a323af58
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:f4151fec-94b7-601e-a1d6-a9f7b47c6062
10.217.98.52:3260,2 iqn.1986-03.com.sun:02:e064ee63-af62-c577-dda0-ab0b094582df


- Ÿ°Ù°ú ¿¬°áÀ» ÇÑ´Ù.
# iscsiadm -m node -p 10.217.98.52:3260,2 -T iqn.1986-03.com.sun:02:22b43411-7f0c-4ccb-f25b-e535d9ef6030 --login

- Ÿ°Ù°ú ¿¬°áÀ» ²÷´Â´Ù.
# iscsiadm -m node -p 10.217.60.52:3260,3 -T iqn.1986-03.com.sun:02:8aa73d8f-be3e-cc8e-88fb-863f07e7cac8 --logout

- Ÿ°ÙÀ» Áö¿î´Ù.

#iscsiadm -m node -p 10.217.60.52:3260,3 -T iqn.1986-03.com.sun:02:8aa73d8f-be3e-cc8e-88fb-863f07e7cac8 -o delete

=======================================================================
±âŸ¸í·É¾î
Put the target_ip_address to local database : ½ºÅ丮Áö¸¦ ¿¬°áÇÏ¿© ¹ß±ÞµÈ iqnÀ» °¡Áö°í ½ºÅ丮Áö¿¡¼­ ÇÒ´çµÈ Á¤º¸¸¦ °¡Á®¿È
 # iscsiadm -m discovery -t sendtargets -p <target_ip_address>
211.110.XXX.XXX:3260,1 iqn.2001-04.com.example:storage.disk2.amiens.sys1.xy
 
login to target and attach all exported luns:
# iscsiadm -m node --loginall all

 
To get target list, run: Ÿ°Ù¸®½ºÆ® È®ÀÎ
# iscsiadm -m discovery
211.110.XXX.XXX:3260 via sendtargets
211.110.XXX.XXX:3260 via sendtargets

To get the node list, run: discovery µÈ ³»¿ë È®ÀÎ
# iscsiadm -m node
211.110.XXX.XXX:3260,1 iqn.2001-04.com.example:storage.disk2.amiens.sys1.xyz

The iscsid daemon opens a TCP session with the target . To check the open session, run:
# iscsiadm -m session 
or 
# netstat -tpan | grep iscsid
 
or check /sys/class/iscsi_session
 
Find which session a disk belongs to:
# iscsiadm -m session -i
The output will include active sessions and attached scsi disks.

Remove Target
To logut from a target:
# iscsiadm -m node -u <ip address>
 
To delete a target::
 # iscsiadm -m node -o delete <ip address>

theko 2012-05-19 (Åä) 21:17
iscsiadm -m session -P 3 / ¿¬°áµÈ ŸÄÏ Á¤º¸¸¦ ¾ò´Â´Ù.
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com