特殊:Badtitle/NS100:UEC/StorageController
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UEC/StorageController }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/af | • {{#if: UbuntuHelp:UEC/StorageController|Afrikaans| [[::UEC/StorageController/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ar | • {{#if: UbuntuHelp:UEC/StorageController|العربية| [[::UEC/StorageController/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/az | • {{#if: UbuntuHelp:UEC/StorageController|azərbaycanca| [[::UEC/StorageController/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/bcc | • {{#if: UbuntuHelp:UEC/StorageController|جهلسری بلوچی| [[::UEC/StorageController/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/bg | • {{#if: UbuntuHelp:UEC/StorageController|български| [[::UEC/StorageController/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/br | • {{#if: UbuntuHelp:UEC/StorageController|brezhoneg| [[::UEC/StorageController/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ca | • {{#if: UbuntuHelp:UEC/StorageController|català| [[::UEC/StorageController/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/cs | • {{#if: UbuntuHelp:UEC/StorageController|čeština| [[::UEC/StorageController/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/de | • {{#if: UbuntuHelp:UEC/StorageController|Deutsch| [[::UEC/StorageController/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/el | • {{#if: UbuntuHelp:UEC/StorageController|Ελληνικά| [[::UEC/StorageController/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/es | • {{#if: UbuntuHelp:UEC/StorageController|español| [[::UEC/StorageController/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/fa | • {{#if: UbuntuHelp:UEC/StorageController|فارسی| [[::UEC/StorageController/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/fi | • {{#if: UbuntuHelp:UEC/StorageController|suomi| [[::UEC/StorageController/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/fr | • {{#if: UbuntuHelp:UEC/StorageController|français| [[::UEC/StorageController/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/gu | • {{#if: UbuntuHelp:UEC/StorageController|ગુજરાતી| [[::UEC/StorageController/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/he | • {{#if: UbuntuHelp:UEC/StorageController|עברית| [[::UEC/StorageController/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/hu | • {{#if: UbuntuHelp:UEC/StorageController|magyar| [[::UEC/StorageController/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/id | • {{#if: UbuntuHelp:UEC/StorageController|Bahasa Indonesia| [[::UEC/StorageController/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/it | • {{#if: UbuntuHelp:UEC/StorageController|italiano| [[::UEC/StorageController/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ja | • {{#if: UbuntuHelp:UEC/StorageController|日本語| [[::UEC/StorageController/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ko | • {{#if: UbuntuHelp:UEC/StorageController|한국어| [[::UEC/StorageController/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ksh | • {{#if: UbuntuHelp:UEC/StorageController|Ripoarisch| [[::UEC/StorageController/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/mr | • {{#if: UbuntuHelp:UEC/StorageController|मराठी| [[::UEC/StorageController/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ms | • {{#if: UbuntuHelp:UEC/StorageController|Bahasa Melayu| [[::UEC/StorageController/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/nl | • {{#if: UbuntuHelp:UEC/StorageController|Nederlands| [[::UEC/StorageController/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/no | • {{#if: UbuntuHelp:UEC/StorageController|norsk| [[::UEC/StorageController/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/oc | • {{#if: UbuntuHelp:UEC/StorageController|occitan| [[::UEC/StorageController/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/pl | • {{#if: UbuntuHelp:UEC/StorageController|polski| [[::UEC/StorageController/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/pt | • {{#if: UbuntuHelp:UEC/StorageController|português| [[::UEC/StorageController/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ro | • {{#if: UbuntuHelp:UEC/StorageController|română| [[::UEC/StorageController/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/ru | • {{#if: UbuntuHelp:UEC/StorageController|русский| [[::UEC/StorageController/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/si | • {{#if: UbuntuHelp:UEC/StorageController|සිංහල| [[::UEC/StorageController/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/sq | • {{#if: UbuntuHelp:UEC/StorageController|shqip| [[::UEC/StorageController/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/sr | • {{#if: UbuntuHelp:UEC/StorageController|српски / srpski| [[::UEC/StorageController/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/sv | • {{#if: UbuntuHelp:UEC/StorageController|svenska| [[::UEC/StorageController/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/th | • {{#if: UbuntuHelp:UEC/StorageController|ไทย| [[::UEC/StorageController/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/tr | • {{#if: UbuntuHelp:UEC/StorageController|Türkçe| [[::UEC/StorageController/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/vi | • {{#if: UbuntuHelp:UEC/StorageController|Tiếng Việt| [[::UEC/StorageController/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/yue | • {{#if: UbuntuHelp:UEC/StorageController|粵語| [[::UEC/StorageController/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/zh | • {{#if: UbuntuHelp:UEC/StorageController|中文| [[::UEC/StorageController/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/zh-hans | • {{#if: UbuntuHelp:UEC/StorageController|中文(简体)| [[::UEC/StorageController/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/StorageController | UbuntuHelp:UEC/StorageController | {{#if: | :}}UEC/StorageController}}/zh-hant | • {{#if: UbuntuHelp:UEC/StorageController|中文(繁體)| [[::UEC/StorageController/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UEC/StorageController|:UEC/StorageController|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UEC/StorageController/zh | | {{#ifexist: UEC/StorageController/zh | | {{#ifeq: {{#titleparts:UEC/StorageController|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UEC/StorageController|1|-1|}} | zh | | }}
Objectives
This page describes how you can use UEC's Storage Controller (SC) functionality after you have installed UEC. The Storage Controller provides functionality which are similar to Amazon's EBS (Elastic Block Storage), allow you to mount block devices (virtual hard disks) to your images.
Update default configuration (if needed)
If you installed UEC from CD and you have a separate physical interface to connect your front-end to your node controllers, in order to use Storage Controller functionality you must be sure that your Storage Controller is registered to use your private interface. You can do this via the web interface under Configuration -> Clusters -> Storage Controller. Make sure the IP address listed under Host is the IP address for your private interface, and the Interface listed is the physical interface to the private network. To do this from the command line, do
sudo euca_conf --deregister-sc <public IP> sudo euca_conf --register-sc <your cluster name> <private IP>
Please note that any volumes you have created before doing this will need to be removed using euca-delete-volume because they will not work and will just take up space on your front-end.
Using the Storage Controller
In order to use a virtual volume, you need to:
- create the volume
- use it
Creating Volumes
To create a UEC SC volume,
euca-create-volume -s 1 -z myzone
where -s specifies size in GB, and -z specifies the name of your UEC availability zone as shown when you do a:
euca-describe-availability-zones
This will return the word VOLUME and the name of your UEC SC volume:
VOLUME vol-xxxxxxxx
Using Volumes
To attach a volume to a running instance:
euca-attach-volume -i i-xxxxxxxx -d /dev/sdb vol-xxxxxxxx
where -i is the instance identifier, -d is the device name you are requesting to be assigned to your SC volume. After you have done this, when you do a
euca-describe-volumes
you should see something like this:
VOLUME vol-xxxxxxxx 1 myzone in-use 2009-10-23T14:41:47.375Z ATTACHMENT vol-xxxxxxxx i-xxxxxxxx /dev/sdb 2009-10-23T14:42:10.274Z
You should then be able to ssh into your instance, look in the /dev directory to make sure your device is there (it is possible it may have been assigned a different name - i.e. you may request /dev/sdh and it may assign it as /dev/sdb), and you can
sudo fdisk /dev/sdb
You will be able to partition, format, mount and use the volume just like a physically attached device.