iscsi 能esxi挂载iscsi存储nbd 模块吗

博客访问: 4138515
博文数量: 501
注册时间:
认证徽章:
Oracle数据库管理员,Oracle数据库系统构架员;2012年7月出版《构建最高可用Oracle数据库系统:Oracle 11gR2 RAC管理、维护与性能优化》一书;Oracle 10g OCM。
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Linux
1.环境描述。
1).操作系统版本:
# oslevel -s
2).iSCSI设备:
openfiler x86_64bit 2.3
2.确保AIX服务器与iSCSI存储服务器能够正常的通信。
3.查看AIX服务器相应的iSCSI包。
& & & & IBM从5200-03开始,在操作系统基本包中包含了iscsi的驱动程序:
# lslpp -L | grep -i iscsi
& mon.IBM.iscsi.rte
& & & & & & & & & & & & & & &6.1.1.0 & &C & & F & &Common iSCSI Files
& devices.iscsi.disk.rte & & 6.1.0.0 & &C & & F & &iSCSI Disk Software
& devices.iscsi.tape.rte & & 6.1.0.0 & &C & & F & &iSCSI Tape Software
& devices.iscsi_sw.rte & & & 6.1.1.0 & &C & & F & &iSCSI Software Device Driver
& devices.pci..diag &6.1.0.0 & &C & & F & &IBM 1 Gigabit-TX iSCSI TOE
& devices.pci..rte & 6.1.0.0 & &C & & F & &IBM 1 Gigabit-TX iSCSI TOE
& devices.pci.1410cf02.diag &6.1.0.0 & &C & & F & &1000 Base-SX PCI-X iSCSI TOE
& devices.pci.1410cf02.rte & 6.1.0.0 & &C & & F & &1000 Base-SX PCI-X iSCSI TOE
& devices. & 6.1.1.0 & &C & & F & &Common PCI iSCSI TOE Adapter
& devices.pci..diag &6.1.1.0 & &C & & F & &1000 Base-TX PCI-X iSCSI TOE
& devices.pci..rte & 6.1.0.0 & &C & & F & &1000 Base-TX PCI-X iSCSI TOE
& devices.pci..diag &6.1.0.0 & &C & & F & &IBM 1 Gigabit-SX iSCSI TOE
& devices.pci..rte & 6.1.0.0 & &C & & F & &IBM 1 Gigabit-SX iSCSI TOE
& devices.pci.77102e01.diag &6.1.0.0 & &C & & F & &1000 Base-TX PCI-X iSCSI TOE
& devices.pci.77102e01.rte & 6.1.0.0 & &C & & F & &PCI-X 1000 Base-TX iSCSI TOE
4.编辑客户端target配置文件。
# vi /etc/iscsi/targets
10.0.0.159 3260 iqn..openfiler:tsn.a0712cbb9ca7
格式为:ip port target_iqn
& & & & ip为iSCSI服务器地址,端口是Openfiler默认的3260端口,target_iqn是创建的iqn的名称。
5.扫描iSCSI设备:
# cfgmgr -v -l iscsi0
----------------
attempting to configure device 'iscsi0'
Time: 0 LEDS: 0x25b0
invoking /usr/lib/methods/cfgiscsi -l iscsi0
Number of running methods: 1
----------------
Completed method for: iscsi0, Elapsed time = 1
return code = 0
****************** stdout ***********
****************** no stderr ***********
----------------
Time: 1 LEDS: 0x539
Number of running methods: 0
----------------
attempting to configure device 'hdisk2'
Time: 1 LEDS: 0x25f3
invoking /usr/lib/methods/cfgscsidisk -l hdisk2
Number of running methods: 1
----------------
Completed method for: hdisk2, Elapsed time = 4
return code = 0
****************** no stdout ***********
****************** no stderr ***********
----------------
Time: 5 LEDS: 0x539
Number of running methods: 0
----------------
calling savebase
return code = 0
****************** no stdout ***********
****************** no stderr ***********
Configuration time: 5 seconds
6.查看设备:
hdisk0 & & & & &00cc1ad4ef095bf0 & & & & & & & & & &rootvg & & & & &active
hdisk1 & & & & &00cc1ad46aff307f & & & & & & & & & &rootvg & & & & &active
hdisk2 & & & & &none & & & & & & & & & & & & & & & &None
7.查看hdisk2属性:
# lsattr -El hdisk2
clr_q & & & & no & & & & & & & & & & & & & & & & & & & & Device CLEARS its Queue on error True
host_addr & & 10.0.0.159 & & & & & & & & & & & & & & & & Hostname or IP Address & & & & & False
location & & & & & & & & & & & & & & & & & & & & & & & & Location Label & & & & & & & & & True
lun_id & & & &0x0 & & & & & & & & & & & & & & & & & & & &Logical Unit Number ID & & & & & False
max_transfer &0x40000 & & & & & & & & & & & & & & & & & &Maximum TRANSFER Size & & & & & &True
port_num & & &0xcbc & & & & & & & & & & & & & & & & & & &PORT Number & & & & & & & & & & &False
pvid & & & & &none & & & & & & & & & & & & & & & & & & & Physical volume identifier & & & False
q_err & & & & yes & & & & & & & & & & & & & & & & & & & &Use QERR bit & & & & & & & & & & True
q_type & & & &simple & & & & & & & & & & & & & & & & & & Queuing TYPE & & & & & & & & & & True
queue_depth & 1 & & & & & & & & & & & & & & & & & & & & &Queue DEPTH & & & & & & & & & & &True
reassign_to & 120 & & & & & & & & & & & & & & & & & & & &REASSIGN time out value & & & & &True
rw_timeout & &30 & & & & & & & & & & & & & & & & & & & & READ/WRITE time out value & & & &True
start_timeout 60 & & & & & & & & & & & & & & & & & & & & START unit time out value & & & &True
target_name & iqn..openfiler:tsn.a0712cbb9ca7 Target NAME & & & & & & & & & & &False
& & & & &从上面的结果可以看出,挂载的iSCSI磁盘设备没有reserve_lock和reserve_policy属性,应该可以直接当成共享磁盘使用。
阅读(6007) | 评论(0) | 转发(2) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。Linux挂载iscsi存储磁盘设备
1,check网络
[root@localhost ~]# ping -I eth0 11.110.10.138
PING 11.110.10.138 (11.110.10.138) from 11.110.10.138eth0: 56(84) bytes of data.
64 bytes from 11.110.10.138: icmp_seq=1ttl=64 time=0.023 ms
64 bytes from 11.110.10.138: icmp_seq=2ttl=64 time=0.016 ms
64 bytes from 11.110.10.138: icmp_seq=3ttl=64 time=0.018 ms
--- 11.110.10.138 ping statistics ---
3 packets transmitted, 3 received, 0%packet loss, time 2186ms
rtt min/avg/max/mdev =0.016/0.019/0.023/0.003 ms
[root@localhost ~]#
[root@localhost ~]# ping -I eth.138
PING 192.168.180.138 (192.168.180.138) from11.110.10.138 eth0: 56(84) bytes of data.
From 11.110.10.138 icmp_seq=2 DestinationHost Unreachable
From 11.110.10.138 icmp_seq=3 DestinationHost Unreachable
From 11.110.10.138 icmp_seq=4 DestinationHost Unreachable
--- 192.168.180.138 ping statistics ---
4 packets transmitted, 0 received, +3errors, 100% packet loss, time 3729ms
[root@localhost ~]#
2,检测软件是否已经安装
[root@localhost ~]# rpm -qa |grep iscsi
iscsi-initiator-utils-6.2.0.873-2.0.2.el6.x86_64
[root@localhost ~]#
&版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!&
原博客地址: http://blog.csdn.net/mchdba/article/details/
原作者:黄杉 (mchdba)
3,检查ISCSI服务是否启动了和当前级别下的运行情况
[root@localhost ~]# service iscsi status
4,要建立2个文件
[root@localhost ~]# iscsiadm -m iface -Iiscsi_eth0 --op=new
New interface iscsi_eth0 added
[root@localhost ~]# iscsiadm -m iface -Iiscsi_eth1 --op=new
New interface iscsi_eth1 added
[root@localhost ~]#
5.建立iscsi_eth0和eht0的映射关系。同时建立iscsi_eth1和eth1的映射关系.
也可以直接编辑iscsi_eth0和iscsi_eth1文件,把里面的iface.net_ifacename=default改成
iface.net_ifacename=eth0和iface.net_ifacename=eth1即可。
[root@localhost ~]# ls/var/lib/iscsi/ifaces/
iscsi_eth0 iscsi_eth1 iscsi_the0 iscsi_the1
[root@localhost ~]# cd/var/lib/iscsi/ifaces/
[root@localhost ifaces]# ll
-rw------- 1 root root 197 6月 10 16:05 iscsi_eth0
-rw------- 1 root root 197 6月 10 16:06 iscsi_eth1
-rw------- 1 root root 197 4月 3 19:14 iscsi_the0
-rw------- 1 root root 197 4月 3 19:14 iscsi_the1
[root@localhost ifaces]# cat iscsi_eth0
# BEGIN RECORD 6.2.0-873.2.el6
iface.iscsi_ifacename = iscsi_eth0
iface.transport_name = tcp
iface.vlan_id = 0
iface.vlan_priority = 0
iface.iface_num = 0
iface.mtu = 0
iface.port = 0
# END RECORD
[root@localhost ifaces]#
[root@localhost ifaces]# iscsiadm -m iface-I iscsi_eth0 --op=update -n iface.net_ifacename -v eth0
iscsi_eth0 updated.
[root@localhost ifaces]# iscsiadm -m iface-I iscsi_eth0 --op=update -n iface.net_ifacename -v eth0
iscsi_eth0 updated.
[root@localhost ifaces]#
6,重启iscsi服务
[root@localhost ifaces]# service iscsi restart
停止 iscsi: [确定]
正在启动 iscsi: [确定]
[root@localhost ifaces]#
Equallogic配置部分
7.配置Equallogic,映射一个Lun名字为redhat,大小3G的空间
在存储访问网站上,去分配新的磁盘块,这个比较简单,就不截图了,存储设备都会自带一个网址让我们访问的。
Redhat配置部分
8.做discover,可以发现已经看到了redhat的lun。因为有两条路径,所有显示了两行。
[root@localhost ifaces]# iscsiadm -mdiscovery -t sendtargets -p 11.110.10.138:3260
iscsiadm: cannot make connection to 11.110.10.138:Connection refused
iscsiadm: cannot make connection to 11.110.10.138:Connection refused
iscsiadm: cannot make connection to 11.110.10.138:Connection refused
iscsiadm: cannot make connection to 11.110.10.138:Connection refused
^Ciscsiadm: caught SIGINT, exiting...
[root@localhost ifaces]#
ip地址是存储的ip地址
[root@localhost ifaces]# iscsiadm -mdiscovery -t sendtargets -p 11.110.10.22 :3260
iscsiadm: This command will remove therecord [iface: default, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260],but a session is using it. Logout session then rerun command to remove record.
iscsiadm: This command will remove therecord [iface: default, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260], but a session is using it. Logout session then reruncommand to remove record.
11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
11.110.10.22:3260,1 iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
11.110.10.22:3260,1 iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
[root@localhost ifaces]#
9.Log on所有的iscsi session,可以看到最后两个successful的redhat lun,已经log on成功了。
[root@localhost ifaces]# iscsiadm -m node-l
Logging in to [iface: iscsi_eth1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)
Logging in to [iface: iscsi_eth0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)
Logging in to [iface: iscsi_the1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)
Logging in to [iface: iscsi_the0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260](multiple)
Logging in to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)
Logging in to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] (multiple)
Login to [iface: iscsi_eth1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.
Login to [iface: iscsi_eth0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.
Login to [iface: iscsi_the1, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.
Login to [iface: iscsi_the0, target:iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata, portal: 11.110.10.22,3260]successful.
Login to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_eth1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_eth0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_the1, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.
Login to [iface: iscsi_the0, target:iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3, portal:11.110.10.22,3260] successful.
[root@localhost ifaces]#
10:输入iscsiadm -m session可以看到当前正在连接的session.
[root@localhost ifaces]# iscsiadm -msession
tcp: [10] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
tcp: [11] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
tcp: [12] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
tcp: [13] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
tcp: [14] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
tcp: [15] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
tcp: [16] 11.110.10.22:3260,1iqn..equallogic:0-8af09-cf5248cfafa5577e-pddata3
tcp: [3] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
tcp: [4] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
tcp: [5] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
tcp: [6] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
tcp: [7] 11.110.10.22:3260,1 iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
tcp: [8] 11.110.10.22:3260,1iqn..equallogic:0-8a0906-6dac3cac2d434efec-pddata
tcp: [9] 11.110.10.22:3260,1iqn..equallogic:0-8af09-29d248cfaed54b9d-pddata2
[root@localhost ifaces]#
11.因为有多条路径,所有我们需要配置MPIO,查看当前是否安装了MPIO软件。通过查看已经安装了。
[root@localhost ifaces]# rpm -qadevice-mapper
device-mapper-1.02.77-9.el6.x86_64
[root@localhost ifaces]#
[root@localhost ifaces]# chkconfig --listmultipathd
在 multipathd 服务中读取信息时出错:没有那个文件或目录
[root@localhost ifaces]#
12通过查看,MPIO服务在当前级别下没有开,我们启用它。
[root@localhost ifaces]# chkconfig --listmultipathd
multipathd 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@localhost ifaces]#
[root@localhost ifaces]# chkconfigmultipathd on
[root@localhost ifaces]#
[root@localhost ifaces]#
[root@localhost ifaces]# chkconfig --listmultipathd
multipathd 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭
[root@localhost ifaces]#
14.我们需要找到/etc/multipath.conf文件中的如下3行,把前面加上#把他们注释掉。
# Blacklist all devices by default. Removethis to enable multipathing
# on the default devices.
blacklist {
devnode &*&
15.重启multipathd服务,通过查看,可以看到我们做的那个3G的LUN信息了。
[root@localhost ifaces]# service multipathd restart
正在关闭multipathd 端口监控程序: [失败]
正在启动守护进程multipathd:/sbin/multipathd: error while loading shared libraries:libsysfs.so.2: cannot open shared object file: No such file or directory
[root@localhost ifaces]#
在/etc/ld.so.conf中加一行/usr/local/lib,.然后运行/sbin/ldconfig,文件解决,
[root@localhost ifaces]# find / -namelibsysfs.so.2
[root@localhost ifaces]#
没有此文件,所以yum安装下
[root@localhost ifaces]# yum install -ylibsysfs*
[root@localhost ifaces]# service multipathd restart
正在关闭multipathd 端口监控程序: [失败]
正在启动守护进程multipathd:/sbin/multipathd: error while loading shared libraries:libreadline.so.5: cannot open shared object file: No such file or directory
[root@localhost ifaces]#
需要安装 readline-5.2.tar.gz,地址为:/s/1jGnFN3S
tar-xvf readline-5.2.tar.gz
cdreadline-5.2
./configure
makeinstall
[root@localhost ifaces]# yum install -ylibreadline*
去/etc/ld.so.conf添加进lib目录即可
[root@localhost readline-5.2]# cp/etc/ld.so.conf /etc/ld.so.conf.backup
[root@localhost readline-5.2]# vim/etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
[root@localhost readline-5.2]# ldconfig
[root@localhost readline-5.2]#
[root@localhost readline-5.2]#
[root@localhost readline-5.2]# servicemultipathd restart
正在关闭multipathd 端口监控程序: [失败]
正在启动守护进程multipathd: [确定]
[root@localhost readline-5.2]#
[root@localhost readline-5.2]# multipathd-ll
[root@localhost readline-5.2]#
?why?这里没有别的信息呢?为什么没有显示出新分配的那个磁盘的信息呢?
16.继续编辑/etc/multipath.conf,我们给这个3G的LUN起个可以自己命名的名字。
通过multipath &ll,我们可以得到这个3G LUN的WWID: 360c090c2f903ac4a89c2e
把如图前面的#去掉,同时把wwid改成360c090c2f903ac4a89c2e。Alias改成 pddata3.
multipaths {
multipath {
alias pddata3
path_grouping_policy multibus
path_checker readsector0
path_selector &round-robin 0&
failback manual
rr_weight priorities
no_path_retry 5
17.重启multipathd服务,可以看到我们命名的pddata3出来了。
service multipathd restart
why ? 没有看到pddata3
19.格式化 pddata3
[root@localhost readline-5.2]# ls /dev/sdp
[root@localhost readline-5.2]#
ext3太土鳖了,所以采用xfs文件格式
[root@localhost readline-5.2]# yum install-y xfsprogs
[root@localhost readline-5.2]# sudo fdisk/dev/sdp
Device contains neither a valid DOSpartition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with diskidentifier 0xd45833b8.
Changes will remain in memory only, untilyou decide to write them.
After that, of course, the previous contentwon't be recoverable.
Warning: invalid flag 0x0000 of partitiontable 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated.It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibilityflag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOSpartition table
p print the partition table
q quit without saving changes
s create a new empty Sundisklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (expertsonly)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-104434, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G}(1-104434, default 104434):
Using default value 104434
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@localhost readline-5.2]#
接下来,格式化分区为XFS,使用mkfs.xfs命令。如果已有其他文件创建在此分区,必须加上&-f&参数来覆盖它。
[root@localhost readline-5.2]# sudo mkfs.xfs-f /dev/sdp1
meta-data=/dev/sdp1 isize=256 agcount=4, agsize= blks
= sectsz=512 attr=2, projid32bit=1
data = bsize=4096 blocks=,imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=102400,version=2
= sectsz=512 sunit=0 blks,lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
[root@localhost readline-5.2]#
18,建立新目录/pddata3,以此挂载新的磁盘
至此你已经准备好格式化后分区来挂载。假设/pddata3 是XFS本地挂载点。使用下述命令挂载:
sudomount -t xfs /dev/sdp1 /pddata3
[root@localhost readline-5.2]# mkdir/pddata3
[root@localhost readline-5.2]# sudo mount -t xfs /dev/sdp1 /pddata2
[root@localhost readline-5.2]#
[root@localhost readline-5.2]# df -h
文件系统 容量 已用 可用 已用%% 挂载点
/dev/mapper/VolGroup-lv_root
50G 33G 15G 70% /
tmpfs 8.9G 3.3G 5.7G 37% /dev/shm
/dev/sda2 485M 76M 384M 17% /boot
/dev/sda1 200M 260K 200M 1% /boot/efi
/dev/mapper/VolGroup-lv_home
76G 50G 22G 70% /home
/dev/sdc G 578G 40% /data
/dev/sdp1 800G 33M 800G 1% /pddata2
[root@localhost readline-5.2]#
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'

我要回帖

更多关于 linux挂载iscsi存储 的文章

 

随机推荐