文章
服务器与存储管理
作者:Andrew Ness
2011 年 10 月
如果您的服务器即将用光内部存储容量,您可以从 Oracle Sun ZFS 存储设备上的弹性存储池中迅速分配合适容量的存储。本文描述如何在 Oracle Linux 环境中使用 Sun ZFS 存储设备 iSCSI LUN。Oracle Linux 附带了一个 iSCSI 发起方软件包,该软件包经过配置可将 Sun ZFS 存储设备提供的 iSCSI LUN 集成到 Oracle Linux 环境中。
本文首先讲述如何在 Oracle Linux 服务器上安装 Oracle Linux iSCSI 发起方。然后讲述如何在 Sun ZFS 存储设备上配置 iSCSI LUN 以便 Oracle Linux 服务器可以通过 iSCSI 协议来访问该 LUN。本文分别提供通过存储设备的浏览器用户界面 (BUI) 和存储设备的命令行界面 (CLI) 配置 LUN 的过程。最后,本文讲述如何准备 LUN 以供 Oracle Linux 服务器使用。
本文中所有过程假定:
root 帐户口令。root 帐户口令。默认情况下,未安装 Oracle Linux iSCSI 发起方软件包,因此必须手动安装。可以使用以下方法之一来安装该软件包:
root 用户身份使用 yum(8) 命令执行基于文本的安装,如清单 1 所示。[root@oel ~]# yum install iscsi-initiator-utils Loaded plugins: refresh-packagekit Setting up Install Process Resolving Dependencies --> Running transaction check --> Package iscsi-initiator-utils.x86_64 0:6.2.0.872-21.0.1.el6 will be --> installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================= Package Arch Version Repository Size ======================================================================= Installing: iscsi-initiator-utils x86_64 6.2.0.872-21.0.1.el6 ol6_u1_base 578 k Transaction Summary ======================================================================= Install 1 Package(s) Total download size: 578 k Installed size: 2.0 M Is this ok [y/N]: y Downloading Packages: iscsi-initiator-utils-6.2.0.872-21.0.1.el6.x86_64.rpm | 578 kB 00:03 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : iscsi-initiator-utils-6.2.0.872-21.0.1.el6.x86_64 1/1 Installed: iscsi-initiator-utils.x86_64 0:6.2.0.872-21.0.1.el6 Complete! [root@oel ~]#
安装 iSCSI 发起方之后,执行以下步骤,配置该软件包在系统重启时启动:
[root@oel ~]# chkconfig --list iscsi iscsi 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@oel ~]# chkconfig --list iscsid iscsid 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@oel ~]#
本例说明 iscsi 和 iscsid 服务在所有运行级别均设置为 off,因此 iSCSI 发起方不会在系统重启时启动。
iscsi 或 iscsid 服务的运行级别 3、4 和 5 设置未设置为 on,则启用它们,如下所示: [root@oel ~]# chkconfig iscsi on [root@oel ~]# chkconfig iscsid on [root@oel ~]# chkconfig --list iscsi iscsi 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@oel ~]# chkconfig --list iscsid iscsid 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@oel ~]# service iscsi start [root@oel ~]# service iscsid start
现在,iscsi 和 iscsid 服务已设置为在系统重启时启动。
主机的 iSCSI 限定名称 (IQN) 用于向 Sun ZFS 存储设备标识该主机。该 IQN 是在安装 iSCSI 发起方软件包时自动生成的,保存在 /etc/iscsi 下的一个文件中。要获得主机 IQN,输入以下命令:
[root@oel ~]# cat /etc/iscsi/initiatorname.iscsi InitiatorName=iqn.1988-12.com.oracle:5fa4af61c4a0
本例中使用的主机 IQN 为 iqn.1988-12.com.oracle:5fa4af61c4a0。
以下示例使用 CHAP 对主机和 Sun ZFS 存储设备之间的通信进行身份验证。该例使用 IQN 作为 iSCSI 发起方的 CHAP 名称,并使用一个安全口令作为 CHAP 密钥。
为了配置 CHAP 身份验证,我们编辑 /etc/iscsi/iscsid.conf 文件,进行以下更改:
# 字符以激活 CHAP 身份验证: node.session.auth.authmethod = CHAP
# 字符: node.session.auth.username = username node.session.auth.password = password
username 更改为主机 IQN,例如: iqn.1988-12.com.oracle:5fa4af61c4a0
password 更改为一个比较安全的口令以用于身份验证。本例中使用 CHAPsecret11 作为口令。 这些代码行现在如下所示:
node.session.auth.username = iqn.1988-12.com.oracle:5fa4af61c4a0 node.session.auth.password = CHAPsecret11
# 字符: node.session.auth.username_in = username node.session.auth.password_in = password
node.session.auth.username_in = chapuser node.session.auth.password_in = CHAPsecret22
由于此用户名和口令用于所有目标,这些目标可能包括不止一个 Sun ZFS 存储设备或其他供应商的设备,因而该用户名应该是一个通用名称,不应与某个特定 IQN 相关。对于本例,存储管理员提供了 chapuser 作为用户名。CHAP 密钥是比较安全的口令 CHAPsecret22。
接下来,必须对 Sun ZFS 存储设备进行配置,使其能够识别 Oracle Linux 主机并向其提供 iSCSI LUN。
作为一个统一的存储平台,Sun ZFS 存储设备既支持通过 iSCSI 协议访问数据块协议 LUN,又支持通过光纤通道协议进行同样的访问。本节讲述如何使用 Sun ZFS 存储设备 BUI 来配置该设备,以便该设备能够识别 Oracle Linux 主机并向该主机提供 iSCSI LUN。
执行以下步骤打开 Sun ZFS 存储设备 BUI:
https://<appliance IP address or host name>:215
随即显示图 1 所示的登录对话框。

