分类: LINUX
2009-10-26 10:17:36
在CentOS5.4下单网卡多连接到一个iscsi target
实验环境:
客户端:
为vmware上面虚拟的CentOS5.4 32bit
网卡1:192.168.198.91
网卡2:192.168.198.92
服务端:
为vmware上面虚拟的openfiler2.3 32bit
网卡1:192.168.198.90
卷信息,均模拟成iscsi形式:
Volume name |
Volume description |
Volume size |
File system type |
File system size |
FS used space |
FS free space |
Delete |
Properties |
Snapshots |
v1 |
v1 |
512 MB |
iSCSI |
Not applicable |
Not applicable |
Not applicable |
In use |
|
|
v2 |
v2 |
224 MB |
iSCSI |
Not applicable |
Not applicable |
Not applicable |
In use |
|
|
下面操作均为在客户端操作:
【发现iSCSI Target】
[root@localhost iscsi]# iscsiadm -m discovery -t st -p 192.168.198.90:3260
192.168.198.90:3260,1 iqn.2006-01.com.openfiler:tsn.37314e76b65a
【登录iSCSI Target连接】
[root@localhost iscsi]# iscsiadm -m node -l
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
【退出iSCSI Target 连接】
[root@localhost iscsi]# iscsiadm -m node -u
Logging out of session [sid: 1, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logout of [sid: 1, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
【生成aaa,bbb,ccc的iSCSI访问接口文件】
[root@localhost send_targets]# iscsiadm -m iface -I aaa --op=new
New interface aaa added
[root@localhost send_targets]# iscsiadm -m iface -I bbb --op=new
New interface bbb added
[root@localhost send_targets]# iscsiadm -m iface -I ccc --op=new
New interface ccc added
【iSCSI生成的接口文件】
[root@localhost ifaces]# pwd
/var/lib/iscsi/ifaces
[root@localhost ifaces]# ll
total 12
-rw------- 1 root root 91 Oct 25 23:15 aaa
-rw------- 1 root root 91 Oct 25 23:15 bbb
-rw------- 1 root root 91 Oct 25 23:15 ccc
[root@localhost ifaces]#
【检查eth1的MAC地址】
[root@localhost send_targets]# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0C:29:6B:1D:0D
inet addr:192.168.198.92 Bcast:192.168.198.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6b:1d0d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2537 errors:0 dropped:0 overruns:0 frame:0
TX packets:1910 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3057486 (2.9 MiB) TX bytes:163372 (159.5 KiB)
Interrupt:193 Base address:0x2080
【绑定eth1的MAC地址到访问接口文件】下面记录的是同一个MAC地址,意思是通过一个网卡(eth1)发起三个连接。
[root@localhost iscsi]# iscsiadm -m iface -I aaa --op=update -n iface.hwaddress -v 00:0C:29:6B:1D:0D
aaa updated.
[root@localhost iscsi]# iscsiadm -m iface -I bbb --op=update -n iface.hwaddress -v 00:0C:29:6B:1D:0D
bbb updated.
[root@localhost iscsi]# iscsiadm -m iface -I ccc --op=update -n iface.hwaddress -v 00:0C:29:6B:1D:0D
ccc updated.
【发现Target】
[root@localhost iscsi]# iscsiadm -m discovery -t st -p 192.168.198.90 -I aaa -I bbb -I ccc
192.168.198.90:3260,1 iqn.2006-01.com.openfiler:tsn.37314e76b65a
192.168.198.90:3260,1 iqn.2006-01.com.openfiler:tsn.37314e76b65a
192.168.198.90:3260,1 iqn.2006-01.com.openfiler:tsn.37314e76b65a
【通过iSCSI访问接口,aaa,bbb,ccc建立与Target的连接】
[root@localhost iscsi]# iscsiadm -m node -l
Logging in to [iface: aaa, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logging in to [iface: bbb, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logging in to [iface: ccc, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Login to [iface: aaa, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
Login to [iface: bbb, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
Login to [iface: ccc, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
【检查到Target的网络连接】
[root@localhost iscsi]# netstat -anp | grep 3260
tcp 0 0 192.168.198.92:44707 192.168.198.90:3260 ESTABLISHED 2519/iscsid
tcp 0 0 192.168.198.92:44708 192.168.198.90:3260 ESTABLISHED 2519/iscsid
tcp 0 0 192.168.198.92:44709 192.168.198.90:3260 ESTABLISHED 2519/iscsid
tcp 0 0 192.168.198.91:59123 192.168.198.90:3260 TIME_WAIT -
[root@localhost iscsi]#
【退出Target的连接】
[root@localhost iscsi]# iscsiadm -m node -u
Logging out of session [sid: 2, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logging out of session [sid: 4, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logging out of session [sid: 3, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logout of [sid: 2, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
Logout of [sid: 4, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
Logout of [sid: 3, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
【退出的连接后,检查到Target的网络连接情况】
[root@localhost iscsi]# netstat -anp | grep 3260
tcp 0 0 192.168.198.91:59123 192.168.198.90:3260 TIME_WAIT -
[root@localhost iscsi]#
【检查mutipath映射的设备信息】
[root@localhost iscsi]# ls /dev/mapper/
VolGroup00-LogVol00 VolGroup00-LogVol01 control
[root@localhost iscsi]#
【重启multipath多路径软件】
root@localhost iscsi]# /etc/init.d/multipathd restart
Stopping multipathd daemon: [ OK ]
Starting multipathd daemon: [ OK ]
【检查并列出mutipath设备】
[root@localhost iscsi]# multipath –ll
【刷新multiipath设备】
[root@localhost iscsi]# multipath -F
【检查mutipath服务信息】
[root@localhost iscsi]# multipath -v2
上面没有任何输出,说明多路径软件并没有查到多设备
【重新用iscsiadm登入一下。再用多路径软件查询就可以发现了】
[root@localhost iscsi]# iscsiadm -m node -l
Logging in to [iface: aaa, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logging in to [iface: bbb, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Logging in to [iface: ccc, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]
Login to [iface: aaa, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
Login to [iface: bbb, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
Login to [iface: ccc, target: iqn.2006-01.com.openfiler:tsn.37314e76b65a, portal: 192.168.198.90,3260]: successful
因为我在openfiler这一端虚拟两块iscsi磁盘,下面显示两个设备的uuid,记下他们。
[root@localhost iscsi]# multipath -ll
14f504e46494c4500425450594d6d2d633859502d53304d4d dm-3 OPNFILER,VIRTUAL-DISK
[size=224M][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 5:0:0:1 sde 8:64 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 6:0:0:1 sdf 8:80 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 7:0:0:1 sdg 8:96 [active][ready]
14f504e46494c4500365178454b492d4a3473582d426f4f4d dm-2 OPNFILER,VIRTUAL-DISK
[size=512M][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=1][enabled]
\_ 5:0:0:0 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 6:0:0:0 sdc 8:32 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 7:0:0:0 sdd 8:48 [active][ready]
[root@localhost iscsi]#
修改/etc/multipath.conf软件,添下如下内容:
multipaths {
multipath {
wwid 14f504e46494c4500425450594d6d2d633859502d53304d4d
alias iscsidisk1
path_grouping_policy multibus
path_checker readsector0
path_selector "round-robin 0"
failback manual
rr_weight priorities
no_path_retry 5
}
multipaths {
multipath {
wwid 14f504e46494c4500365178454b492d4a3473582d426f4f4d
alias iscsidisk2
path_grouping_policy multibus
path_checker readsector0
path_selector "round-robin 0"
failback manual
rr_weight priorities
no_path_retry 5
}
}
注释如下部分:
#blacklist {
# devnode "*"
#}
这样mutlipath.conf就配置好了。
【重启multipath多路径软件】
[root@localhost iscsi]# /etc/init.d/multipathd restart
Stopping multipathd daemon: [ OK ]
Starting multipathd daemon: [ OK ]
【检查mutipath设备】
[root@localhost iscsi]# multipath -ll
iscsidisk2 (14f504e46494c4500365178454b492d4a3473582d426f4f4d) dm-2 OPNFILER,VIRTUAL-DISK
[size=512M][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=1][enabled]
\_ 5:0:0:0 sdb 8:16 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 6:0:0:0 sdc 8:32 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 7:0:0:0 sdd 8:48 [active][ready]
iscsidisk1 (14f504e46494c4500425450594d6d2d633859502d53304d4d) dm-3 OPNFILER,VIRTUAL-DISK
[size=224M][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=1][active]
\_ 5:0:0:1 sde 8:64 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 6:0:0:1 sdf 8:80 [active][ready]
\_ round-robin 0 [prio=1][enabled]
\_ 7:0:0:1 sdg 8:96 [active][ready]
[root@localhost iscsi]#
【刷新multiipath设备】
[root@localhost iscsi]# multipath –F
【检查mutipath服务信息】
[root@localhost iscsi]# multipath -v2
/sbin/scsi_id exitted with 1
error calling out /sbin/scsi_id -g -u -s /block/sda
/sbin/scsi_id exitted with 1
error calling out /sbin/scsi_id -g -u -s /block/sda
create: iscsidisk2 (14f504e46494c4500365178454b492d4a3473582d426f4f4d) OPNFILER,VIRTUAL-DISK
[size=512M][features=0][hwhandler=0][n/a]
\_ round-robin 0 [prio=3][undef]
\_ 5:0:0:0 sdb 8:16 [undef][ready]
\_ 6:0:0:0 sdc 8:32 [undef][ready]
\_ 7:0:0:0 sdd 8:48 [undef][ready]
create: iscsidisk1 (14f504e46494c4500425450594d6d2d633859502d53304d4d) OPNFILER,VIRTUAL-DISK
[size=224M][features=0][hwhandler=0][n/a]
\_ round-robin 0 [prio=3][undef]
\_ 5:0:0:1 sde 8:64 [undef][ready]
\_ 6:0:0:1 sdf 8:80 [undef][ready]
\_ 7:0:0:1 sdg 8:96 [undef][ready]
[root@localhost iscsi]#
【检查mutipath映射的设备信息】
[root@localhost mapper]# pwd
/dev/mapper
[root@localhost mapper]# ls -l
total 0
brw------- 1 root root 253, 0 Oct 25 23:13 VolGroup00-LogVol00
brw------- 1 root root 253, 1 Oct 25 23:12 VolGroup00-LogVol01
crw------- 1 root root 10, 63 Oct 25 23:12 control
brw-rw---- 1 root disk 253, 3 Oct 25 23:23 iscsidisk1
brw-rw---- 1 root disk 253, 2 Oct 25 23:23 iscsidisk2
[root@localhost mapper]#
【给磁盘分区】
[root@localhost mapper]# fdisk iscsidisk1
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk iscsidisk1: 234 MB, 234881024 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Iscsidisk1分成三个分区:
Command (m for help): p
Disk iscsidisk1: 234 MB, 234881024 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
iscsidisk1p1 1 10 80293+ 83 Linux
iscsidisk1p2 11 20 80325 83 Linux
iscsidisk1p3 21 28 64260 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@localhost mapper]#
【给第二个设备分区】
fdisk iscsidisk2
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk iscsidisk2: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command (m for help): p
Disk iscsidisk2: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
iscsidisk2p1 1 65 522081 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@localhost mapper]#
【同步数据,并且重启服务器】
[root@localhost mapper]# sync
[root@localhost mapper]# sync
[root@localhost mapper]# reboot
Broadcast message from root (pts/0) (Sun Oct 25 23:24:50 2009):
The system is going down for reboot NOW!
[root@localhost mapper]#
【重启之后,经验证已经是三个连接到openfiler的3260端口】
[root@localhost ~]# netstat -anp | grep 3260
tcp 0 0 192.168.198.92:40831 192.168.198.90:3260 ESTABLISHED 1638/iscsid
tcp 0 0 192.168.198.92:40833 192.168.198.90:3260 ESTABLISHED 1638/iscsid
tcp 0 0 192.168.198.92:40832 192.168.198.90:3260 ESTABLISHED 1638/iscsid
[root@localhost ~]# cd /dev/mapper/
[root@localhost mapper]# ls
VolGroup00-LogVol00 VolGroup00-LogVol01 control iscsidisk1 iscsidisk1p1 iscsidisk1p2 iscsidisk1p3 iscsidisk2 iscsidisk2p1
[root@localhost mapper]# ls -l
total 0
brw------- 1 root root 253, 0 Oct 25 23:26 VolGroup00-LogVol00
brw------- 1 root root 253, 1 Oct 25 23:25 VolGroup00-LogVol01
crw------- 1 root root 10, 63 Oct 25 23:25 control
brw-rw---- 1 root disk 253, 3 Oct 25 23:26 iscsidisk1
brw-rw---- 1 root disk 253, 5 Oct 25 23:26 iscsidisk1p1
brw-rw---- 1 root disk 253, 6 Oct 25 23:26 iscsidisk1p2
brw-rw---- 1 root disk 253, 7 Oct 25 23:26 iscsidisk1p3
brw-rw---- 1 root disk 253, 2 Oct 25 23:26 iscsidisk2
brw-rw---- 1 root disk 253, 4 Oct 25 23:26 iscsidisk2p1
【可以直接生成ext3文件系统】
[root@localhost mapper]# mkfs.ext3 iscsidiskp1
mke2fs 1.39 (29-May-2006)
Could not stat iscsidiskp1 --- No such file or directory
The device apparently does not exist; did you specify it correctly?
[root@localhost mapper]# mkfs.ext3 iscsidisk1p1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
20080 inodes, 80292 blocks
4014 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
10 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 28 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost mapper]#
【做完文件系统后可以直接mount磁盘分区】
[root@localhost multipath]# mount -t ext3 /dev/mapper/iscsidisk1p1 /mnt
[root@localhost multipath]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
5.7G 2.6G 2.9G 47% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/mapper/iscsidisk1p1
76M 5.6M 67M 8% /mnt
[root@localhost multipath]#
【显示多路径设备】
[root@localhost multipath]# multipath -ll
iscsidisk2 (14f504e46494c4500365178454b492d4a3473582d426f4f4d) dm-2 OPNFILER,VIRTUAL-DISK
[size=512M][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=3][active]
\_ 2:0:0:0 sdc 8:32 [active][ready]
\_ 3:0:0:0 sdd 8:48 [active][ready]
\_ 1:0:0:0 sdb 8:16 [active][ready]
iscsidisk1 (14f504e46494c4500425450594d6d2d633859502d53304d4d) dm-3 OPNFILER,VIRTUAL-DISK
[size=224M][features=1 queue_if_no_path][hwhandler=0][rw]
\_ round-robin 0 [prio=3][active]
\_ 2:0:0:1 sdf 8:80 [active][ready]
\_ 1:0:0:1 sde 8:64 [active][ready]
\_ 3:0:0:1 sdg 8:96 [active][ready]
注意上输出的磁盘符,是从sdb一直到sdg,一个6个,跟我开始三个连接,正好符合。正同是df –h和fdisk -l列出来的结果。
[root@localhost multipath]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
5.7G 2.6G 2.9G 47% /
/dev/sda1 99M 12M 82M 13% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/mapper/iscsidisk1p1
76M 5.6M 67M 8% /mnt
[root@localhost multipath]# fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 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 1044 8281507+ 8e Linux LVM
Disk /dev/sdb: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 65 522081 83 Linux
Disk /dev/sdc: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 65 522081 83 Linux
Disk /dev/sdd: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 65 522081 83 Linux
Disk /dev/sdf: 234 MB, 234881024 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 10 80293+ 83 Linux
/dev/sdf2 11 20 80325 83 Linux
/dev/sdf3 21 28 64260 83 Linux
Disk /dev/sde: 234 MB, 234881024 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 10 80293+ 83 Linux
/dev/sde2 11 20 80325 83 Linux
/dev/sde3 21 28 64260 83 Linux
Disk /dev/sdg: 234 MB, 234881024 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 10 80293+ 83 Linux
/dev/sdg2 11 20 80325 83 Linux
/dev/sdg3 21 28 64260 83 Linux
Disk /dev/dm-2: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-2p1 1 65 522081 83 Linux
Disk /dev/dm-3: 234 MB, 234881024 bytes
255 heads, 63 sectors/track, 28 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-3p1 1 10 80293+ 83 Linux
/dev/dm-3p2 11 20 80325 83 Linux
/dev/dm-3p3 21 28 64260 83 Linux
Disk /dev/dm-4: 534 MB, 534610944 bytes
255 heads, 63 sectors/track, 64 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-4 doesn't contain a valid partition table
Disk /dev/dm-5: 82 MB, 82220544 bytes
255 heads, 63 sectors/track, 9 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-5 doesn't contain a valid partition table
Disk /dev/dm-6: 82 MB, 82252800 bytes
255 heads, 63 sectors/track, 10 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-6 doesn't contain a valid partition table
Disk /dev/dm-7: 65 MB, 65802240 bytes
255 heads, 63 sectors/track, 8 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-7 doesn't contain a valid partition table
[root@localhost multipath]#
最后把启动磁盘和mount点对应添写到/etc/fstab,并且重启服务器,查看是否可以自动mount磁盘
/dev/mapper/iscsidisk1p1 /mnt ext3 defaults 1 2
重启后发现这个问题,文件系统变成read-only状态,不知如何修复-_-!