2013年9月3日火曜日

Solaris 10 ZFS

bash-3.2# zpool create rpool c2t0d0 c2t1d0
bash-3.2# zfs list
NAME    USED  AVAIL  REFER  MOUNTPOINT
rpool    79K  31.3G    31K  /rpool
bash-3.2# zfs create rpool/storage1
bash-3.2# zfs create rpool/storage2
bash-3.2# zfs create rpool/storage3
bash-3.2# df -k
ファイルシステム      kbytes 使用済み 使用可能 容量      マウント先
/dev/dsk/c0d0s0      21177107 11497054 9468282    55%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 16170508     996 16169512     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                     21177107 11497054 9468282    55%    /lib/libc.so.1
fd                         0       0       0     0%    /dev/fd
swap                 16169624     112 16169512     1%    /tmp
swap                 16169552      40 16169512     1%    /var/run
/dev/dsk/c0d1s7      20599663 12393044 8000623    61%    /oracle
/hgfs                16777215    4096 16772864     1%    /hgfs
/tmp/VMwareDnD             0       0       0     0%    /var/run/vmblock
/dev/lofi/1          2201236 2201236       0   100%    /mnt
rpool                32772096      33 32771883     1%    /rpool
rpool/storage1       32772096      31 32771883     1%    /rpool/storage1
rpool/storage2       32772096      31 32771883     1%    /rpool/storage2
rpool/storage3       32772096      31 32771883     1%    /rpool/storage3
bash-3.2# zonecfg -z testZone1
testZone1: そのような構成済みゾーンはありません
'create' を使用して、新しいゾーンの構成を開始してください。
zonecfg:testZone1> create
zonecfg:testZone1> set zonepath=/rpool/storage1
zonecfg:testZone1> add net
zonecfg:testZone1:net> set physical=e1000g0
zonecfg:testZone1:net> set address=172.168.20.13
zonecfg:testZone1:net> end
zonecfg:testZone1> set autoboot=true
zonecfg:testZone1> info
zonename: testZone1
zonepath: /rpool/storage1
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
net:
        address: 172.168.20.13
        physical: e1000g0
        defrouter が指定されていません
zonecfg:testZone1> export
create -b
set zonepath=/rpool/storage1
set autoboot=true
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add net
set address=172.168.20.13
set physical=e1000g0
end
zonecfg:testZone1> verify
zonecfg:testZone1> exit
bash-3.2# zoneadm list -vc
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   - testZone1         configured /rpool/storage1                native   shared
bash-3.2# chmod 700 storage1
bash-3.2# zoneadm -z testZone1 install
ZFS データセット rpool/storage1 を作成できません: dataset already exists
Preparing to install zone <testZone1>.
Creating list of files to copy from the global zone.
Copying <2908> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1225> packages on the zone.
Initialized <1225> packages on zone.
Zone <testZone1> is initialized.
ファイル </rpool/storage1/root/var/sadm/system/logs/install_log> には、ゾーンの インストールのログが含まれています。
bash-3.2# zoneadm -z testZone1 boot
bash-3.2# zlogin -C testZone1
[ゾーン 'testZone1' コンソールに接続しました]
Select a Language
  0. English
  1. Japanese
Please make a choice (0 - 1), or press h or ? for help:1
Select a Locale
  0. Japanese EUC (ja)
  1. Japanese EUC (ja_JP.eucJP)
  2. Japanese PC Kanji (ja_JP.PCK)
  3. Japanese UTF-8 (ja_JP.UTF-8)
  4. Go Back to Previous Screen
Please make a choice (0 - 4), or press h or ? for help: 0
どのタイプの端末を使用していますか?
 1) ANSI 標準 CRT
 2) DEC VT52
 3) DEC VT100
 4) Heathkit 19
 5) Lear Siegler ADM31
 6) PC コンソール
 7) Sun コマンドツール
 8) Sun ワークステーション
 9) Televideo 910
 10) Televideo 925
 11) Wyse Model 50
 12) X 端末エミュレータ (xterms)
 13) CDE 端末エミュレータ (dtterm)
 14) その他
選択する番号を入力して、Return キーを押してください。12
Creating new rsa public/private host key pair
Creating new dsa public/private host key pair
Configuring network interface addresses: e1000g0.
─ Host Name for e1000g0:1 ──────────────────────────────────────────────────────
  Enter the host name which identifies this system on the network.  The name
  must be unique within your domain; creating a duplicate host name will cause
  problems on the network after you install Solaris.
  A host name must have at least one character; it can contain letters,
  digits, and minus signs (-).

             Host name for e1000g0:1 sol10-oracle3-1

  > Press F2 to go to the next screen.




