
设置了多路径,我安装了QLogic驱动器.我不知道现在要做什么…有这么多磁盘我怎样才能找到正确的挂载?我告诉存储人我在SAN上看到了所有内容,但我从他那里得到了“我不懂Linux”.我不知道要问什么问题来弄清楚要安装的磁盘.
这是fsdisk -l的输出:
disk /dev/cciss/c0d0: 299.9 GB,299959511040 bytes255 heads,63 sectors/track,36468 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/cciss/c0d0p1 * 1 13 104391 83 linux/dev/cciss/c0d0p2 14 36468 292824787+ 8e linux LVMdisk /dev/dm-0: 32.2 GB,32212254720 bytes255 heads,3916 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesdisk /dev/dm-1: 267.6 GB,267630149632 bytes255 heads,32537 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesdisk /dev/sda: 107.3 GB,107374182400 bytes255 heads,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdb: 3298.5 GB,3298534883328 bytes255 heads,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdb1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdc: 214.7 GB,214748364800 bytes255 heads,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdd: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sde: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sde1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdf: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdg: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdh: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdh1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdi: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdj: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdk: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdk1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdl: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdm: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdn: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdn1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdo: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdp: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdq: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdq1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdr: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sds: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdt: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdt1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdu: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdv: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sDW: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sDW1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdx: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdy: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdz: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdz1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdaa: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdab: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdac: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdac1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdad: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdae: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdaf: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdaf1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdag: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdah: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdai: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdai1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdaj: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdak: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdal: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdal1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdam: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdan: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdao: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdao1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdap: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdaq: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdar: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdar1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdas: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdat: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/sdau: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/sdau1 1 267350 2147483647+ ee EFI GPTdisk /dev/sdav: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/dm-2: 214.7 GB,26108 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID Systemdisk /dev/dm-3: 3298.5 GB,401024 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System/dev/dm-3p1 1 267350 2147483647+ ee EFI GPTdisk /dev/dm-4: 107.3 GB,13054 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks ID System
fc_hosts:
cat /sys/class/fc_host/host[1-4]/port_name 0x500143802424eb38 0x500143802424eb3a 0x500143802424ec18 0x500143802424ec1a
多路径:
# multipath -ll mpath2 (360a98000572d505a6834737741386576) dm-4 NETAPP,LUN size=100G features='3 queue_if_no_path pg_init_retrIEs 50' hwhandler='0' wp=rw |-+- policy='round-robin 0' prio=4 status=active | |- 4:0:2:0 sdaq 66:160 active ready running | |- 4:0:1:0 sdan 66:112 active ready running | |- 3:0:3:0 sdah 66:16 active ready running | |- 3:0:1:0 sdab 65:176 active ready running | |- 1:0:3:0 sdv 65:80 active ready running | |- 1:0:1:0 sdp 8:240 active ready running | |- 2:0:2:0 sdg 8:96 active ready running | `- 2:0:1:0 sdd 8:48 active ready running `-+- policy='round-robin 0' prio=1 status=enabled |- 4:0:3:0 sdat 66:208 active ready running |- 4:0:0:0 sdak 66:64 active ready running |- 3:0:2:0 sdae 65:224 active ready running |- 3:0:0:0 sdy 65:128 active ready running |- 1:0:2:0 sds 65:32 active ready running |- 1:0:0:0 sdm 8:192 active ready running |- 2:0:3:0 sdj 8:144 active ready running `- 2:0:0:0 sda 8:0 active ready running mpath1 (360a98000572d505a6834737741434372) dm-3 NETAPP,LUN size=3.0T features='3 queue_if_no_path pg_init_retrIEs 50' hwhandler='0' wp=rw |-+- policy='round-robin 0' prio=4 status=active | |- 4:0:2:1 sdar 66:176 active ready running | |- 4:0:1:1 sdao 66:128 active ready running | |- 3:0:3:1 sdai 66:32 active ready running | |- 3:0:1:1 sdac 65:192 active ready running | |- 1:0:3:1 sDW 65:96 active ready running | |- 1:0:1:1 sdq 65:0 active ready running | |- 2:0:2:1 sdh 8:112 active ready running | `- 2:0:1:1 sde 8:64 active ready running `-+- policy='round-robin 0' prio=1 status=enabled |- 4:0:3:1 sdau 66:224 active ready running |- 4:0:0:1 sdal 66:80 active ready running |- 3:0:2:1 sdaf 65:240 active ready running |- 3:0:0:1 sdz 65:144 active ready running |- 1:0:2:1 sdt 65:48 active ready running |- 1:0:0:1 sdn 8:208 active ready running |- 2:0:3:1 sdk 8:160 active ready running `- 2:0:0:1 sdb 8:16 active ready running mpath0 (360a98000572d505a6834737741457870) dm-2 NETAPP,LUN size=200G features='3 queue_if_no_path pg_init_retrIEs 50' hwhandler='0' wp=rw |-+- policy='round-robin 0' prio=4 status=active | |- 4:0:2:2 sdas 66:192 active ready running | |- 4:0:1:2 sdap 66:144 active ready running | |- 3:0:3:2 sdaj 66:48 active ready running | |- 3:0:1:2 sdad 65:208 active ready running | |- 1:0:3:2 sdx 65:112 active ready running | |- 1:0:1:2 sdr 65:16 active ready running | |- 2:0:2:2 sdi 8:128 active ready running | `- 2:0:1:2 sdf 8:80 active ready running `-+- policy='round-robin 0' prio=1 status=enabled |- 4:0:3:2 sdav 66:240 active ready running |- 4:0:0:2 sdam 66:96 active ready running |- 3:0:2:2 sdag 66:0 active ready running |- 3:0:0:2 sdaa 65:160 active ready running |- 1:0:2:2 sdu 65:64 active ready running |- 1:0:0:2 sdo 8:224 active ready running |- 2:0:3:2 sdl 8:176 active ready running `- 2:0:0:2 sdc 8:32 active ready running
dmsetup:
# dmsetup ls mpath2 (253,4) mpath1 (253,3) mpath0 (253,2) VolGroup00-LogVol01 (253,1) VolGroup00-LogVol00 (253,0)
我以前从来没有做过这样的事情所以请不要打扰我.我只是在寻找哪些问题要求存储管理员,以及找到正确的驱动器进行格式化和安装的命令.
解决方法 不要使用/ dev / sd *,因为它们只映射到单个路径.使用/ dev / mpath *设备(或由multipath -l的输出显示).
输出multipath -ll显示您要使用的磁盘是/ dev / mapper / mpath1
制作文件系统,格式化,分区或任何你喜欢的东西.只是不要使用/ dev / sd *设备.
看着你的输出,
mpath1 (360a98000572d505a6834737741434372) dm-3 NETAPP,LUNsize=3.0T features='3 queue_if_no_path pg_init_retrIEs 50' hwhandler='0' wp=rw|-+- policy='round-robin 0' prio=4 status=active| |- 4:0:2:1 sdar 66:176 active ready running| |- 4:0:1:1 sdao 66:128 active ready running| |- 3:0:3:1 sdai 66:32 active ready running| |- 3:0:1:1 sdac 65:192 active ready running| |- 1:0:3:1 sDW 65:96 active ready running| |- 1:0:1:1 sdq 65:0 active ready running| |- 2:0:2:1 sdh 8:112 active ready running| `- 2:0:1:1 sde 8:64 active ready running`-+- policy='round-robin 0' prio=1 status=enabled |- 4:0:3:1 sdau 66:224 active ready running |- 4:0:0:1 sdal 66:80 active ready running |- 3:0:2:1 sdaf 65:240 active ready running |- 3:0:0:1 sdz 65:144 active ready running |- 1:0:2:1 sdt 65:48 active ready running |- 1:0:0:1 sdn 8:208 active ready running |- 2:0:3:1 sdk 8:160 active ready running `- 2:0:0:1 sdb 8:16 active ready running
组成mpath1的设备代表到同一磁盘的单个路径(multipathd通过查看WWID等来计算出来).这意味着输出中的所有sd *磁盘指向同一设备,但使用不同的路径来到达它.这是为了冗余和有时是性能的原因.
总结以上是内存溢出为你收集整理的redhat – 从SAN安装磁盘(RHEL 5.9)全部内容,希望文章能够帮你解决redhat – 从SAN安装磁盘(RHEL 5.9)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)