読者です 読者をやめる 読者になる 読者になる

labunix's blog

labunixのラボUnix

ONTAP Simulator8.1.2をvmplayerで試してみる。

■ONTAP Simulatorをvmplayerで試してみる。
 一般公開されていないシリーズ。

 手順については下記が参考になった。

 NetApp社のData ONTAPシミュレータをご存じですか?
 http://blogs.networld.co.jp/main/2014/07/netapp-clustere-beb6.html

■今回はONTAP8.1.2。8.2系でも8.3系でも無い。

$ tar zxvf vsim-DOT812-cm-esx.tgzvsim-DOT812-cm/
vsim-DOT812-cm/cfcard/
vsim-DOT812-cm/cfcard/env/
vsim-DOT812-cm/cfcard/env/env
vsim-DOT812-cm/DataONTAP-flat.vmdk
vsim-DOT812-cm/DataONTAP-nvram-flat.vmdk
vsim-DOT812-cm/DataONTAP-nvram.vmdk
vsim-DOT812-cm/DataONTAP-s001.vmdk
vsim-DOT812-cm/DataONTAP-s002.vmdk
vsim-DOT812-cm/DataONTAP-s003.vmdk
vsim-DOT812-cm/DataONTAP-s004.vmdk
vsim-DOT812-cm/DataONTAP-s005.vmdk
vsim-DOT812-cm/DataONTAP-s006.vmdk
vsim-DOT812-cm/DataONTAP-s007.vmdk
vsim-DOT812-cm/DataONTAP-s008.vmdk
vsim-DOT812-cm/DataONTAP-s009.vmdk
vsim-DOT812-cm/DataONTAP-s010.vmdk
vsim-DOT812-cm/DataONTAP-s011.vmdk
vsim-DOT812-cm/DataONTAP-s012.vmdk
vsim-DOT812-cm/DataONTAP-s013.vmdk
vsim-DOT812-cm/DataONTAP-s014.vmdk
vsim-DOT812-cm/DataONTAP-s015.vmdk
vsim-DOT812-cm/DataONTAP-s016.vmdk
vsim-DOT812-cm/DataONTAP-s017.vmdk
vsim-DOT812-cm/DataONTAP-s018.vmdk
vsim-DOT812-cm/DataONTAP-s019.vmdk
vsim-DOT812-cm/DataONTAP-s020.vmdk
vsim-DOT812-cm/DataONTAP-s021.vmdk
vsim-DOT812-cm/DataONTAP-s022.vmdk
vsim-DOT812-cm/DataONTAP-s023.vmdk
vsim-DOT812-cm/DataONTAP-s024.vmdk
vsim-DOT812-cm/DataONTAP-s025.vmdk
vsim-DOT812-cm/DataONTAP-s026.vmdk
vsim-DOT812-cm/DataONTAP-s027.vmdk
vsim-DOT812-cm/DataONTAP-s028.vmdk
vsim-DOT812-cm/DataONTAP-s029.vmdk
vsim-DOT812-cm/DataONTAP-s030.vmdk
vsim-DOT812-cm/DataONTAP-s031.vmdk
vsim-DOT812-cm/DataONTAP-s032.vmdk
vsim-DOT812-cm/DataONTAP-s033.vmdk
vsim-DOT812-cm/DataONTAP-s034.vmdk
vsim-DOT812-cm/DataONTAP-s035.vmdk
vsim-DOT812-cm/DataONTAP-s036.vmdk
vsim-DOT812-cm/DataONTAP-s037.vmdk
vsim-DOT812-cm/DataONTAP-s038.vmdk
vsim-DOT812-cm/DataONTAP-s039.vmdk
vsim-DOT812-cm/DataONTAP-s040.vmdk
vsim-DOT812-cm/DataONTAP-s041.vmdk
vsim-DOT812-cm/DataONTAP-s042.vmdk
vsim-DOT812-cm/DataONTAP-s043.vmdk
vsim-DOT812-cm/DataONTAP-s044.vmdk
vsim-DOT812-cm/DataONTAP-s045.vmdk
vsim-DOT812-cm/DataONTAP-s046.vmdk
vsim-DOT812-cm/DataONTAP-s047.vmdk
vsim-DOT812-cm/DataONTAP-s048.vmdk
vsim-DOT812-cm/DataONTAP-s049.vmdk
vsim-DOT812-cm/DataONTAP-s050.vmdk
vsim-DOT812-cm/DataONTAP-s051.vmdk
vsim-DOT812-cm/DataONTAP-s052.vmdk
vsim-DOT812-cm/DataONTAP-s053.vmdk
vsim-DOT812-cm/DataONTAP-s054.vmdk
vsim-DOT812-cm/DataONTAP-s055.vmdk
vsim-DOT812-cm/DataONTAP-s056.vmdk
vsim-DOT812-cm/DataONTAP-s057.vmdk
vsim-DOT812-cm/DataONTAP-s058.vmdk
vsim-DOT812-cm/DataONTAP-s059.vmdk
vsim-DOT812-cm/DataONTAP-s060.vmdk
vsim-DOT812-cm/DataONTAP-s061.vmdk
vsim-DOT812-cm/DataONTAP-s062.vmdk
vsim-DOT812-cm/DataONTAP-s063.vmdk
vsim-DOT812-cm/DataONTAP-s064.vmdk
vsim-DOT812-cm/DataONTAP-s065.vmdk
vsim-DOT812-cm/DataONTAP-s066.vmdk
vsim-DOT812-cm/DataONTAP-s067.vmdk
vsim-DOT812-cm/DataONTAP-s068.vmdk
vsim-DOT812-cm/DataONTAP-s069.vmdk
vsim-DOT812-cm/DataONTAP-s070.vmdk
vsim-DOT812-cm/DataONTAP-s071.vmdk
vsim-DOT812-cm/DataONTAP-s072.vmdk
vsim-DOT812-cm/DataONTAP-s073.vmdk
vsim-DOT812-cm/DataONTAP-s074.vmdk
vsim-DOT812-cm/DataONTAP-s075.vmdk
vsim-DOT812-cm/DataONTAP-s076.vmdk
vsim-DOT812-cm/DataONTAP-s077.vmdk
vsim-DOT812-cm/DataONTAP-s078.vmdk
vsim-DOT812-cm/DataONTAP-s079.vmdk
vsim-DOT812-cm/DataONTAP-s080.vmdk
vsim-DOT812-cm/DataONTAP-s081.vmdk
vsim-DOT812-cm/DataONTAP-s082.vmdk
vsim-DOT812-cm/DataONTAP-s083.vmdk
vsim-DOT812-cm/DataONTAP-s084.vmdk
vsim-DOT812-cm/DataONTAP-s085.vmdk
vsim-DOT812-cm/DataONTAP-s086.vmdk
vsim-DOT812-cm/DataONTAP-s087.vmdk
vsim-DOT812-cm/DataONTAP-s088.vmdk
vsim-DOT812-cm/DataONTAP-s089.vmdk
vsim-DOT812-cm/DataONTAP-s090.vmdk
vsim-DOT812-cm/DataONTAP-s091.vmdk
vsim-DOT812-cm/DataONTAP-s092.vmdk
vsim-DOT812-cm/DataONTAP-s093.vmdk
vsim-DOT812-cm/DataONTAP-s094.vmdk
vsim-DOT812-cm/DataONTAP-s095.vmdk
vsim-DOT812-cm/DataONTAP-s096.vmdk
vsim-DOT812-cm/DataONTAP-s097.vmdk
vsim-DOT812-cm/DataONTAP-s098.vmdk
vsim-DOT812-cm/DataONTAP-s099.vmdk
vsim-DOT812-cm/DataONTAP-s100.vmdk
vsim-DOT812-cm/DataONTAP-s101.vmdk
vsim-DOT812-cm/DataONTAP-s102.vmdk
vsim-DOT812-cm/DataONTAP-s103.vmdk
vsim-DOT812-cm/DataONTAP-s104.vmdk
vsim-DOT812-cm/DataONTAP-s105.vmdk
vsim-DOT812-cm/DataONTAP-s106.vmdk
vsim-DOT812-cm/DataONTAP-s107.vmdk
vsim-DOT812-cm/DataONTAP-s108.vmdk
vsim-DOT812-cm/DataONTAP-s109.vmdk
vsim-DOT812-cm/DataONTAP-s110.vmdk
vsim-DOT812-cm/DataONTAP-s111.vmdk
vsim-DOT812-cm/DataONTAP-s112.vmdk
vsim-DOT812-cm/DataONTAP-s113.vmdk
vsim-DOT812-cm/DataONTAP-s114.vmdk
vsim-DOT812-cm/DataONTAP-s115.vmdk
vsim-DOT812-cm/DataONTAP-s116.vmdk
vsim-DOT812-cm/DataONTAP-s117.vmdk
vsim-DOT812-cm/DataONTAP-s118.vmdk
vsim-DOT812-cm/DataONTAP-s119.vmdk
vsim-DOT812-cm/DataONTAP-s120.vmdk
vsim-DOT812-cm/DataONTAP-s121.vmdk
vsim-DOT812-cm/DataONTAP-s122.vmdk
vsim-DOT812-cm/DataONTAP-s123.vmdk
vsim-DOT812-cm/DataONTAP-s124.vmdk
vsim-DOT812-cm/DataONTAP-s125.vmdk
vsim-DOT812-cm/DataONTAP-s126.vmdk
vsim-DOT812-cm/DataONTAP-sim.vmdk
vsim-DOT812-cm/DataONTAP-var-flat.vmdk
vsim-DOT812-cm/DataONTAP-var.vmdk
vsim-DOT812-cm/DataONTAP.vmdk
vsim-DOT812-cm/DataONTAP.vmx
vsim-DOT812-cm/mtoolsrc
vsim-DOT812-cm/nvram
vsim-DOT812-cm/uml/

