# AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: Fedora Virtualization Guide\n" "POT-Creation-Date: 2011-03-02T01:07:52\n" "PO-Revision-Date: 2011-08-21 11:30+0000\n" "Last-Translator: Automatically generated\n" "Language-Team: Finnish (http://www.transifex.net/projects/p/fedora/team/fi/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" #. Tag: title #, no-c-format msgid "iSCSI-based storage pools" msgstr "" #. Tag: para #, no-c-format msgid "" "This section covers using iSCSI-based devices to store virtualized guests." msgstr "" #. Tag: para #, no-c-format msgid "" "iSCSI (Internet Small Computer System Interface) is a network protocol for " "sharing storage devices. iSCSI connects initiators (storage clients) to " "targets (storage servers) using SCSI instructions over the IP layer. For " "more information and background on the iSCSI protocol refer to wikipedia's iSCSI " "article." msgstr "" #. Tag: title #, no-c-format msgid "Configuring a software iSCSI target" msgstr "" #. Tag: para #, no-c-format msgid "" "Fedora provides a tool for creating software backed iSCSI targets, the " "scsi-target-utils package." msgstr "" #. Tag: title #, no-c-format msgid "Creating an iSCSI target" msgstr "" #. Tag: title #, no-c-format msgid "Install the required packages" msgstr "" #. Tag: para #, no-c-format msgid "" "Install the scsi-target-utils package and all " "dependencies" msgstr "" #. Tag: screen #, no-c-format msgid "# yum install scsi-target-utils" msgstr "" #. Tag: title #, no-c-format msgid "Start the tgtd service" msgstr "" #. Tag: para #, no-c-format msgid "" "The tgtd service hosts SCSI targets and uses the iSCSI " "protocol to host targets. Start the tgtd service and make" " the service persistent after restarting with the " "chkconfig command." msgstr "" #. Tag: screen #, no-c-format msgid "" "# service tgtd start\n" "# chkconfig tgtd on" msgstr "" #. Tag: title #, no-c-format msgid "Optional: Create LVM volumes" msgstr "" #. Tag: para #, no-c-format msgid "" "LVM volumes are useful for iSCSI backing images. LVM snapshots and resizing " "can be beneficial for virtualized guests. This example creates an LVM image " "named virtimage1 on a new volume group named " "virtstore on a RAID5 array for hosting " "virtualized guests with iSCSI." msgstr "" #. Tag: title #, no-c-format msgid "Create the RAID array" msgstr "" #. Tag: para #, no-c-format msgid "" "Creating software RAID5 arrays is covered by the Fedora " "Deployment Guide." msgstr "" #. Tag: title #, no-c-format msgid "Create the LVM volume group" msgstr "" #. Tag: para #, no-c-format msgid "" "Create a volume group named virtstore with the " "vgcreate command." msgstr "" #. Tag: screen #, no-c-format msgid "# vgcreate virtstore /dev/md1" msgstr "" #. Tag: title #, no-c-format msgid "Create a LVM logical volume" msgstr "" #. Tag: para #, no-c-format msgid "" "Create a logical volume group named virtimage1 on" " the virtstore volume group with a size of 20GB " "using the lvcreate command." msgstr "" #. Tag: screen #, no-c-format msgid "" "# lvcreate --size 20G -n virtimage1\n" "\t\t\t\t\t\t\tvirtstore\n" "\t\t\t\t\t\t" msgstr "" #. Tag: para #, no-c-format msgid "" "The new logical volume, virtimage1, is ready to " "use for iSCSI." msgstr "" #. Tag: title #, no-c-format msgid "Optional: Create file-based images" msgstr "" #. Tag: para #, no-c-format msgid "" "File-based storage is sufficient for testing but is not recommended for " "production environments or any significant I/O activity. This optional " "procedure creates a file based imaged named " "virtimage2.img for an iSCSI target." msgstr "" #. Tag: title #, no-c-format msgid "Create a new directory for the image" msgstr "" #. Tag: para #, no-c-format msgid "" "Create a new directory to store the image. The directory must have the " "correct SELinux contexts." msgstr "" #. Tag: screen #, no-c-format msgid "" "# mkdir -p /var/lib/tgtd/virtualization\n" "\t\t\t\t\t\t" msgstr "" #. Tag: title #, no-c-format msgid "Create the image file" msgstr "" #. Tag: para #, no-c-format msgid "" "Create an image named virtimage2.img with a size " "of 10GB." msgstr "" #. Tag: screen #, no-c-format msgid "" "# dd if=/dev/zero " "of=/var/lib/tgtd/virtualization/virtimage2.img" " bs=1M seek=10000 count=0" msgstr "" #. Tag: title #, no-c-format msgid "Configure SELinux file contexts" msgstr "" #. Tag: para #, no-c-format msgid "Configure the correct SELinux context for the new image and directory." msgstr "" #. Tag: screen #, no-c-format msgid "# restorecon -R /var/lib/tgtd" msgstr "" #. Tag: para #, no-c-format msgid "" "The new file-based image, virtimage2.img, is " "ready to use for iSCSI." msgstr "" #. Tag: title #, no-c-format msgid "Create targets" msgstr "" #. Tag: para #, no-c-format msgid "" "Targets can be created by adding a XML entry to the " "/etc/tgt/targets.conf file. The " "target attribute requires an iSCSI " "Qualified Name (IQN). The IQN is in the format:" msgstr "" #. Tag: screen #, no-c-format msgid "" "iqn.yyyy-mm.reversed domain name:optional identifier text\n" "\t\t\t\t" msgstr "" #. Tag: para #, no-c-format msgid "Where:" msgstr "" #. Tag: para #, no-c-format msgid "" "yyyy-mm represents the" " year and month the device was started (for example: " "2010-05);" msgstr "" #. Tag: para #, no-c-format msgid "" "reversed domain name is the hosts domain name in " "reverse (for example server1.example.com in an " "IQN would be com.example.server1); and" msgstr "" #. Tag: para #, no-c-format msgid "" "optional identifier text is any text string, " "without spaces, that assists the administrator in identifying devices or " "hardware." msgstr "" #. Tag: para #, no-c-format msgid "" "This example creates iSCSI targets for the two types of images created in " "the optional steps on server1.example.com with an" " optional identifier trial. Add the following to " "the /etc/tgt/targets.conf file." msgstr "" #. Tag: screen #, no-c-format msgid "" "<target iqn.2010-05.com.example.server1:trial>\n" "backing-store /dev/virtstore/virtimage1 #LUN 1\n" "backing-store /var/lib/tgtd/virtualization/virtimage2.img #LUN 2\n" "write-cache off\n" "</target>" msgstr "" #. Tag: para #, no-c-format msgid "" "Ensure that the /etc/tgt/targets.conf file contains the" " default-driver iscsi line to set the " "driver type as iSCSI. The driver uses iSCSI by default." msgstr "" #. Tag: title #, no-c-format msgid "Important" msgstr "" #. Tag: para #, no-c-format msgid "" "This example creates a globally accessible target without access control. " "Refer to the scsi-target-utils for information on implementing secure " "access." msgstr "" #. Tag: title #, no-c-format msgid "Restart the tgtd service" msgstr "" #. Tag: para #, no-c-format msgid "" "Restart the tgtd service to reload" " the configuration changes." msgstr "" #. Tag: screen #, no-c-format msgid "# service tgtd restart" msgstr "" #. Tag: title #, no-c-format msgid "iptables configuration" msgstr "" #. Tag: para #, no-c-format msgid "Open port 3260 for iSCSI access with iptables." msgstr "" #. Tag: screen #, no-c-format msgid "" "# iptables -I INPUT -p tcp -m tcp --dport 3260 -j ACCEPT\n" "# service iptables save\n" "# service iptables restart" msgstr "" #. Tag: title #, no-c-format msgid "Verify the new targets" msgstr "" #. Tag: para #, no-c-format msgid "" "View the new targets to ensure the setup was success with the tgt-" "admin --show command." msgstr "" #. Tag: screen #, no-c-format msgid "" "# tgt-admin --show\n" "Target 1: iqn.2010-05.com.example.server1:trial\n" "System information:\n" "Driver: iscsi\n" "State: ready\n" "I_T nexus information:\n" "LUN information:\n" "LUN: 0\n" " Type: controller\n" " SCSI ID: IET 00010000\n" " SCSI SN: beaf10\n" " Size: 0 MB\n" " Online: Yes\n" " Removable media: No\n" " Backing store type: rdwr\n" " Backing store path: None\n" "LUN: 1\n" " Type: disk\n" " SCSI ID: IET 00010001\n" " SCSI SN: beaf11\n" " Size: 20000 MB\n" " Online: Yes\n" " Removable media: No\n" " Backing store type: rdwr\n" " Backing store path: /dev/virtstore/virtimage1\n" "LUN: 2\n" " Type: disk\n" " SCSI ID: IET 00010002\n" " SCSI SN: beaf12\n" " Size: 10000 MB\n" " Online: Yes\n" " Removable media: No\n" " Backing store type: rdwr\n" " Backing store path: /var/lib/tgtd/virtualization/virtimage2.img\n" "Account information:\n" "ACL information:\n" "ALL" msgstr "" #. Tag: title #, no-c-format msgid "Security warning" msgstr "" #. Tag: para #, no-c-format msgid "" "The ACL list is set to all. This allows all systems on the local network to " "access this device. It is recommended to set host access ACLs for production" " environments." msgstr "" #. Tag: title #, no-c-format msgid "Optional: Test discovery" msgstr "" #. Tag: para #, no-c-format msgid "Test whether the new iSCSI device is discoverable." msgstr "" #. Tag: screen #, no-c-format msgid "" "# iscsiadm --mode discovery --type sendtargets --portal server1.example.com\n" "127.0.0.1:3260,1 iqn.2010-05.com.example.server1:trial1" msgstr "" #. Tag: title #, no-c-format msgid "Optional: Test attaching the device" msgstr "" #. Tag: para #, no-c-format msgid "" "Attach the new device " "(iqn.2010-05.com.example.server1:trial1) to " "determine whether the device can be attached." msgstr "" #. Tag: screen #, no-c-format msgid "" "# iscsiadm -d2 -m node --login\n" "scsiadm: Max file limits 1024 1024\n" "\n" "Logging in to [iface: default, target: iqn.2010-05.com.example.server1:trial1, portal: 10.0.0.1,3260]\n" "Login to [iface: default, target: iqn.2010-05.com.example.server1:trial1, portal: 10.0.0.1,3260] successful." msgstr "" #. Tag: para #, no-c-format msgid "Detach the device." msgstr "" #. Tag: screen #, no-c-format msgid "" "# iscsiadm -d2 -m node --logout\n" "scsiadm: Max file limits 1024 1024\n" "\n" "Logging out of session [sid: 2, target: iqn.2010-05.com.example.server1:trial1, portal: 10.0.0.1,3260\n" "Logout of [sid: 2, target: iqn.2010-05.com.example.server1:trial1, portal: 10.0.0.1,3260] successful." msgstr "" #. Tag: para #, no-c-format msgid "An iSCSI device is now ready to use for virtualization." msgstr "" #. Tag: title #, no-c-format msgid "Adding an iSCSI target to virt-manager" msgstr "" #. Tag: para #, no-c-format msgid "" "This procedure covers creating a storage pool with an iSCSI target in " "virt-manager." msgstr "" #. Tag: title #, no-c-format msgid "Adding an iSCSI device to virt-manager" msgstr "" #. Tag: title #, no-c-format msgid "Open the host storage tab" msgstr "" #. Tag: para #, no-c-format msgid "" "Open the Storage tab in the Host " "Details window." msgstr "" #. Tag: para #, no-c-format msgid "Open virt-manager." msgstr "" #. Tag: para #, no-c-format msgid "Select a host from the main virt-manager window." msgstr "" #. Tag: para #, no-c-format msgid "Open the Edit menu and select Host Details." msgstr "" #. Tag: para #, no-c-format msgid "Click on the Storage tab of the Host Details window." msgstr "" #. Tag: title #, no-c-format msgid "Add a new pool (part 1)" msgstr "" #. Tag: para #, no-c-format msgid "" "Press the + button (the add pool button). The " "Add a New Storage Pool wizard appears." msgstr "" #. Tag: para #, no-c-format msgid "" "Choose a name for the storage pool, change the Type to iscsi, and press " "Forward to continue." msgstr "" #. Tag: title #, no-c-format msgid "Add a new pool (part 2)" msgstr "" #. Tag: para #, no-c-format msgid "" "Enter the target path for the device, the host name of the target and the " "source path (the IQN). The Format option is not " "available as formatting is handled by the guests. It is not advised to edit " "the Target Path. The default target path value, " "/dev/disk/by-path/, adds the drive path to that folder." " The target path should be the same on all hosts for migration." msgstr "" #. Tag: para #, no-c-format msgid "" "Enter the hostname or IP address of the iSCSI target. This example uses " "server1.example.com." msgstr "" #. Tag: para #, no-c-format msgid "" "Enter the source path, the IQN for the iSCSI target. This example uses " "iqn.2010-05.com.example.server1:trial1." msgstr "" #. Tag: para #, no-c-format msgid "Press Finish to create the new storage pool." msgstr "" #. Tag: title #, no-c-format msgid "Creating an iSCSI-based storage pool with virsh" msgstr "" #. Tag: title #, no-c-format msgid "Create the storage pool definition" msgstr "" #. Tag: para #, no-c-format msgid "" "The example below is an XML definition file for a iSCSI-based storage pool." msgstr "" #. Tag: term #, no-c-format msgid "<name>trial1</name>" msgstr "" #. Tag: para #, no-c-format msgid "" "The name element sets the name for the storage pool. The " "name is required and must be unique." msgstr "" #. Tag: term #, no-c-format msgid "<uuid>afcc5367-6770-e151-bcb3-847bc36c5e28</uuid>T" msgstr "" #. Tag: para #, no-c-format msgid "" "The optional uuid element provides a unique global " "identifier for the storage pool. The uuid element can " "contain any valid UUID or an existing UUID for the storage device. If a UUID" " is not provided, virsh will generate a UUID for the " "storage pool." msgstr "" #. Tag: term #, no-c-format msgid "<host name='server1.example.com'/>" msgstr "" #. Tag: para #, no-c-format msgid "" "The host element with the name " "attribute specifies the hostname of the iSCSI server. The " "host element attribute can contain a " "port attribute for a non-standard iSCSI protocol port" " number." msgstr "" #. Tag: term #, no-c-format msgid "" "<device " "path='iqn.2010-05.com.example.server1:trial1'/>" msgstr "" #. Tag: para #, no-c-format msgid "" "The device element path attribute " "must contain the IQN for the iSCSI server." msgstr "" #. Tag: para #, no-c-format msgid "" "With a text editor, create an XML file for the iSCSI storage pool. This " "example uses a XML definition named trial1.xml." msgstr "" #. Tag: screen #, no-c-format msgid "" "<pool type='iscsi'>\n" " <name>trial1</name>\n" " <uuid>afcc5367-6770-e151-bcb3-847bc36c5e28</uuid>\n" " <source>\n" " <host name='server1.example.com'/>\n" " <device path='iqn.2010-05.com.example.server1:trial1'/>\n" " </source>\n" " <target>\n" " <path>/dev/disk/by-path</path>\n" " </target>\n" "</pool>" msgstr "" #. Tag: para #, no-c-format msgid "" "Use the pool-define command to define the storage pool " "but not start it." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-define trial1.xml\n" "Pool trial1 defined\n" msgstr "" #. Tag: title #, no-c-format msgid "" "Alternative step: Use pool-define-as to " "define the pool from the command line" msgstr "" #. Tag: para #, no-c-format msgid "" "Storage pool definitions can be created with the virsh " "command line tool. Creating storage pools with virsh is " "useful for systems administrators using scripts to create multiple storage " "pools." msgstr "" #. Tag: para #, no-c-format msgid "" "The virsh pool-define-as command has several parameters " "which are accepted in the following format:" msgstr "" #. Tag: screen #, no-c-format msgid "" "virsh pool-define-as name type source-host source-path source-dev" " source-name target" msgstr "" #. Tag: para #, no-c-format msgid "" "The type, iscsi, defines this pool as an iSCSI based " "storage pool. The name parameter must be unique and " "sets the name for the storage pool. The source-host " "and source-path parameters are the hostname and iSCSI" " IQN respectively. The source-dev and source-name parameters are not required for iSCSI-based pools, " "use a - character to leave the field blank. The " "target parameter defines the location for " "mounting the iSCSI device on the host." msgstr "" #. Tag: para #, no-c-format msgid "" "The example below creates the same iSCSI-based storage pool as the previous " "step." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-define-as trial1 iscsi server1.example.com iqn.2010-05.com.example.server1:trial1 - - /dev/disk/by-path\n" "Pool trial1 defined" msgstr "" #. Tag: title #, no-c-format msgid "Verify the storage pool is listed" msgstr "" #. Tag: para #, no-c-format msgid "" "Verify the storage pool object is created correctly and the state reports as" " inactive." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "trial1 inactive no " msgstr "" #. Tag: title #, no-c-format msgid "Start the storage pool" msgstr "" #. Tag: para #, no-c-format msgid "" "Use the virsh command pool-start for this. pool-" "start enables a directory storage pool, allowing it to be used for" " volumes and guests." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-start guest_images_disk\n" "Pool guest_images_disk started\n" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "trial1 active no \n" msgstr "" #. Tag: title #, no-c-format msgid "Turn on autostart" msgstr "" #. Tag: para #, no-c-format msgid "" "Turn on autostart for the storage pool. Autostart " "configures the libvirtd service to" " start the storage pool when the service starts." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-autostart trial1\n" "Pool trial1 marked as autostarted" msgstr "" #. Tag: para #, no-c-format msgid "" "Verify that the trial1 pool has autostart set:" msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-list --all\n" "Name State Autostart \n" "-----------------------------------------\n" "default active yes \n" "trial1 active yes \n" msgstr "" #. Tag: title #, no-c-format msgid "Verify the storage pool configuration" msgstr "" #. Tag: para #, no-c-format msgid "" "Verify the storage pool was created correctly, the sizes reported correctly," " and the state reports as running." msgstr "" #. Tag: screen #, no-c-format msgid "" "# virsh pool-info trial1\n" "Name: trial1\n" "UUID: afcc5367-6770-e151-bcb3-847bc36c5e28\n" "State: running\n" "Persistent: unknown\n" "Autostart: yes\n" "Capacity: 100.31 GB\n" "Allocation: 0.00\n" "Available: 100.31 GB\n" msgstr "" #. Tag: para #, no-c-format msgid "An iSCSI-based storage pool is now available." msgstr ""