感谢支持
我们一直在努力

CentOS 5.6 iSCSI 客户端配置

 1、如果之前有配置好的服务器端连接,现在客户端不想用之前的连接了,CentOS5.6 下清除非常简单,按照如下方法卸载。


   1)停止服务
service  iscsi stop


   2)去除挂载
iscsiadm -m node –op delete



    3)重启服务
[root@rac1 send_targets]# service iscsi restart
Stopping iSCSI daemon:
iscsid is stopped                                          [  OK  ]
Starting iSCSI daemon:                                     [  OK  ]
                                                           [  OK  ]
Setting up iSCSI targets: iscsiadm: No records found!
                                                           [  OK  ]
     2、配置客户端


1)正确配置openfiler,请一定要严格按照文档,不要遗漏任何一步。



2)扫描
[root@www.linuxidc.com ~]# iscsiadm -m discovery -t sendtargets -p 172.100.10.100
172.100.10.100:3260,1 iqn.2006-01.com.openfiler:LUN2
172.100.10.100:3260,1 iqn.2006-01.com.openfiler:LUN1



3)重启服务
service iscsi restart



4)可以看到目录
[root@rac1 ~]# fdisk -l


Disk /dev/sda: 299.4 GB, 299439751168 bytes
255 heads, 63 sectors/track, 36404 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        4092    32764567+  82  Linux swap / Solaris
/dev/sda3            4093       36404   259546140   83  Linux


Disk /dev/sdb: 11.2 GB, 11240734720 bytes
64 heads, 32 sectors/track, 10720 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes


Disk /dev/sdb doesn’t contain a valid partition table


Disk /dev/sdc: 87.9 GB, 87979720704 bytes
255 heads, 63 sectors/track, 10696 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


Disk /dev/sdc doesn’t contain a valid partition table


Disk /dev/sdd: 115.1 GB, 115125256192 bytes
255 heads, 63 sectors/track, 13996 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


结束了。。。哈哈就是这么简单

赞(0) 打赏
转载请注明出处:服务器评测 » CentOS 5.6 iSCSI 客户端配置
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