■OVAに変換しておく。
 仮想マシンのKernelは「freebsd64guest」、
 systemshellに落ちればただのFreeBSD。

$ mkdir ova && ovftool vsim-DOT812-cm/DataONTAP.vmx ova//DataONTAP.ova
Opening VMX source: vsim-DOT812-cm/DataONTAP.vmx
Opening OVA target: ova//DataONTAP.ova
Writing OVA package: ova/DataONTAP.ova
Transfer Completed                    
Completed successfully

$ ovftool ova//DataONTAP.ova
OVF version:   1.0
VirtualApp:    false
Name:          vsim-cm1

Download Size:  205.23 MB

Deployment Sizes:
  Flat disks:   257.54 GB
  Sparse disks: 212.56 MB

Networks:
  Name:        Cluster Network
  Description: The Cluster Network network

  Name:        VM Network
  Description: The VM Network network

Virtual Machines:
  Name:               vsim-cm1
  Operating System:   freebsd64guest
  Virtual Hardware:
    Families:         vmx-07 
    Number of CPUs:   2
    Cores per socket: 1
    Memory:           1.56 GB

    Disks:
      Index:          0
      Instance ID:    5
      Capacity:       1.03 GB
      Disk Types:     IDE 

      Index:          1
      Instance ID:    6
      Capacity:       1.51 GB
      Disk Types:     IDE 

      Index:          0
      Instance ID:    7
      Capacity:       5.00 GB
      Disk Types:     IDE 

      Index:          1
      Instance ID:    8
      Capacity:       250.00 GB
      Disk Types:     IDE 

    NICs:
      Adapter Type:   E1000
      Connection:     Cluster Network

      Adapter Type:   E1000
      Connection:     VM Network

      Adapter Type:   E1000
      Connection:     VM Network

      Adapter Type:   E1000
      Connection:     Cluster Network

