1:首先安装iscsi客户端的安装包 rpm -i iscsi-initiator-utils-6.2.0.871-0.10.el5
2:安装完以后可以在 /etc/iscsi/ 目录下就会有2个配置文件,在我配置过过程中貌似没用到这个2个文件,如果哪位知道这2个配置文件的用途,请告知一下!
3:启动iscsi 服务 service iscsid start
4:寻找 targetname: iscsiadm --mode discovery --type sendtargets -p ipaddress 如果找到了会显示出targetname
5:发现 targetname 以后就可以 挂载盘了 iscsiadm --mode node --targetname targetname -p ipaddress:port --login
6:fdisk -l 查看有没有挂载上去
- [root@node2 iscsi]# service iscsid restart
- Stopping iSCSI daemon:
- Turning off network shutdown. Starting iSCSI daemon: [ OK ]
- [ OK ]
- [root@node2 iscsi]# iscsiadm --mode discovery --type sendtargets -p 192.168.100.1
- 192.168.100.1:3260,1 iqn.2006-01.com.openfiler:tsn.02e4b304dd08
- 192.168.100.1:3260,1 iqn.2006-01.com.openfiler:tsn.56210ac2838b
- [root@node2 iscsi]# iscsiadm --mode node --targetname iqn.2006-01.com.openfiler:
- tsn.56210ac2838b -p 192.168.100.1:3260 --login
- Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.56210ac2838b, portal: 192.168.100.1,3260]
- Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.56210ac2838b, portal: 192.168.100.1,3260]: successful
- [root@node2 iscsi]# fdisk -l
- Disk /dev/sda: 26.8 GB, 26843545600 bytes
- 255 heads, 63 sectors/track, 3263 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 13 104391 83 Linux
- /dev/sda2 14 3263 26105625 8e Linux LVM
- Disk /dev/sdb: 1073 MB, 1073741824 bytes
- 34 heads, 61 sectors/track, 1011 cylinders
- Units = cylinders of 2074 * 512 = 1061888 bytes
- Disk /dev/sdb doesn't contain a valid partition table
- Disk /dev/sdc: 52.4 GB, 52445577216 bytes
- 64 heads, 32 sectors/track, 50016 cylinders
- Units = cylinders of 2048 * 512 = 1048576 bytes
- Disk /dev/sdc doesn't contain a valid partition table
- Disk /dev/sdd: 10.5 GB, 10502537216 bytes
- 64 heads, 32 sectors/track, 10016 cylinders
- Units = cylinders of 2048 * 512 = 1048576 bytes
- Disk /dev/sdd doesn't contain a valid partition table
- [root@node2 iscsi]#
阅读(2048) | 评论(0) | 转发(0) |