Citrix XenServer/ローカルストレージ作成

ローカルストレージの作成

# xe sr-create name-label="Local strage1" type=lvm device-config:device=/dev/hda3

・XenCenterから、できたLocal strage1を右クリックして、「Set as Default Strage Repository」をクリック

ローカルディスクの削除(これで作ってしまった Local strage1を削除できます。)

・Xen管理物理デバイスのUUIDを調べる 「/dev/hda2」がある所の「uuid ( RO)」と「sr-uuid ( RO)」をコピーしておく。

# xe pbd-list 
uuid ( RO)                  : 5d560e52-6208-e322-e25a-e18970ffef1c
             host-uuid ( RO): 14121afa-24bc-4a14-9a0a-f7282de5a6e8
               sr-uuid ( RO): eec2d5de-e3d2-aa7b-8f82-99e9c11fcd70
         device-config (MRO): device: /dev/hda2
    currently-attached ( RO): true


uuid ( RO)                  : 3f9b7d89-84cc-2476-3d74-96e07ce8416d
             host-uuid ( RO): 14121afa-24bc-4a14-9a0a-f7282de5a6e8
               sr-uuid ( RO): b0c7bb71-4b36-f405-c238-4e93c2012f8c
         device-config (MRO): location: /dev/xapi/cd
    currently-attached ( RO): true


uuid ( RO)                  : 1a66e8a6-72ce-91fa-29c0-d9f471c70a08
             host-uuid ( RO): 14121afa-24bc-4a14-9a0a-f7282de5a6e8
               sr-uuid ( RO): ff44992f-39d1-d8c0-8206-e879a4a3ecd6
         device-config (MRO): location: /dev/xapi/block
    currently-attached ( RO): true


uuid ( RO)                  : 4cabd16d-9db4-1d55-d849-dc18809621f4
             host-uuid ( RO): 14121afa-24bc-4a14-9a0a-f7282de5a6e8
               sr-uuid ( RO): 9ed4b54e-9a7d-a3eb-d6be-f5549dbb7b41
         device-config (MRO): location: /opt/xensource/packages/iso; legacy_mode: true
    currently-attached ( RO): true

・物理デバイスの切り離し

# xe pbd-unplug uuid=「uuid ( RO)」

・Xen管理ストレージを削除

# xe sr-destroy uuid=「sr-uuid ( RO)」