图 1. Sun ZFS 存储设备登录
在 Sun ZFS 存储设备上创建目标组,以便定义 Oracle Linux 服务器可通过哪个端口和协议访问提供给它的 LUN。本例中创建了一个 iSCSI 目标组,该组包含 LUN 作为一个 iSCSI 目标,Sun ZFS 存储设备使用默认 IQN 来标识该 LUN,并通过默认的设备接口来提供它。由于存储设备和主机之间将使用 CHAP 来进行身份验证,在本例中还设定了各种 CHAP 参数。
执行以下步骤在 Sun ZFS 存储设备上定义 iSCSI 目标组:

图 2. iSCSI 目标配置
chapuser 和 CHAPsecret22。
图 3. New iSCSI Target 对话框

图 4. 选择 iSCSI 目标条目

图 5. 创建 iSCSI 目标组
targets-n,其中 n 是一个整数,如图 6 所示。
图 6. 选择新目标组以进行编辑
iscsi-TG 作为该目标组名称。
图 7. 重命名 iSCSI 目标组

图 8. 查看新的 iSCSI 目标组
定义 iSCSI 发起方的目的是为了限定哪些服务器有权访问特定卷。如果不止一台主机可以同时写入一个指定卷,则主机之间的文件系统缓存不一致性可能导致磁盘上的映像损坏。一般对于一个卷,只会赋予一个发起方对该卷的访问权限,除非使用的是一种特殊的集群文件系统。
iSCSI 发起方是从 Sun ZFS 存储设备的角度出发来定义“主机”。为了向 Sun ZFS 存储设备标识 Oracle Linux 服务器,必须在存储设备中注册 Oracle Linux iSCSI 发起方 IQN,为此要执行以下步骤:

图 9. 选择 iSCSI Initiators 面板

