где xenserver хранит снимки виртуальной машины?

22338
Flotsam N. Jetsam

Я ssh'd в xenserver и пытаюсь найти моментальные снимки, используя «find / scripts | grep -i string», где string - это то, что я назвал моментальным снимком, когда я сделал его в xencenter. Этот метод не работает, поэтому я хочу знать, где xenserver хранит сделанные мной снимки?

3

3 ответа на вопрос

2
Flotsam N. Jetsam

Я наконец получил ответ с форума Citrix:

«Нет файлов моментальных снимков. Виртуальные диски (включая моментальные снимки) в LVM SR хранятся как тома. Вы можете управлять томами с помощью команд в пакете lvm2 (запустите rpm -vV lvm2, чтобы увидеть включенные команды)».

Вот полная тема.

2
nextgentech

I know this is late to the game, but there is an option to use an Ext3 filesystem based Storage Repository when installing XenServer. If this is done then the VM disks are actual VHD files stored in /var/run/sr-mount/<UUID OF SR>.

This also allows for thin provisioning, something supported in Ext3, NFS, and other more enterprise level SR types, but not supported with the default LVM SR type.

During the install, when choosing the disk(s) to use for virtual machine storage, make sure to select "Enable thin provisioning (Optimized storage for XenDesktop)". Even if you aren't going to be using XenDesktop this still is the option that enables the Ext3-based SR versus the default LVM.

For more details, see:
Citrix XenServer 6.1.0 Installation Guide
Citrix XenServer 6.1.0 Administrator's Guide

Search for "ext3" and "thin provisioning" in those documents.

For someone who might want to attempt switching an existing install from an LVM SR to an Ext3 SR, look under the "Converting an Existing Host to Use Thin Provisioning" section in the Installation Guide, though be fully aware that this will DESTROY any existing data and VMs in the LVM SR. So you need to back up or migrate any VMs out of the existing SR before making the switch.

In case Citrix changes the links for the documents, or when new XenServer versions become available, just search Google for "Xenserver Installation Guide" or "Xenserver Administrator's Guide" and it should be pretty easy to find.

Интересная информация У вас есть ссылка, показывающая эту опцию? Помогу сделать отличный ответ. Lizz 11 лет назад 0
@Lizz Я обновил ответ с более подробной информацией и ссылками на соответствующие документы Citrix. nextgentech 11 лет назад 0
1
rymo

Краткий ответ: это, вероятно, не файл, который вы можете найти | grep.

Хранение моментальных снимков XenServer зависит от типа используемого хранилища (SR), а также номера версии Xen, под которым изначально был создан SR. Эта белая бумага предоставляет все кровавые детали.

Если вы в ssh'd в dom0, команда xe vdi-list is-a-snapshot=trueможет начать вас в правильном направлении.

Похожие вопросы