■ethernetをNATにしてvmplayerで起動。
 今回はNTPサービス動作確認のため1台のみ。

 [Ctrl]+[C]メニューで[5]メンテナンスモードに入ってオーナーシップを解除
 すべてのディスクをアサインして再起動
 [Ctrl]+[C]メニューで[4]初期化
 手動で設定。容量の拡張はスキップ。

sample-01::> network interface show
    show               show-routing-group show-zones

sample-01::> network interface show
            Logical    Status     Network            Current       Current Is
Vserver     Interface  Admin/Oper Address/Mask       Node          Port    Home
----------- ---------- ---------- ------------------ ------------- ------- ----
sample-01
            clus1        up/-     192.168.152.198/24 sample-01     e0a     true

sample-01::> security login show
                                         Authentication                  Acct
Vserver     UserName         Application Method         Role Name        Locked
----------- ---------------- ----------- -------------- ---------------- ------
cluster     admin            console     password       admin            no
cluster     admin            service-    password       admin            no
                             processor
cluster     labunix          telnet      password       admin            no
cluster     public           snmp        community      readonly         -
4 entries were displayed.

$ telnet 192.168.152.198
Trying 192.168.152.198...
Connected to 192.168.152.198.
Escape character is '^]'.

Data ONTAP/amd64 (sample-01) (ttyp0)

