March 3, 20206 yr Hi guys, accidentally dd'ed over an XFS formatted disk, something like 150MB or so from the beginning is there a way I can reconstruct the disk? Array was stopped and the disk was not mounted. Disk was a 4TB ST4000DM000, 4k aligned, formatted with XFS Command executed dd if=/dev/zero of=/dev/sdb bs=100000000 Hit Cmd-C immediately (after 1sec approximately) I have other disks of the absolutely same type for extracting partition table or whatever necessary... Thanks for any hints Edited March 3, 20206 yr by starcat
March 3, 20206 yr Easiest way would be to unassign that disk, start the array, then re-assign it to rebuild, assuming parity exists and is valid.
March 3, 20206 yr Author Parity was disabled as I was copying disks and moving data, so no valid parity at the moment. Need other approach, copy partition from another (same, identical) disk, mount, etc. Edited March 3, 20206 yr by starcat
March 4, 20206 yr The primary superblock will be destroyed, you can have xfs_repair look for a backup one and see if it was up to date, but IMHO best bet would be to ask for help on the xfs mailing list.
Archived
This topic is now archived and is closed to further replies.