────────────────────────────────────────────────────────────────────────────────    F2_Continue    F6_Help



─ Confirm Information for e1000g0:1 ────────────────────────────────────────────
  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

                          Host name: sol10-oracle3-1







────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-4_Change    Esc-6_Help


─ Configure Security Policy: ───────────────────────────────────────────────────
  Specify Yes if the system will use the Kerberos security mechanism.
  Specify No if this system will use standard UNIX security.
      Configure Kerberos Security
      ───────────────────────────
      [ ] Yes
      [X] No






────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-6_Help


─ Confirm Information ──────────────────────────────────────────────────────────
  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

        Configure Kerberos Security: No







────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-4_Change    Esc-6_Help


─ Name Service ─────────────────────────────────────────────────────────────────
  On this screen you must provide name service information.  Select the name
  service that will be used by this system, or None if your system will either
  not use a name service at all, or if it will use a name service not listed
  here.
  > To make a selection, use the arrow keys to highlight the option
    and press Return to mark it [X].

      Name service
      ────────────
      [ ] NIS+
      [ ] NIS
      [ ] DNS
      [ ] LDAP
      [X] None


────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-6_Help


─ Confirm Information ──────────────────────────────────────────────────────────
  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

                       Name service: None







────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-4_Change    Esc-6_Help


─ NFSv4 Domain Name ────────────────────────────────────────────────────────────
  NFS version 4 uses a domain name that is automatically derived from the
  system's naming services. The derived domain name is sufficient for most
  configurations. In a few cases, mounts that cross domain boundaries might
  cause files to appear to be owned by "nobody" due to the lack of a common
  domain name.
  The current NFSv4 default domain is: ""

      NFSv4 Domain Configuration
      ──────────────────────────────────────────────
      [X] Use the NFSv4 domain derived by the system
      [ ] Specify a different NFSv4 domain



────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-6_Help


─ Confirm Information for NFSv4 Domain ─────────────────────────────────────────
  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

                 NFSv4 Domain Name:  << Value to be derived dynamically >>







────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-4_Change    Esc-6_Help


─ Time Zone ────────────────────────────────────────────────────────────────────
  On this screen you must specify your default time zone.  You can specify a
  time zone in three ways:  select one of the continents or oceans from the
  list, select other - offset from GMT, or other - specify time zone file.
  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].

      Continents and Oceans
      ──────────────────────────────────
  -   [ ] Africa
  │   [ ] Americas
  │   [ ] Antarctica
  │   [ ] Arctic Ocean
  │   [X] Asia
  │   [ ] Atlantic Ocean
  │   [ ] Australia
  │   [ ] Europe
  v   [ ] Indian Ocean
────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-6_Help


─ Country or Region ────────────────────────────────────────────────────────────
  > To make a selection, use the arrow keys to highlight the option and
    press Return to mark it [X].

      Countries and Regions
      ────────────────────────
  ^   [ ] Georgia
  │   [ ] Hong Kong
  │   [ ] India
  │   [ ] Indonesia
  │   [ ] Iran
  │   [ ] Iraq
  │   [ ] Israel
  │   [X] Japan
  │   [ ] Jordan
  │   [ ] Kazakhstan
  │   [ ] Korea (North)
  │   [ ] Korea (South)
  v   [ ] Kuwait
────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-6_Help


─ Confirm Information ──────────────────────────────────────────────────────────
  > Confirm the following information.  If it is correct, press F2;
    to change any information, press F4.

                          Time zone: Japan







────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-4_Change    Esc-6_Help


─ Root Password ────────────────────────────────────────────────────────────────
  Please enter the root password for this system.
  The root password may contain alphanumeric and special characters.  For
  security, the password will not be displayed on the screen as you type it.
  > If you do not want a root password, leave both entries blank.

                     Root password:  ***************
                     Root password:  ***************





────────────────────────────────────────────────────────────────────────────────    Esc-2_Continue    Esc-6_Help


rebooting system due to change(s) in /etc/default/init

[注意: ゾーンをリブートしています]

SunOS Release 5.10 Version Generic_147441-01 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Hostname: sol10-oracle3-1
sol10-oracle3-1 console login:

0 件のコメント:

コメントを投稿