login: labunix
Password:
sample-01::> 
sample-01::> system services ntp
sample-01::system services ntp> server create -node sample-01 -server 192.168.152.1 
sample-01::system services ntp> ntp config modify -enabled true 
  (system services ntp config modify)

sample-01::system services ntp> ntp config show                 
  (system services ntp config show)

 NTP Enabled: true


sample-01::system services ntp> ntp server show
  (system services ntp server show)
Node   Server                         Version
------ ------------------------------ ----------------------------------------
sample-01
       192.168.152.1                  3

sample-01::system services ntp> exit
Goodbye

Connection closed by foreign host.
$ telnet 192.168.152.198
Trying 192.168.152.198...
Connected to 192.168.152.198.
Escape character is '^]'.

Data ONTAP/amd64 (sample-01) (ttyp0)

login: labunix
Password:

sample-01::> set -privilege advanced 

Warning: These advanced commands are potentially dangerous; use them only when
         directed to do so by NetApp personnel.
Do you want to continue? {y|n}: y

sample-01::> security login unlock diag
sample-01::*> security login password -username diag

Please enter a new password: 
Please enter it again: 

sample-01::*> systemshell local       
  (system node systemshell)

Data ONTAP/amd64 (sample-01) (ttyp2)

login: diag
Password:


Warning:  The system shell provides access to low-level
diagnostic tools that can cause irreparable damage to
the system if not used properly.  Use this environment
only when directed to do so by support personnel.

sample-01% bash
bash-3.2$ 
bash-3.2$ ntpq -pn -c rv
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.152.1     133.243.238.164 3 u   17   64    0    0.000    0.000   0.000
assID=0 status=0011 leap_none, sync_unspec, 1 event, event_restart,
version="ntpd 4.2.1p241-RC-a Tue Oct 30 19:55:40 PDT 2012 (999)",
processor="amd64", system="Data ONTAP/8.1.2", leap=00, stratum=12,
precision=-20, rootdelay=0.000, rootdispersion=0.255, peer=0,
refid=127.0.0.1,
reftime=00000000.00000000  Mon, Jan  1 1900  0:00:00.000, poll=6,
clock=d90732a0.915efb63  Wed, May 20 2015 16:19:44.567, state=0,
offset=0.000, frequency=0.000, jitter=0.001, noise=0.001,
stability=0.000
bash-3.2$ uname -a
Data ONTAP sample-01 8.1.2 Data ONTAP Release 8.1.2 amd64