T
T
Terotgut2013-05-14 15:08:17
ZFS
Terotgut, 2013-05-14 15:08:17

Recovering a virtual disk on xenserver

Good afternoon!

Background - there is xenserver, on it 2 physical disks of 2 TB each are forwarded to the virtual machine on which FreeNas is installed. On a virtual machine, these two disks are combined into one array (zfs) and all this is given to the local network as CIFS.

There was an email failure at home, the computer rebooted and the network drive became inaccessible. FreeNas swears that it cannot get information about the size of the disk, in the log when loading the virtual machine (which lasts for many hours) there are messages

GEOM: ada2: the secondary GPT table is corrupt or invalid. GEOM: ada2: using the primary only -- recovery suggested.

“gpart recover ada2” does not give anything - the error “Input / Output error” crashes

I also tried using gdisk under Linux to check the table sections-errors did not show in gpt tables, while messages “Buffer I / O error on device ....” go to the console without interruption

At the same time, everything is OK with the physical disk (you can make 1 more logical disk and it will be normally available).

Who knows, please tell me how else you can try (it is possible to throw a damaged logical disk into any OS)

PS: there are no backups :(

Answer the question

In order to leave comments, you need to log in

7 answer(s)
P
Puma Thailand, 2013-05-15
@opium

Was everything built with mirroring in zfs?
Look at the errors in the host system, there is a high probability that io errors are coming.

T
Terotgut, 2013-05-15
@Terotgut

zfs was built with more disk space.
There are no I/O errors on the host (xenserver)

V
Vladislav, 2013-05-22
@click0

Try to run mfsbsd, forward these disks there, and let's check the GPT labels.
It is possible that the xfs pool will bud in it.

V
Vladislav, 2013-05-23
@click0

gpart labels and sizes match?

T
Terotgut, 2013-05-23
@Terotgut

Here is the error when trying to import a pool illumos.org/msg/ZFS-8000-6x

T
Terotgut, 2013-05-26
@Terotgut

zpool import -fF share gives the output: cannot import 'share': one or more devices is currently unavailable
zpool import -fFn share does not print anything to the console.

T
Terotgut, 2013-06-05
@Terotgut

Another interesting fact:

dd if=/dev/ada2 of=/dev/null count=1000
1000+0 records in
1000+0 records out
...

dd if=/dev/ada2p2 of=/dev/null count=1000
<Ошибки ввода/вывода>

Those. with the logical drive itself everything seems to be ok. The partition with zfs was damaged. Do you think it might be worth trying something like this www.lissyara.su/articles/freebsd/file_system/zfs_recovery/ ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question