我们已经建立了光纤通道,我想连接到它(顺便说一下,我在使用 Ubuntu 12.04)。
我可以看到已交付的 wwpn。但我不知道接下来该做什么。我可以 fdisk 到 /dev 驱动器,但一旦我尝试通过 mkefs 在其上创建文件系统,就会收到 ioctl 错误。
以下是我展示的内容:
systool -c fc_host -A“port_name”给我
Class = "fc_host"
Class Device = "host5"
port_name = "0x21000024ff274080"
Device = "host5"
Class Device = "host6"
port_name = "0x21000024ff274081"
Device = "host6"
Class Device = "host7"
port_name = "0x21000024ff27411a"
Device = "host7"
Class Device = "host8"
port_name = "0x21000024ff27411b"
Device = "host8"
当我执行 ls -ltra /dev/mapper 时,我看到
crw------- 1 root root 10, 236 May 12 14:52 control
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000402 -> ../dm-2
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000400p1 -> ../dm-8
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000400 -> ../dm-5
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000403 -> ../dm-4
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000400-part1 -> ../dm-6
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000404 -> ../dm-1
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000401 -> ../dm-3
drwxr-xr-x 2 root root 260 May 12 17:37 .
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000405p1 -> ../dm-9
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000405 -> ../dm-0
lrwxrwxrwx 1 root root 7 May 12 17:37 360060e80042b570000002b5700000405-part1 -> ../dm-7
ls /sys/class/fc_host 显示 host5、host6、host7 和 host8。
lsscsi 显示我的驱动器:
[0:0:0:0] cd/dvd PLDS DVD-ROM DS-8D3SH HD51 /dev/sr0
[2:0:32:0] enclosu DP BACKPLANE 1.07 -
[2:2:0:0] disk DELL PERC H700 2.10 /dev/sda
[3:0:0:0] disk iDRAC LCDRIVE 0323 /dev/sdb
[4:0:0:0] cd/dvd iDRAC Virtual CD 0323 /dev/sr1
[4:0:0:1] disk iDRAC Virtual Floppy 0323 /dev/sdc
[5:0:0:0] disk HITACHI OPEN-V 5009 /dev/sdd
[5:0:0:1] disk HITACHI OPEN-V 5009 /dev/sdg
[5:0:0:2] disk HITACHI OPEN-V 5009 /dev/sdi
[5:0:0:3] disk HITACHI OPEN-V 5009 /dev/sdk
[5:0:0:4] disk HITACHI OPEN-V 5009 /dev/sdm
[5:0:0:5] disk HITACHI OPEN-V 5009 /dev/sdo
[6:0:1:0] disk HITACHI OPEN-V 5009 /dev/sde
[6:0:1:1] disk HITACHI OPEN-V 5009 /dev/sdf
[6:0:1:2] disk HITACHI OPEN-V 5009 /dev/sdh
[6:0:1:3] disk HITACHI OPEN-V 5009 /dev/sdj
[6:0:1:4] disk HITACHI OPEN-V 5009 /dev/sdl
[6:0:1:5] disk HITACHI OPEN-V 5009 /dev/sdn
[7:0:1:0] disk HITACHI OPEN-V 5009 /dev/sdp
[7:0:1:1] disk HITACHI OPEN-V 5009 /dev/sdq
[7:0:1:2] disk HITACHI OPEN-V 5009 /dev/sdr
[7:0:1:3] disk HITACHI OPEN-V 5009 /dev/sds
[7:0:1:4] disk HITACHI OPEN-V 5009 /dev/sdt
[7:0:1:5] disk HITACHI OPEN-V 5009 /dev/sdu
[8:0:1:0] disk HITACHI OPEN-V 5009 /dev/sdv
[8:0:1:1] disk HITACHI OPEN-V 5009 /dev/sdw
[8:0:1:2] disk HITACHI OPEN-V 5009 /dev/sdx
[8:0:1:3] disk HITACHI OPEN-V 5009 /dev/sdy
[8:0:1:4] disk HITACHI OPEN-V 5009 /dev/sdz
[8:0:1:5] disk HITACHI OPEN-V 5009 /dev/sdaa
我可以通过 fdisk 转到 /dev/sdd,并正确创建一个分区。
但是当我尝试执行 mke2fs -t ext4 -m 0 -O dir_index /dev/sdd1 之类的操作时,它告诉我“/dev/sdd1 显然正在被系统使用;不会在这里创建文件系统!”
有什么线索吗?