Windows OS から OCI File Storage Serviceのマウント
OCIのPrivate IPアドレスに通信できるWindows Server 2008 R2, 2012 R2, 2016から OCI File Storage Service にマウントが可能ということで
Windows Server 2016 Standard Editionから試してみた。
事前準備
File Storage Serviceとマウントターゲット、Exportsを作成
セキュリティリストの設定
File Storage Serviceが属しているSubnetのセキュリティリストにWindows Serverが属しているネットワークセグメントからの通信を許可する
- TCP Source Port Range:ALL,Destination Port Range:2048-2050
- TCP Source Port Range:ALL,Destination Port Range:111
- UDP Source Port Range:ALL,Destination Port Range:2048
- UDP Source Port Range:ALL,Destination Port Range:111
Windows Server 2016での作業
Windows PowerShellを 管理者として実行
Start-Process powershell -Verb runAs
NFS Clientの入手
Install-WindowsFeature -Name NFS-Client
レジストリの確認(AnonymousGid、AnonymousUid をrootユーザに設定)
レジストリエディタ(regedit)を開き
HKEY_LOCAL_MACHINEのSoftware\Microsoft\ClientForNFS\CurrentVersion\Defaultを開く
AnonymousGidおよびAnonymousUidの値が0にセットされていることを確認
(存在しない場合は新規>DWORD (32 bit) 値から作成)
NFS Clientの再起動
コマンドプロンプトを 管理者として実行
nfsadmin client stop
nfsadmin client start
File Storageをマウント
コマンドプロンプトを(管理者としてではなく)通常に実行
File StorageのIPアドレス、ExportとマップするWindowsドライブレターを指定してマウント
mount 10.x.x.x:/fs-export-path X:
以上でWindowsOSからドライブとして利用可能になった。