图 10. 配置新的 iSCSI 发起方
一些相关 iSCSI 发起方可以组成逻辑组,这样同一个命令可以对多个 iSCSI 发起方执行,例如,可以使用一个命令来对一个组中的所有 iSCSI 发起方分配 LUN 访问权限。对于本例,iSCSI 发起方组包含一个发起方。但是在集群中,多个服务器用作一个逻辑实体,发起方组可以包含多个发起方。
执行以下步骤创建一个 iSCSI 发起方组:

图 11. 显示新的 iSCSI 发起方的 Move 图标

图 12. 创建 iSCSI 发起方组
initiators-n,其中 n 是一个整数,如图 13 所示。
图 13. 选择 iSCSI 发起方组
linux-servers 作为该发起方组名称。
图 14. 重命名 iSCSI 发起方组

图 15. iSCSI 发起方配置完成
可以在 Sun ZFS 存储设备中定义一个项目来将相关卷归为一组。通过使用项目,可以继承项目所提供文件系统和 LUN 的属性,还可以应用限额和保留。
执行以下步骤创建一个项目:

图 16. 查看项目

图 17. Create Project 对话框

图 18. 显示新的 linux-project 项目
现在必须从一个现有存储资源池中创建一个 LUN,以供 Oracle Linux 服务器访问使用。本例将创建一个名为 DocArchive1 的精简供应 64 GB LUN。将配置该 LUN 以容纳一个 EXT3 文件系统。
我们将使用定义 iSCSI 目标组一节中创建的 iSCSI 目标组来确保可以通过 iSCSI 协议来访问该 LUN。还将使用定义 iSCSI 发起方组一节中定义的发起方组来确保只有在 linux-servers 组中定义的服务器才可以访问此 LUN(在本例中,该发起方组只包含一个服务器)。
执行以下步骤创建一个 LUN:

