xfs
[Top] [All Lists]

Re: Xfs_repair and journalling

To: xfs@xxxxxxxxxxx
Subject: Re: Xfs_repair and journalling
From: Martin Steigerwald <Martin@xxxxxxxxxxxx>
Date: Mon, 18 Mar 2013 21:50:34 +0100
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAEUQceie41dh7h6uZSMu4-JB_BDu82X5CrKxHb=9wVQVAPzKgQ@xxxxxxxxxxxxxx>
References: <CAEUQceh-Xcabr0KErxF6EAdafDDP1PY_AeHwgYB82QeUdyGp-g@xxxxxxxxxxxxxx> <51455408.4070801@xxxxxxxxxxxxxxxxx> <CAEUQceie41dh7h6uZSMu4-JB_BDu82X5CrKxHb=9wVQVAPzKgQ@xxxxxxxxxxxxxx> (sfid-20130317_135417_509279_45FA64F6)
User-agent: KMail/1.13.7 (Linux/3.9.0-rc3-tp520; KDE/4.9.5; x86_64; ; )
Am Sonntag, 17. MÃrz 2013 schrieb Subranshu Patel:
> In case of EXT4, journal will not be replayed on performing mount. One
> need to invoke fsck which performs journal playback and then other
> corruption checks/recovery.
> Correct me if I am wrong.

USB stick with Ext4 without any mkfs options:

merkaba:~> mount /dev/sdb /mnt/zeit   
merkaba:~> rsync -a /etc /mnt/zeit    

(was to short)

merkaba:~> rsync -a /usr/bin /mnt/zeit

Unplug during write activity:



merkaba:~> grep "journal" /var/log/syslog | tail -5 
Mar 18 21:43:22 merkaba kernel: [29938.038298] journal commit I/O error
Mar 18 21:43:22 merkaba kernel: [29938.038300] journal commit I/O error
Mar 18 21:43:22 merkaba kernel: [29938.038302] journal commit I/O error
Mar 18 21:43:22 merkaba kernel: [29938.038305] journal commit I/O error
Mar 18 21:43:22 merkaba kernel: [29938.038308] journal commit I/O error
merkaba:~> grep -c "journal commit" /var/log/syslog
1915


Wait till KDE SC stops replaying these notifications and then restart 
plasma-desktop to get rid of it cause that takes to long.


Plug USB stick back in. And mount it:

merkaba:~> mount /dev/sdc /mnt/zeit 
merkaba:~> ls -l /mnt/zeit
insgesamt 40
drwxr-xr-x   2 root root 12288 MÃr 18 21:43 bin
drwxr-xr-x 188 root root 12288 MÃr 18 13:31 etc
drwx------   2 root root 16384 MÃr 18 21:42 lost+found


Mount took about 5 seconds.


merkaba:~> dmesg | tail -2
[30217.601896] EXT4-fs (sdc): recovery complete
[30217.603287] EXT4-fs (sdc): mounted filesystem with ordered data mode. 
Opts: (null)


So can we get over any guess work that Ext4 might not be able to replay
its journal after an unclean shutdown?

It can and it does. And not just since this 3.9-rc3 kernel.

Thanks,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7

<Prev in Thread] Current Thread [Next in Thread>