bes配置oracle数据源,安装 ZFS 根文件系统(Oracle Solaris 初始安装)

插入 Oracle Solaris 安装介质或从安装服务器引导系统,然后选择交互式文本安装方法创建可引导的 ZFS 根文件系统。

SPARC:对于 Oracle Solaris 安装 DVD,请使用以下语法:ok boot cdrom - text

SPARC:从网络引导时,请使用以下语法:ok boot net - text

x86:选择文本模式安装方法。

您还可以使用以下方法创建要安装的 ZFS Flash 归档文件:

JumpStart 安装。有关更多信息,请参见示例 5-2。

初始安装。有关更多信息,请参见示例 5-3。

您可以执行标准升级来升级现有的可引导 ZFS 文件系统,但不能使用此选项创建新的可引导 ZFS 文件系统。从 Solaris 10 10/08 发行版开始,只要已安装 Solaris 10 10/08 或以上的发行版,就可以将 UFS 根文件系统迁移到 ZFS 根文件系统。有关迁移到 ZFS 根文件系统的更多信息,请参见迁移到 ZFS 根文件系统或更新 ZFS 根文件系统 (Live Upgrade)。

要创建 ZFS 根文件系统,请选择 ZFS 选项。例如:Choose Filesystem Type

Select the filesystem to use for your Solaris installation

[ ] UFS

[X] ZFS

在选择要安装的软件之后,系统将提示您选择用来创建 ZFS 存储池的磁盘。该屏幕与先前发行版中的屏幕类似。Select Disks

On this screen you must select the disks for installing Solaris software.

Start by looking at the Suggested Minimum field; this value is the

approximate space needed to install the software you've selected. For ZFS,

multiple disks will be configured as mirrors, so the disk you choose, or the

slice within the disk must exceed the Suggested Minimum value.

NOTE: ** denotes current boot disk

Disk Device Available Space

=============================================================================

[X] c1t0d0 69994 MB (F4 to edit)

[ ] c1t1d0 69994 MB

[-] c1t2d0 0 MB

[-] c1t3d0 0 MB

Maximum Root Size: 69994 MB

Suggested Minimum: 8279 MB

您可以选择要用于 ZFS 根池的一个或多个磁盘。如果选择两个磁盘,则会为根池设置镜像双磁盘配置。双磁盘或三磁盘镜像池为最佳。如果您有八个磁盘并选择了所有磁盘,则这八个磁盘将作为一个大的镜像用于根池。此配置并非最佳。还可以选择在完成初始安装后创建镜像根池。不支持对根池的 RAID-Z 池配置。

有关配置 ZFS 存储池的更多信息,请参见ZFS 存储池的复制功能。

要选择两个磁盘来创建镜像的根池,请使用光标控制键选择第二个磁盘。

在以下示例中,选择了 c1t0d0 和 c1t1d0 用作根池磁盘。这两个磁盘都必须具有 SMI 标签和分片 0。如果磁盘没有 SMI 标签或不包含分片,则必须退出安装程序,使用 format 实用程序重新对磁盘设置标签和分区,然后重新启动安装程序。Select Disks

On this screen you must select the disks for installing Solaris software.

Start by looking at the Suggested Minimum field; this value is the

approximate space needed to install the software you've selected. For ZFS,

multiple disks will be configured as mirrors, so the disk you choose, or the

slice within the disk must exceed the Suggested Minimum value.

NOTE: ** denotes current boot disk

Disk Device Available Space

=============================================================================

[X] c1t0d0 69994 MB

[X] c1t1d0 69994 MB (F4 to edit)

[-] c1t2d0 0 MB

[-] c1t3d0 0 MB

Maximum Root Size: 69994 MB

Suggested Minimum: 8279 MB

如果 "Available Space"(可用空间)栏显示 0 MB,则该磁盘很有可能具有 EFI 标签。如果您想使用带 EFI 标签的磁盘,则必须退出安装程序,使用 format -e 命令以 SMI 标签重新标记该磁盘,然后重新启动安装程序。

如果在安装期间没有创建镜像根池,您可以在安装之后轻松创建。有关信息,请参见如何创建镜像 ZFS 根池(安装后)。

为 ZFS 存储池选择了一个或多个磁盘后,将出现一个屏幕,显示类似如下的内容:Configure ZFS Settings

Specify the name of the pool to be created from the disk(s) you have chosen.

Also specify the name of the dataset to be created within the pool that is

to be used as the root directory for the filesystem.

ZFS Pool Name: rpool

ZFS Root Dataset Name: s10s_u9wos_08

ZFS Pool Size (in MB): 69995

Size of Swap Area (in MB): 2048

Size of Dump Area (in MB): 1536

(Pool size must be between 6231 MB and 69995 MB)

[X] Keep / and /var combined

[ ] Put /var on a separate dataset

在此屏幕中,您可以通过在各项之间移动光标控制键并使用新值替换缺省值来更改 ZFS 池名称、数据集名称、池大小以及交换和转储设备大小(可选操作)。或者,您可以接受缺省值。另外,您可以修改创建和挂载 /var 文件系统的方式。

在此示例中,根数据集名称更改为 zfsBE。ZFS Pool Name: rpool

ZFS Root Dataset Name: zfsBE

ZFS Pool Size (in MB): 69995

Size of Swap Area (in MB): 2048

Size of Dump Area (in MB): 1536

(Pool size must be between 6231 MB and 69995 MB)

[X] Keep / and /var combined

[ ] Put /var on a separate dataset

在此最后的安装屏幕中,您可以更改安装配置文件(可选操作)。例如:Profile

The information shown below is your profile for installing Solaris software.

It reflects the choices you've made on previous screens.

============================================================================

Installation Option: Initial

Boot Device: c1t0d0

Root File System Type: ZFS

Client Services: None

Regions: North America

System Locale: C ( C )

Software: Solaris 10, Entire Distribution

Pool Name: rpool

Boot Environment Name: zfsBE

Pool Size: 69995 MB

Devices in Pool: c1t0d0

c1t1d0

安装完成后,查看生成的 ZFS 存储池和文件系统信息。例如:# zpool status

pool: rpool

state: ONLINE

scrub: none requested

config:

NAME STATE READ WRITE CKSUM

rpool ONLINE 0 0 0

mirror-0 ONLINE 0 0 0

c1t0d0s0 ONLINE 0 0 0

c1t1d0s0 ONLINE 0 0 0

errors: No known data errors

# zfs list

NAME USED AVAIL REFER MOUNTPOINT

rpool 8.03G 58.9G 96K /rpool

rpool/ROOT 4.47G 58.9G 21K legacy

rpool/ROOT/zfsBE 4.47G 58.9G 4.47G /

rpool/dump 1.50G 58.9G 1.50G -

rpool/export 44K 58.9G 23K /export

rpool/export/home 21K 58.9G 21K /export/home

rpool/swap 2.06G 61.0G 16K -

zfs list 输出样例标识了根池组件,例如 rpool/ROOT 目录,该目录在缺省情况下不可访问。

要在同一存储池中创建其他 ZFS 引导环境 (boot environment, BE),可以使用 lucreate 命令。

在以下示例中,创建了名为 zfs2BE 的新 BE。当前 BE 命名为 zfsBE,如 zfs list 输出所示。但是,lustatus 输出不会确认当前 BE,直到新 BE 创建完成。# lustatus

ERROR: No boot environments are configured on this system

ERROR: cannot determine list of all boot environment names

如果在同一池中创建新 ZFS BE,请使用类似如下的语法:# lucreate -n zfs2BE

INFORMATION: The current boot environment is not named - assigning name .

Current boot environment is named .

Creating initial configuration for primary boot environment .

The device is not a root device for any boot environment; cannot get BE ID.

PBE configuration successful: PBE name PBE Boot Device .

Comparing source boot environment file systems with the file

system(s) you specified for the new boot environment. Determining which

file systems should be in the new boot environment.

Updating boot environment description database on all BEs.

Updating system configuration files.

Creating configuration for boot environment .

Source boot environment is .

Creating boot environment .

Cloning file systems from boot environment to create boot environment .

Creating snapshot for on .

Creating clone for on .

Setting canmount=noauto for > in zone on .

Population of boot environment successful.

Creation of boot environment successful.

在同一池内创建 ZFS BE 时,使用 ZFS 克隆和快照功能可立即创建 BE。有关使用 Live Upgrade 进行 ZFS 根迁移的更多详细信息,请参见迁移到 ZFS 根文件系统或更新 ZFS 根文件系统 (Live Upgrade)。

接下来,验证新引导环境。例如:# lustatus

Boot Environment Is Active Active Can Copy

Name Complete Now On Reboot Delete Status

-------------------------- -------- ------ --------- ------ ----------

zfsBE yes yes yes no -

zfs2BE yes no no yes -

# zfs list

NAME USED AVAIL REFER MOUNTPOINT

rpool 8.03G 58.9G 97K /rpool

rpool/ROOT 4.47G 58.9G 21K legacy

rpool/ROOT/zfs2BE 116K 58.9G 4.47G /

rpool/ROOT/zfsBE 4.47G 58.9G 4.47G /

rpool/ROOT/zfsBE@zfs2BE 75.5K - 4.47G -

rpool/dump 1.50G 58.9G 1.50G -

rpool/export 44K 58.9G 23K /export

rpool/export/home 21K 58.9G 21K /export/home

rpool/swap 2.06G 61.0G 16K -

要从备用 BE 引导,请使用 luactivate 命令。

SPARC-如果引导设备包含 ZFS 存储池,请使用 boot -L 命令确定可用的 BE。

例如,在基于 SPARC 的系统上,可使用 boot - L 命令显示可用的 BE 列表。要从新 BE zfs2BE 引导,请选择选项 2。然后,键入显示的 boot -Z 命令。ok boot -L

Executing last command: boot -L

Boot device: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0 File and args: -L

1 zfsBE

2 zfs2BE

Select environment to boot: [ 1 - 2 ]: 2

To boot the selected entry, invoke:

boot [] -Z rpool/ROOT/zfs2BE

ok boot -Z rpool/ROOT/zfs2BE

x86-通过 GRUB 菜单确定要引导的 BE。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值