2012年12月1日土曜日
NetApp | ONTAP構築メモ nsf/snapmirror/iscsi等
ontapOSのオペレーションは初めてなので、simを利用して、構築コマンドを叩いてみましたので、メモを残しておきます。詳細はいつかまた別に記録します。
/////////////////////////////////////////////////
license
/////////////////////////////////////////////////
a_sis ENABLED
cf not licensed
cf_remote not licensed
cifs site DZDACHD
compression ENABLED
disk_sanitization ENABLED
fcp site BKHEXNB
flash_cache ENABLED
flex_clone site ANLEAZL
flex_scale ENABLED
flexcache_nfs ENABLED
http ENABLED
insight_balance not licensed
iscsi site BSLRLTG
multistore ENABLED
nearstore_option ENABLED
nfs site BQOEAZL
operations_manager ENABLED
persistent_archive ENABLED
protection_manager ENABLED
provisioning_manager ENABLED
smdomino site RKBAFSN
smsql ENABLED
snapdrive_windows ENABLED
snaplock site ZOJPPVM
snaplock_enterprise site PTZZESN
snapmanager_hyperv ENABLED
snapmanager_oracle ENABLED
snapmanager_sap ENABLED
snapmanager_sharepoint ENABLED
snapmanager_vi ENABLED
snapmanagerexchange site BCJEAZL
snapmirror site DFVXFJJ
snapmirror_sync ENABLED
snapmover ENABLED
snaprestore site DNDCBQH
snapvalidator site JQAACHD
storage_services ENABLED
sv_application_pri not licensed
sv_linux_pri ENABLED
sv_ontap_pri ENABLED
sv_ontap_sec site PDXMQMI
sv_unix_pri ENABLED
sv_vi_pri ENABLED
sv_windows_ofm_pri ENABLED
sv_windows_pri ENABLED
syncmirror_local site RIQTKCL
v-series not licensed
vld ENABLED
/////////////////////////////////////////////////
disk assign all
/////////////////////////////////////////////////
wait long time...()
※ディスクアサインはディスクごとにコントローラに割り当てることが可能です。
今回はすべて一つのコントローラに割り当てますので、allオプションです。
ディスクの推奨構成がありますが、今回のケースでは、パリティ2本の
HSP1本の構成です。以下の設定ではとくに設定コマンド叩いていないと思われますので、
別の機会に記載します。
/////////////////////////////////////////////////
aggr create
/////////////////////////////////////////////////
ontap> aggr create aggr_iscsi -r 10 10
/////////////////////////////////////////////////
vol create
/////////////////////////////////////////////////
vol create /vol/vol_iscsi aggr_iscsi 10g
ココでは、アグリゲート10Gのうち、10Gをボリュームに割り当てていますが、
実際は、アグリゲートの90%までの使用が推奨になります。
/////////////////////////////////////////////////
lun setup
/////////////////////////////////////////////////
lun setup
This setup will take you through the steps needed to create LUNs
and to make them accessible by initiators. You can type ^C (Control-C)
at any time to abort the setup and no unconfirmed changes will be made
to the system.
Do you want to create a LUN? [y]: y
Multiprotocol type of LUN
(solaris/windows/hpux/aix/linux/netware/vmware/windows_gpt/windows_2008/xen/hyper_v/solaris_efi/vld/openvms)
[linux]: vmware
A LUN path must be absolute. A LUN can only reside in a volume or
qtree root. For example, to create a LUN with name "lun0" in the
qtree root /vol/vol1/q0, specify the path as "/vol/vol1/q0/lun0".
Enter LUN path: /vol/vol_iscsi/lun_iscsi
A LUN can be created with or without space reservations being enabled.
Space reservation guarantees that data writes to that LUN will never
fail.
Do you want the LUN to be space reserved? [y]:
Size for a LUN is specified in bytes. You can use single-character
multiplier suffixes: b(sectors), k(KB), m(MB), g(GB) or t(TB).
Enter LUN size: 4g
You can add a comment string to describe the contents of the LUN.
Please type a string (without quotes), or hit ENTER if you don't
want to supply a comment.
Enter comment string:
The LUN will be accessible to an initiator group. You can use an
existing group name, or supply a new name to create a new initiator
group. Enter '?' to see existing initiator group names.
Name of initiator group [iscsi]:
iscsi (iSCSI) (ostype: vmware):
iqn.1998-01.com.vmware:esx-11738ec6 (not logged in)
The LUN will be accessible to all the initiators in the
initiator group. Enter '?' to display LUNs already in use
by one or more initiators in group "iscsi".
LUN ID at which initiator group "iscsi" sees "/vol/vol_iscsi/lun_iscsi" [0]:
LUN Path : /vol/vol_iscsi/lun_iscsi
OS Type : vmware
Size : 4g (4294967296)
Initiator Group : iscsi
Initiator Group Type : iSCSI
Initiator Group Members : iqn.1998-01.com.vmware:esx-11738ec6
Mapped to LUN-ID : 0
Do you want to accept this configuration? [y]: y
Do you want to create another LUN? [n]: Sun Nov 11 04:17:00 GMT [ontap:lun.map:info]: LUN /vol/vol_iscsi/lun_iscsi was mapped to initiator group iscsi=0
※lun createコマンド等で、セットアップも可能。今回は、iscsiのみの設定を想定していたため、
lun setupコマンドで構築します。
/////////////////////////////////////////////////
iscsi service start
/////////////////////////////////////////////////
iscsi start
※上記のセットアップまでで、iscsiの設定は完了しています。
そのため、esxのデータストアマウントは可能となります。
書き込みが可能かどうか、仮想マシンの作成等で確認してみましょう。
/////////////////////////////////////////////////
snap mirror
/////////////////////////////////////////////////
options snapmirror.enable on
or
snapmirror on
※スナップミラー
ボリュームサイズの制限
重複排除のメリット、デメリット
vol restrict <vol-name> [-t] - mark volume <vol-name> restricted
ontap> vol restrict /vol/vol_iscsi_mirror
Volume 'vol_iscsi_mirror' is now restricted.
ontap>
※optionsがrootになっている場合、制限不可
ontap> options snapmirror
snapmirror.access legacy
snapmirror.checkip.enable off
snapmirror.delayed_acks.enable on
snapmirror.enable on
snapmirror.log.enable on
snapmirror.vbn_log_enable off
snapmirror.volume.local_nwk_bypass.enable on
ontap> snapmirror initialize -S vol_iscsi vol_iscsi_mirror
Transfer started.
Monitor progress with 'sn10:57 2012/11/12apmirror status' or the snapmirror log.
ontap> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
ontap:vol_iscsi ontap:vol_iscsi_mirror Uninitialized - Transferring (26 MB done)
ontap>
ontap> snapmirror break vol_iscsi_mirror
snapmirror break: Destination vol_iscsi_mirror is now writable.
Volume size is being retained for potential snapmirror resync. If you would like to grow the volume and do not expect to resync, set vol option fs_size_fixed to off.
ontap> snapmirror status
Snapmirror is on.
Source Destination State Lag Status
ontap:vol_iscsi ontap:vol_iscsi_mirror Broken-off 00:11:08 Idle
ontap>
※初期のスナップミラーで行われるイニシャライズでレプリケーションをとり、以後は差分のスナップのみ更新となります。
/////////////////////////////////////////////////////////////
//snapmirror// options snapmirror.access host=192.168.31.37//
/////////////////////////////////////////////////////////////
設定していない場合は、snapmirror.allowが使用される。
今回の検証環境では、同一ストレージにミラーリングしているため
上記オプションを設定していなくても引っかからない。
本番環境では、違うハードウェアにミラーリングすることが想定されるため、
ミラーのミラーが必要になったりする。
/////////////////////////////////////////////////////////////
//CIFS セットアップ
/////////////////////////////////////////////////////////////
cifs setup
※手動で設定。3.WORKGROUPでの設定を行なってみましょう。
cifs shares -add vol0 /vol/vol0
cifs shares -add vol_iscsi /vol/vol_iscsi
※WINDOWSに見せたいボリュームもフルパスで指定します。
あとは、ホストにWindowsから接続して、認証します。
すみません、こちらはコマンドを叩いたログがないため、適当です。
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿
注: コメントを投稿できるのは、このブログのメンバーだけです。