歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 5.6 iSCSI 客戶端配置

CentOS 5.6 iSCSI 客戶端配置

日期:2017/2/28 16:01:39   编辑:Linux教程

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)掃描
[[email protected] ~]# 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

結束了。。。哈哈就是這麼簡單

Copyright © Linux教程網 All Rights Reserved