图 19. 查看 linux-project 项目中的 LUN
DocArchive1,Volume size 域设置为 64 GB,并且选中 Thin-provisioned 复选框。将 Target Group 设置为 iSCSI 目标组 iscsi-TG,Initiator Group 设置为 linux-servers。将 Volume block size 设置为 32K,因为该 LUN 将容纳一个 EXT3 文件系统。
图 20. Create LUN 对话框
作为一个统一的存储平台,Sun ZFS 存储设备既支持通过 iSCSI 协议访问数据块协议 LUN,又支持通过光纤通道协议进行同样的访问。这一节讲述如何使用 Sun ZFS 存储设备 CLI 来配置 Sun ZFS 存储设备,使其能够识别 Oracle Linux 主机并向该主机提供 iSCSI LUN。
为了访问该 CLI,必须使用一个支持 SSH 的终端会话。在装有 SSH 客户端的主机上输入以下命令:
user@host> ssh root@<appliance IP address or host name> login as: root Using keyboard-interactive authentication. Password: XXXXX Last login: Mon Jul XX XX:XX:XX XXXX from Linux zfssa:>
以下过程在 CLI 中按照类似于 BUI 中的模式进行,各命令中所使用的路径一般对应于 BUI 中通过选项卡和屏幕指定的路径。
在清单 2 的示例中,在 Sun ZFS 存储设备上创建了一个目标组,以便定义 Oracle Linux 服务器可通过哪个端口和协议来访问提供给它的 LUN。本例中创建了一个 iSCSI 目标组,该组包含 LUN 作为一个 iSCSI 目标,Sun ZFS 存储设备使用默认 IQN 来标识该 LUN,并通过默认的设备接口来提供它。
由于存储设备和主机之间将使用 CHAP 来进行身份验证,在本例中还设定了各种 CHAP 参数。
清单 2:定义 iSCSI 目标组
zfssa:>
configuration san targets
zfssa:configuration san targets>
iscsi
zfssa:configuration san targets iscsi>
create
zfssa:configuration san targets iscsi target (uncommitted)>
set alias=iscsi-Target alias = iscsi-Target (uncommitted)
zfssa:configuration san targets iscsi target (uncommitted)>
commit
zfssa:configuration san targets iscsi>
list
TARGET ALIAS
target-000 iscsi-Target
|
+-> IQN
iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
zfssa:configuration san targets iscsi>
select target-000
zfssa:configuration san targets iscsi target-000>
list
Properties:
alias = iscsi-Target
iqn = iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
auth = none
targetchapuser = (unset)
targetchapsecret = (unset)
interfaces = nge0
zfssa:configuration san targets iscsi target-000>
set targetchapuser=chapuser
targetchapuser =
iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
(uncommitted)
zfssa:configuration san targets iscsi target-000>
set targetchapsecret=CHAPsecret22
targetchapsecret = ************ (uncommitted)
zfssa:configuration san targets iscsi target-000>
commit
zfssa:configuration san targets iscsi target-000>
list
Properties:
alias =
iqn =
auth =
targetchapuser = \
iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
targetchapsecret = ************
interfaces =
zfssa:configuration san targets iscsi target-000>
cd ..
zfssa:configuration san targets iscsi>
list
TARGET ALIAS
target-000 iscsi-Target
|
+-> IQN
iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
zfssa:configuration san targets iscsi>
group
zfssa:configuration san targets iscsi groups>
create
zfssa:configuration san targets iscsi group (uncommitted)>
set name=iscsi-TG name = iscsi-TG (uncommitted)
zfssa:configuration san targets iscsi group (uncommitted)>
set targets=iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
targets = iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881 (uncommitted)
zfssa:configuration san targets iscsi group (uncommitted)>
commit
zfssa:configuration san targets iscsi groups>
list
GROUP NAME
group-000 iscsi-TG
|
+-> TARGETS
iqn.1986-03.com.sun:02:e8589be5-144d-c9b2-89d4-f7fe4e887881
zfssa:configuration san targets iscsi groups>
cd /
zfssa:>
定义 iSCSI 发起方的目的是为了限定哪些服务器有权访问特定卷。如果不止一台主机可以同时写入一个指定卷,则主机之间的文件系统缓存不一致性可能导致磁盘上的映像损坏。一般对于一个卷,只会赋予一个发起方对该卷的访问权限,除非使用的是一种特殊的集群文件系统。
iSCSI 发起方是从 Sun ZFS 存储设备的角度出发来定义“主机”。为了向 Sun ZFS 存储设备标识 Oracle Linux 服务器,必须在存储设备中注册 Oracle Linux iSCSI IQN,如清单 3 中示例所示:
清单 3:定义 iSCSI 发起方
zfssa:>
configuration san initiators
zfssa:configuration san initiators>
iscsi
zfssa:configuration san initiators iscsi>
ls
Children:
groups => Manage groups
zfssa:configuration san initiators iscsi>
create
zfssa:configuration san initiators iscsi initiator (uncommitted)>
set alias=OEL alias = OEL (uncommitted)
zfssa:configuration san initiators iscsi initiator (uncommitted)>
set initiator= iqn.1988-12.com.oracle:5fa4af61c4a0 initiator = iqn.1988-12.com.oracle:5fa4af61c4a0 (uncommitted)
zfssa:configuration san initiators iscsi initiator (uncommitted)>
set chapuser= iqn.1988-12.com.oracle:5fa4af61c4a0 chapuser = iqn.1988-12.com.oracle:5fa4af61c4a0 (uncommitted)
zfssa:configuration san initiators iscsi initiator (uncommitted)>
set chapsecret=CHAPsecret11 chapsecret = ************ (uncommitted)
zfssa:configuration san initiators iscsi initiator (uncommitted)>
commit
zfssa:configuration san initiators iscsi> ls
Initiators:
NAME ALIAS
initiator-000 Linux
|
+-> INITIATOR
iqn.1988-12.com.oracle:5fa4af61c4a0
Children:
groups => Manage groups
zfssa:configuration san initiators iscsi>
一些相关 iSCSI 发起方可以组成逻辑组,这样同一个命令可以对多个 iSCSI 发起方执行,例如,可以使用一个命令来对一个组中的所有 iSCSI 发起方分配 LUN 访问权限。在清单 4 的示例中,iSCSI 发起方组包含一个发起方。但是在集群中,多个服务器用作一个逻辑实体,发起方组可以包含多个发起方。
清单 4:定义 iSCSI 发起方组
zfssa:configuration san initiators iscsi>
groups
zfssa:configuration san initiators iscsi groups>
create
zfssa:configuration san initiators iscsi group (uncommitted)>
set name=linux-servers name = linux-servers (uncommitted)
zfssa:configuration san initiators iscsi group (uncommitted)>
set initiators= iqn.1988-12.com.oracle:5fa4af61c4a0 initiators = iqn.1988-12.com.oracle:5fa4af61c4a0 (uncommitted)
zfssa:configuration san initiators iscsi group (uncommitted)>
commit
zfssa:configuration san initiators iscsi groups>
ls
Groups:
GROUP NAME
group-000 linux-servers
|
+-> INITIATORS
iqn.1988-12.com.oracle:5fa4af61c4a0
zfssa:configuration san initiators iscsi groups>
cd /
zfssa:>
可以在 Sun ZFS 存储设备中定义一个项目来将相关卷归为一组。通过使用项目,可以继承项目所提供文件系统和 LUN 的属性,还可以应用限额和保留。
zfssa:> shares zfssa:shares> project linux-project zfssa:shares linux-project (uncommitted)> commit zfssa:shares> cd / zfssa:>
现在必须从一个现有存储资源池中创建一个 LUN,以供 Oracle Linux 服务器访问使用。在下面的示例中,将创建一个名为 DocArchive1 的精简供应 64 GB LUN。将配置该 LUN 以容纳一个 EXT3 文件系统。
我们将使用定义 iSCSI 目标组一节中创建的 iSCSI 目标组来确保可以通过 iSCSI 协议来访问该 LUN。还将使用定义 iSCSI 发起方组一节中定义的发起方组来确保只有在 linux-servers 组中定义的服务器才可以访问此 LUN(在清单 5 的示例中,该发起方组只包含一个服务器)。
清单 5:定义 Sun ZFS 存储设备 LUN
zfssa:shares>
select linux-project zfssa:shares linux-project>
lun DocArchive1 zfssa:shares linux-project/DocArchive1 (uncommitted)>
set volsize=64G volsize = 64G (uncommitted)
zfssa:shares linux-project/DocArchive1 (uncommitted)>
set targetgroup=iscsi-TG targetgroup = iscsi-TG (uncommitted)
zfssa:shares linux-project/DocArchive1 (uncommitted)>
set initiatorgroup=linux-servers initiatorgroup = linux-servers (uncommitted)
zfssa:shares linux-project/DocArchive1 (uncommitted)>
list
Properties:
checksum = fletcher4 (inherited)
compression = off (inherited)
dedup = false (inherited)
copies = 1 (inherited)
logbias = latency (inherited)
secondarycache = all (inherited)
volblocksize = 8K (default)
volsize = 64G (uncommitted)
sparse = false (default)
exported = true (inherited)
targetgroup = iscsi-TG (uncommitted)
initiatorgroup = linux-servers (uncommitted)
lunumber = (default)
assignednumber = (default)
status = (default)
fixednumber = (default)
lunguid = (default)
canonical_name = (default)
nodestroy = (default)
Children:
snapshots => Manage snapshots
replication => Manage remote replication
zfssa:shares linux-project/DocArchive1 (uncommitted)>
set volblocksize=32k volblocksize = 32K (uncommitted)
zfssa:shares linux-project/DocArchive1 (uncommitted)>
commit
zfssa:shares linux-project>
cd / zfssa:shares>
现在我们已准备好了该 LUN,通过身份验证的 iSCSI 发起方可以使用它了。我们接着执行以下步骤,配置该 LUN 以供 Oracle Linux 服务器使用:
[root@oel ~]# service iscsi start [root@oel ~]# iscsiadm -m discovery -t sendtargets -p zfssa 192.168.1.12:3260,2 iqn.1986-03.com.sun:02:4ec2b85a-9b5d-e02c-ee9c-bdd55452e7de [fe80::214:4fff:fe0f:92b4]:3260,2 iqn.1986-03.com.sun:02:4ec2b85a-9b5d-e02c-ee9c-bdd55452e7de [root@oel ~]# iscsiadm -m node -p zfssa -login [root@oel ~]# tail /var/log/messages Jul 13 14:35:37 oel kernel: scsi21 : iSCSI Initiator over TCP/IP Jul 13 14:35:37 oel iscsid: Could not set session19 priority. READ/WRITE throughout and latency could be affected. Jul 13 14:35:38 oel kernel: scsi 21:0:0:0: Direct-Access SUN Sun Storage NAS 1.0 PQ: 0 ANSI: 5 Jul 13 14:35:38 oel kernel: sd 21:0:0:0: Attached scsi generic sg2 type 0 Jul 13 14:35:38 oel kernel: sd 21:0:0:0: [sdb] 134217728 512-byte logical blocks: (68.7 GB/64.0 GiB) Jul 13 14:35:38 oel kernel: sd 21:0:0:0: [sdb] Write Protect is off Jul 13 14:35:38 oel kernel: sd 21:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jul 13 14:35:38 oel kernel: sdb: unknown partition table Jul 13 14:35:39 oel kernel: sd 21:0:0:0: [sdb] Attached SCSI disk Jul 13 14:35:39 oel iscsid: Connection19:0 to [target: iqn.1986-03.com.sun:02:4ec2b85a-9b5d- e02c-ee9c-bdd55452e7de, portal: 192.168.1.12,3260] through [iface: default] is operational now [root@oel ~]# ls -l /dev/sd? brw-rw----. 1 root disk 8, 0 Jul 13 13:06 /dev/sda brw-rw----. 1 root disk 8, 16 Jul 13 14:35 /dev/sdb
fdisk(8) 命令创建一个 Oracle Linux 分区表,如清单 7 所示。
root@oel:~# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xda0cb962.
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)
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): p
Disk /dev/sdb: 68.7 GB, 68719476736 bytes
255 heads, 63 sectors/track, 8354 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xda0cb962
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-8354, default 1): 1
Last cylinder, +cylinders or +size{K,M,G} (1-8354, default 8354): 8354
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
此设备现在就像一个内部服务器磁盘一样可供选择。下面是两个磁盘部署示例:
[root@oel ~]# mkfs.ext3 -L DocArchive1 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=DocArchive1
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
4194304 inodes, 16775868 blocks
838793 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
512 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
2654208, 4096000, 7962624, 11239424
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@oel ~]# vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed Jul 13 09:19:08 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_oel-lv_root / ext4 defaults 1 1
UUID=043800a8-30b9-4ba8-9ce2-0c114273d71b /boot ext4 defaults 1 2
/dev/mapper/vg_oel-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=DocArchive1 /docarchive1 ext3 defaults 2 2
[root@oel ~]# mkdir /docarchive1
[root@oel ~]# mount /docarchive1
[root@oel ~]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_oel-lv_root
29745220 3067908 25166300 11% /
tmpfs 704376 420 703956 1% /dev/shm
/dev/sda1 495844 70382 399862 15% /boot
/dev/sdb1 66050540 184268 62511100 1% /docarchive1
[root@oel ~]#
df(1) 命令的最后两行输出表明,现在大约有 64 GB 新空间可供使用。
本文介绍了如何配置随 Oracle Linux 提供的 iSCSI 发起方软件包以便 Oracle Linux 服务器可以访问 Oracle Sun ZFS 存储设备提供的 iSCSI LUN。
| 修订版 1.0,2011 年 10 月 12 日 |