Re: recovering failed raid5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 16, 2016 at 09:04:29AM +0000, Alexander Shenkin wrote:
> I'm getting a 'No space left on device error'.  Any thoughts?

It's smaller by 4096 bytes, that's probably not a problem. 
ddrescue seems to have failed to copy 128K of data, 
but that's probably not a big problem either.

Your problem is something else:

> Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
> Sector size (logical/physical): 512 bytes / 512 bytes
> Disklabel type: gpt

> Disk /dev/sdc: 2.7 TiB, 3000592977920 bytes, 732566645 sectors
> Sector size (logical/physical): 4096 bytes / 4096 bytes
> Disklabel type: dos

The physical sector size is different.

Unfortunately GPT partition scheme still depends on sector size and is 
inherently incompatible when dd(rescue)'d to a drive with different size.

In theory it would be possible to ignore this, i.e. interpret GPT 
correctly on a 4K sector drive even if it was created for a 512b drive, 
or vice versa, but Linux is quite strict about standards in this case. 
(If Linux was smarter it would work in Linux but fail for Windows...)

Anyway, you'll have to fixer-upper your GPT partition tables to 4K. 
gdisk has an expert -> recovery section that might be able to do so 
automagically, or you could just manually recreate with the correct 
_byte_ offsets (sector offset will be different).

Your partitions are all MiB aligned so there are no alignment issues.

Once the partition table is fixed you should be able to proceed normally.

Regards
Andreas Klauer
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux