Skip to contentSkip to conversation

unable to mount multi disk volume with recovery mode

DISCUSSION Ivan 3 participants 7 messages Sep 4, 2015 – Sep 7, 2015 Btrfs file system

lore
Share & tools
lore

Ivan

author
#0 lore raw

Just to add this:

ivan@ipplus-dev:~$ sudo btrfs filesystem df /mnt/ambis/
Data, single: total=108.76GiB, used=107.11GiB
System, single: total=32.00MiB, used=20.00KiB
Metadata, single: total=3.00GiB, used=2.34GiB
ivan@ipplus-dev:~$ 
#1 lore raw
Quoted 8 lines · Ivan

Just to add this:

ivan@ipplus-dev:~$ sudo btrfs filesystem df /mnt/ambis/
Data, single: total=108.76GiB, used=107.11GiB
System, single: total=32.00MiB, used=20.00KiB
Metadata, single: total=3.00GiB, used=2.34GiB
ivan@ipplus-dev:~$ 

(If you can't mount the FS, how did you get this output? -- In what
I say below, I'm asuming that this was the last output from btrfs fi df on the broken filesystem before it broke).

This is the problem: You're using single for everything. That means
that with the loss of one device, approximately one part in three of your filesystem is missing, including the metadata. If the missing drive is truly broken, this filesystem is dead, without any good means of recovery. You'll need to use your backups.

You would have to have RAID-1 system and metadata for the FS to be
even partly recoverable with a missing device. (Or RAID-10, -5 or -6).

Hugo.

Signature · 4 lines
Hugo Mills             | "There's more than one way to do it" is not a
hugo@... carfax.org.uk | commandment. It is a dire warning.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |
#2 lore raw

I don't know... but after btrfs-zero-log now I can't:

ivan@ipplus-dev:~$ sudo btrfs filesystem df /dev/sdb
[sudo] password for ivan:
ERROR: couldn't get space info - Inappropriate ioctl for device
ERROR: get_df failed Inappropriate ioctl for device
ivan@ipplus-dev:~$

So you're saying that I can't make first and third partition to work with it's data? Maybe I'll try with btrfs-restore, do you think it can rescue this 2 drives?

Thanks

2015-09-04 23:17 GMT+02:00 Hugo Mills <[email protected]>:

Quoted 30 lines · Ivan
Quoted 8 lines

Just to add this:

ivan@ipplus-dev:~$ sudo btrfs filesystem df /mnt/ambis/
Data, single: total=108.76GiB, used=107.11GiB
System, single: total=32.00MiB, used=20.00KiB
Metadata, single: total=3.00GiB, used=2.34GiB
ivan@ipplus-dev:~$

(If you can't mount the FS, how did you get this output? -- In what
I say below, I'm asuming that this was the last output from btrfs fi df on the broken filesystem before it broke).

This is the problem: You're using single for everything. That means
that with the loss of one device, approximately one part in three of your filesystem is missing, including the metadata. If the missing drive is truly broken, this filesystem is dead, without any good means of recovery. You'll need to use your backups.

You would have to have RAID-1 system and metadata for the FS to be
even partly recoverable with a missing device. (Or RAID-10, -5 or -6).

Hugo.

--

Hugo Mills             | "There's more than one way to do it" is not a
hugo@... carfax.org.uk | commandment. It is a dire warning.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |
Signature · 14 lines
Ivan Petrović

IP PLUS STUDIO
Vojvode Stepe 403v, 11221 Beograd, Srbija
T: +381 11 630 2853
F: +381 11 630 2853
www.ipplus.rs

-- 
IP PLUS STUDIO
Vojvode Stepe 403v, 11221 Beograd, Srbija
T: +381 11 630 2853
F: +381 11 630 2853
www.ipplus.rs
#3 lore raw
Quoted 7 lines · Ivan Petrovic

I don't know... but after btrfs-zero-log now I can't:

ivan@ipplus-dev:~$ sudo btrfs filesystem df /dev/sdb
[sudo] password for ivan:
ERROR: couldn't get space info - Inappropriate ioctl for device
ERROR: get_df failed Inappropriate ioctl for device
ivan@ipplus-dev:~$

You can only use this command while the FS is mounted, and you
can't give it a device, only a mountpoint.

Also, note that btrfs-zero-log won't help you at all here. It's not
a magic "fix everything for me" tool.

Quoted 3 lines

So you're saying that I can't make first and third partition to work with it's data? Maybe I'll try with btrfs-restore, do you think it can rescue this 2 drives?

Unlikely. Like I said, if the FS was using single storage for
everything, a random 33% of the filesystem has gone away. There's probably not enough of it left to make anything coherent.

Hugo.

Quoted 28 lines

Thanks

2015-09-04 23:17 GMT+02:00 Hugo Mills <[email protected]>:

Quoted 25 lines · Ivan
Quoted 8 lines

Just to add this:

ivan@ipplus-dev:~$ sudo btrfs filesystem df /mnt/ambis/
Data, single: total=108.76GiB, used=107.11GiB
System, single: total=32.00MiB, used=20.00KiB
Metadata, single: total=3.00GiB, used=2.34GiB
ivan@ipplus-dev:~$

(If you can't mount the FS, how did you get this output? -- In what
I say below, I'm asuming that this was the last output from btrfs fi df on the broken filesystem before it broke).

This is the problem: You're using single for everything. That means
that with the loss of one device, approximately one part in three of your filesystem is missing, including the metadata. If the missing drive is truly broken, this filesystem is dead, without any good means of recovery. You'll need to use your backups.

You would have to have RAID-1 system and metadata for the FS to be
even partly recoverable with a missing device. (Or RAID-10, -5 or -6).

Hugo.

Signature · 4 lines
Hugo Mills             | Preventing talpidian orogenesis.
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |
#4 lore raw
Quoted 9 lines · Hugo Mills
Quoted 3 lines · Ivan Petrovic

So you're saying that I can't make first and third partition to work with it's data? Maybe I'll try with btrfs-restore, do you think it can rescue this 2 drives?

Unlikely. Like I said, if the FS was using single storage for
everything, a random 33% of the filesystem has gone away. There's probably not enough of it left to make anything coherent.

With single profile for everything, is metadata and data guaranteed to be co-located on the same device? If not, then there's no way for this to be recovered. If they are, then I think recovery would depend on the system chunk always being device-n mirrored, which we don't have.

Signature · 1 line
Chris Murphy
#5 lore raw
Quoted 7 lines · Chris Murphy
Quoted 6 lines · Hugo Mills
Quoted 3 lines · Ivan Petrovic

So you're saying that I can't make first and third partition to work with it's data? Maybe I'll try with btrfs-restore, do you think it can rescue this 2 drives?

Quoted 8 lines
Quoted 3 lines

Unlikely. Like I said, if the FS was using single storage for
everything, a random 33% of the filesystem has gone away. There's probably not enough of it left to make anything coherent.

With single profile for everything, is metadata and data guaranteed to be co-located on the same device? If not, then there's no way for this to be recovered. If they are, then I think recovery would depend on the system chunk always being device-n mirrored, which we don't have.

Sorry. In single device failure, raid1 system chunk is possible and might help. But to be able to recover data from any surviving drive (n-1 failures) would mean each device has a copy of the system chunk, in addition to guaranteed co-location of data and metadata chunks.

Signature · 1 line
Chris Murphy
#6 lore raw
In reply to Chris Murphy
Quoted 7 lines · Chris Murphy
Quoted 6 lines · Hugo Mills
Quoted 3 lines · Ivan Petrovic

So you're saying that I can't make first and third partition to work with it's data? Maybe I'll try with btrfs-restore, do you think it can rescue this 2 drives?

Quoted 8 lines
Quoted 3 lines

Unlikely. Like I said, if the FS was using single storage for
everything, a random 33% of the filesystem has gone away. There's probably not enough of it left to make anything coherent.

With single profile for everything, is metadata and data guaranteed to be co-located on the same device? If not, then there's no way for this to be recovered. If they are, then I think recovery would depend on the system chunk always being device-n mirrored, which we don't have.

No, there's no guarantee of co-location of data and metadata.

Hugo.

Signature · 4 lines
Hugo Mills             | UNIX: Italian pen maker
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |