[root@station2 /]# yum install -y iscsi*
[root@station2 /]# service iscsid start
[root@station2 /]# service iscsi start
[root@station2 /]# iscsiadm --mode discovery --type sendtargets --portal 10.65.62.30
10.65.62.30:3260,1 iqn.2012-26.com.example:ranji.lun0
[root@station2 /]# cat /proc/partitions
major minor #blocks name
8 0 8388608 sda
8 1 104391 sda1
8 2 8281507 sda2
253 0 7208960 dm-0
253 1 1048576 dm-1
[root@station2 /]# iscsiadm --mode node --targetname iqn.2012-26.com.example:ranji.lun0 --portal 10.65.62.30 --login
Login session [iface: default, target: iqn.2012-26.com.example:ranji.lun0, portal: 10.65.62.30,3260]
[root@station2 /]# cat /proc/partitions
major minor #blocks name
8 0 8388608 sda
8 1 104391 sda1
8 2 8281507 sda2
253 0 7208960 dm-0
253 1 1048576 dm-1
8 16 41943040 sdb ---> this is the device from server
[root@station2 /]# iscsiadm --mode node --targetname iqn.2012-26.com.example:ranji.lun0 --portal 10.65.62.30 --logout
Logout session [sid: 2, target: iqn.2012-26.com.example:ranji.lun0, portal: 10.65.62.30,3260]
[root@station2 /]# cat /proc/partitions
major minor #blocks name
8 0 8388608 sda
8 1 104391 sda1
8 2 8281507 sda2
253 0 7208960 dm-0
253 1 1048576 dm-1
[root@station2 /]# service iscsid start
[root@station2 /]# service iscsi start
[root@station2 /]# iscsiadm --mode discovery --type sendtargets --portal 10.65.62.30
10.65.62.30:3260,1 iqn.2012-26.com.example:ranji.lun0
[root@station2 /]# cat /proc/partitions
major minor #blocks name
8 0 8388608 sda
8 1 104391 sda1
8 2 8281507 sda2
253 0 7208960 dm-0
253 1 1048576 dm-1
[root@station2 /]# iscsiadm --mode node --targetname iqn.2012-26.com.example:ranji.lun0 --portal 10.65.62.30 --login
Login session [iface: default, target: iqn.2012-26.com.example:ranji.lun0, portal: 10.65.62.30,3260]
[root@station2 /]# cat /proc/partitions
major minor #blocks name
8 0 8388608 sda
8 1 104391 sda1
8 2 8281507 sda2
253 0 7208960 dm-0
253 1 1048576 dm-1
8 16 41943040 sdb ---> this is the device from server
[root@station2 /]# iscsiadm --mode node --targetname iqn.2012-26.com.example:ranji.lun0 --portal 10.65.62.30 --logout
Logout session [sid: 2, target: iqn.2012-26.com.example:ranji.lun0, portal: 10.65.62.30,3260]
[root@station2 /]# cat /proc/partitions
major minor #blocks name
8 0 8388608 sda
8 1 104391 sda1
8 2 8281507 sda2
253 0 7208960 dm-0
253 1 1048576 dm-1
No comments:
Post a Comment