Doporučuji:
Galerie fotek
Notebooky
Webdesign Praha
www.eprdel.cz
www.root.cz
Lumimont
A
Muj postup pro vykopirovani dat....
# losetup /dev/loop0 /dev/i2o/hda3
# kpartx -a /dev/loop0
# vgscan
# lvscan
# lvchange -ay /dev/VolGroup00/LogVol00
# mount /dev/VolGroup00/LogVol00 /mnt/
Jinak z...
Procedure
1. Determine the metadata to identify the XenVM whose filesystem you want to mount.
a. Get the universal unique identifier (UUID) of the XenVM (indicated in red in the example) by executing the xe host-vm-list command from the XenServer Host Text Console:
b. Get the corresponding Storage Repository (SR) ID (indicated in blue in the example below) and the Virtual Disk Image (VDI) UUID by executing the sm info command:
The device value [/SR-2c1368a0-c747-45ee-bffb-80730300c420/images/ce866489-1c3a-42e1-9f94-0526281f8b6c.sda] is a symlink to the VDI device:
#ls -la SR*
lrwxrwxrwx 1 root root 99 Feb 5 11:28 /SR-2c1368a0-c747-45ee-bffb-80730300c420/images/ce866489-1c3a-42e1-9f94-0526281f8b6c.sda -> /dev/VG_XenStorage-2c1368a0-c747-45ee-bffb-80730300c420/LV-ce866489-1c3a-42e1-9f94-0526281f8b6c.sda
In general, the VDI UUID has the form:
/dev/VG_XenStorage-volumegroup_uuid/LV-logical_volume_uuid.sda
2. Set up a loopback device and associate it with the VDI:
losetup /dev/loop0 \ /dev/VG_XenStorage-80d020bc-54e8-45a9-b398-9a54daf29402/LV-82fed496-d057-4f48-b973-364582d80bf5.sda
This creates a loopback device /dev/loop0
(This step is not strictly necesssary - you can directly map the partitions - but this method is recommended as it helps avoid burdensome long names which can lead to confusion.)
3. Use the fdisk -l command to see the partitions in the loopback device:
# fdisk -l /dev/loop0
4. Create device maps from partition tables using the kpartx command:
# kpartx -a /dev/loop0
This adds partition mapping under /dev/mapper with the name loop0p1. You can verify this using the command:
# ls -l /dev/mapper/loop0p1
5. Mount this mapping on a directory in the XenServer Host and access the data:
# mount /dev/mapper/loop0p1 /mnt
Zdroje: