Search this site:

Speaking of which...

A couple of days ago, I replied to Madduck’s post regarding unhappiness with XFS. Ben replied with a trackback as well: He’s also moving away from XFS. And… Well, I noticed the unavoidable: XFS, in the end, did eat my data. I use a chroot in my desktop machine as a backups server, for two other machines. The backups are done three times a week. And last time, they failed. Why? Because /dev/hdd2 is not mounted. Why? mosca:~# mount /dev/hdd1 /var/backups mount: Unknown error 990 Oh, nice, great and stinky shit. Ok, lets fix it… mosca:~# fsck /dev/hdd1 fsck 1.39 (29-May-2006) If you wish to check the consistency of an XFS filesystem or repair a damaged filesystem, see xfs_check(8) and xfs_repair(8). mosca:~# xfs_check /dev/hdd1 * ERROR: mismatched uuid in log * SB : ed5d0cc4-487b-4ee4-95c8-6cc2fe441562 * log: ed5d0cc4-487b-4ea4-95c8-6cc2fe441562 ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem to replay the log, and unmount it before re-running xfs_check. If you are unable to mount the filesystem, then use the xfs_repair -L option to destroy the log and attempt a repair. Note that destroying the log may cause corruption -- please attempt a mount of the filesystem before doing this. Fortunately, that’s only some backups and a very untweaked chroot, made easily with debootstrap… But still, that’s something I’ll have to work on this evening. Sigh, as I didn’t have enough pending work already :-/ [Update]: Well, turns out that hdd1 was not as FUBAR as I had expected. It works fine now, after an xfs_repair. However, the same cannot be said about my dear and lost /usr and /var - Due to a XFS corruption bug that arised under early 2.6.17-line kernels, heavy disk activity corrupted something that led to complete data loss. And, of course, a 350 MB run of dpkg easily meant heavy disk activity. Many of my files under /usr/bin were very long strings of zeroes. Many files inside the dreaded /var/lib/dpkg were so as well. And… Well, I gave up early, as my /home data was fine (and mostly everything I care about is under version control anyway). So, the last couple of days have been devoted to setting up my world :-/