Страница 1 из 1

oVirt Import Storage Domain clear metadata (dom_md)

Добавлено: 01 авг 2018 08:05
Леонид Альбов
Если не импортируется storage domain с ошибкой Cannot acquire host
Суть в том, что при импорте engine "почему-то" не может снять блокировку.

В папке /<sdid>/dom_md есть файлы, которые описывают блокировки и метадату:
ids - без этого файла домен не импортируется
inbox
leases
metadata - без этого файла домен не импортируется
outbox
xleases

Мне помог такой способ импорта сбойного домена:
1. Переносим файлы inbox, leases, outbox. xleases во временную папку.
2. Импортируем домен и получаем ошибку lock (невозможно установить блокировку)
Домен будет в статусе unatached
3. Возвращаем файлы inbox, leases, outbox. xleases на место
4. Идем в Data Centr и нажимаем Atach Data
Наш домен успешно активируется.

Применять на свой страх и риск! Никаких гарантий нет!

Есть еще такая инструкция (я не пробовал):

Код: Выделить всё

> > You can do this:
> > 
> > 1. Put the gluster domain to maintenance (via engine)
> > 
> > No host should access it while you reconstruct the ids file
> > 
> > 2. Mount the gluster volume manually
> > 
> > mkdir repair
> > mount -t glusterfs <server>:/<path> repair/
> > 
> > 3. Create the file:
> > 
> > touch repair/<sd_uuid>/dom_md/ids
> > 
> > 4. Initialize the lockspace
> > 
> > sanlock direct init -s <sd_uuid>:0:repair/<sd_uuid>/dom_md/ids:0
> > 
> > 5. Unmount the gluster volume
> > 
> > umount repair
> > 
> > 6. Activate the gluster domain (via engine)
> > 
> > The domain should become active after a while.

Re: oVirt Import Storage Domain clear metadata (dom_md)

Добавлено: 01 авг 2018 21:46
Леонид Альбов
а вот и офиц. дока нашлась:
"How to clear the storage domain pool config of an exported nfs domain"
https://www.ovirt.org/documentation/how ... fs-domain/

Код: Выделить всё

Edit the file

/path/to/nfsexport/storagedomain/dom_md/metadata
Ensure that the value for "pool uuid" is empty

POOL_UUID=
And ensure that the sha checksum is completely removed - the line must not exist in that file

_SHA_CKSUM
Finally, add a new NFS Export Domain to your new HV / Data Center as you did to your previous host, oVirt Manager should detect that a storage domain exists, once activated you'll be able to re-import the VMs into your new HV / Data Center.