XFS + RAID1 strange message
Hi
I got linux box
Linux gepard 2.6.17-pp3 #6 SMP Tue Feb 13 12:50:39 CET 2007 i686 unknown
2 brand new sata WDC RAPTOR disks
SCSI device sda: 72303840 512-byte hdwr sectors (37020 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 72303840 512-byte hdwr sectors (37020 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 > sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 72303840 512-byte hdwr sectors (37020 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
SCSI device sdb: 72303840 512-byte hdwr sectors (37020 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 sdb7 sdb8 > sd 1:0:0:0: Attached scsi disk sdb
with raid1 on them done by mdadm
Jul 12 18:25:14 gepard kernel: raid1: raid set md0 active with 2 out of 2 mirrors Jul 12 18:25:14 gepard kernel: md: ... autorun DONE. Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md1 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md1 Jul 12 18:25:14 gepard kernel: VFS: Mounted root (xfs filesystem)
readonly.
Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md2 Jul 12 18:25:14 gepard kernel: Starting XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Ending XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Filesystem "md0": Disabling barriers, not supported by the underlying device Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md0 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md0 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc1 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc1 Jul 12 18:25:14 gepard kernel: Filesystem "md3": Disabling barriers, not supported by the underlying device Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md3 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md3 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc2 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc2 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc5 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc5 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc6 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc6 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem hda1 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: hda1 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc7 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc7 Jul 12 18:25:14 gepard kernel: Filesystem "md4": Disabling barriers, not supported by the underlying device Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md4 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md4 Jul 12 18:25:14 gepard kernel: Filesystem "md5": Disabling barriers, not supported by the underlying device Jul 12 18:25:15 gepard kernel: XFS mounting filesystem md5 Jul 12 18:25:15 gepard kernel: Ending clean XFS mount for filesystem:
md5
When i reboot , halt the server i always get
Jul 12 18:25:14 gepard kernel: Starting XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Ending XFS recovery on filesystem: md2
(logdev: internal)
such errors. Only on md2.
qba@gepard:~$ mount | grep md2 /dev/md2 on /usr type xfs (rw)
I tried to disable Write Cache but without success.
[root@gepard log]#hdparm -W0 /dev/sda
/dev/sda:
operation not supported on SCSI disks
[root@gepard log]#sginfo -c /dev/sda
Caching mode page (0x8)
-----------------------
Initiator Control 0 ABPF 0 CAP 0 DISC 0 SIZE 0 Write Cache Enabled 1 MF 0 Read Cache Disabled 0 Demand Read Retention Priority 0 Demand Write Retention Priority 0 Disable Pre-fetch Transfer Length 0 Minimum Pre-fetch 0 Maximum Pre-fetch 0 Maximum Pre-fetch Ceiling 0 FSW 0 LBCSS 0 DRA 0 Number of Cache Segments 0 Cache Segment size 0 Non-Cache Segment size 0
[root@gepard log]# sginfo -cXR /dev/sda 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Quoted 1 line
Quoted 1 line
Quoted 1 line
Unable to store Caching mode page
0x8[msel_10]
[root@gepard log]#sginfo -c /dev/sda | grep -i write
Write Cache Enabled 1
I checked the log
[root@gepard log]#xfs_logprint /dev/md2xfs_logprint:xfs_logprint: /dev/md2 contains a mounted and writable filesystem
data device: 0x902
log device: 0x902 daddr: 2931744 length: 20480
Header 0x3 wanted 0xfeedbabe
**********************************************************************
* ERROR: header cycle=3 block=13539
* *
**********************************************************************
Bad log record headerThe disks seems to be OK
[root@gepard log]#badblocks -s -v -c 512 /dev/sda5 Checking for bad blocks in read-only mode
Quoted 1 line
From block 0 to 2931831
Checking for bad blocks (read-only test): done Pass completed, 0 bad blocks found. [root@gepard log]#badblocks -s -v -c 512 /dev/sdb5 Checking for bad blocks in read-only mode
Quoted 1 line
From block 0 to 2931831
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.
Is it normal message , and i should not worry about it?
Thank You for any info and suggestions.
Signature · 8 lines
Pozdrawiam, Dawid 'Kuba' Chrzan http://f-net.pl [email protected] RLU#212729 net/sys administrator "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo Inc., 1989.
You have hit the infamous 2.6.17-2.6.17.6 bug.
Check the XFS FAQ, I suggest you backup your files and re-format, happened to me too with a SW MD RAID1, kind of defats the purpose of RAID1; hence, backups :)
Justin.
Quoted 178 lines · Dawid 'Kuba' Chrzan
Hi
I got linux box
Linux gepard 2.6.17-pp3 #6 SMP Tue Feb 13 12:50:39 CET 2007 i686 unknown2 brand new sata WDC RAPTOR disks
SCSI device sda: 72303840 512-byte hdwr sectors (37020 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 72303840 512-byte hdwr sectors (37020 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 > sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 72303840 512-byte hdwr sectors (37020 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
SCSI device sdb: 72303840 512-byte hdwr sectors (37020 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
sdb: sdb1 sdb2 sdb3 sdb4 < sdb5 sdb6 sdb7 sdb8 > sd 1:0:0:0: Attached scsi disk sdbwith raid1 on them done by mdadm
Jul 12 18:25:14 gepard kernel: raid1: raid set md0 active with 2 out of 2 mirrors Jul 12 18:25:14 gepard kernel: md: ... autorun DONE. Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md1 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md1 Jul 12 18:25:14 gepard kernel: VFS: Mounted root (xfs filesystem)readonly.
Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md2 Jul 12 18:25:14 gepard kernel: Starting XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Ending XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Filesystem "md0": Disabling barriers, not supported by the underlying device Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md0 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md0 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc1 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc1 Jul 12 18:25:14 gepard kernel: Filesystem "md3": Disabling barriers, not supported by the underlying device Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md3 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md3 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc2 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc2 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc5 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc5 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc6 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc6 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem hda1 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: hda1 Jul 12 18:25:14 gepard kernel: XFS mounting filesystem sdc7 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: sdc7 Jul 12 18:25:14 gepard kernel: Filesystem "md4": Disabling barriers, not supported by the underlying device Jul 12 18:25:14 gepard kernel: XFS mounting filesystem md4 Jul 12 18:25:14 gepard kernel: Ending clean XFS mount for filesystem: md4 Jul 12 18:25:14 gepard kernel: Filesystem "md5": Disabling barriers, not supported by the underlying device Jul 12 18:25:15 gepard kernel: XFS mounting filesystem md5 Jul 12 18:25:15 gepard kernel: Ending clean XFS mount for filesystem:md5
When i reboot , halt the server i always get
Jul 12 18:25:14 gepard kernel: Starting XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Ending XFS recovery on filesystem: md2(logdev: internal)
such errors. Only on md2.
qba@gepard:~$ mount | grep md2 /dev/md2 on /usr type xfs (rw)I tried to disable Write Cache but without success.
[root@gepard log]#hdparm -W0
/dev/sda
/dev/sda:
operation not supported on SCSI disks[root@gepard log]#sginfo -c
/dev/sda
Caching mode page (0x8)
-----------------------Initiator Control 0 ABPF 0 CAP 0 DISC 0 SIZE 0 Write Cache Enabled 1 MF 0 Read Cache Disabled 0 Demand Read Retention Priority 0 Demand Write Retention Priority 0 Disable Pre-fetch Transfer Length 0 Minimum Pre-fetch 0 Maximum Pre-fetch 0 Maximum Pre-fetch Ceiling 0 FSW 0 LBCSS 0 DRA 0 Number of Cache Segments 0 Cache Segment size 0 Non-Cache Segment size 0[root@gepard log]# sginfo -cXR
/dev/sda0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0Quoted 1 line
Quoted 1 line
Quoted 1 line
Unable to store Caching mode page
0x8[msel_10][root@gepard log]#sginfo -c
/dev/sda| grep -i write
Write Cache Enabled 1I checked the log
[root@gepard log]#xfs_logprint/dev/md2xfs_logprint:xfs_logprint:/dev/md2contains a mounted and writable filesystem
data device:0x902log device: 0x902 daddr: 2931744 length: 20480 Header 0x3 wanted 0xfeedbabe ********************************************************************** * ERROR: header cycle=3 block=13539 * * ********************************************************************** Bad log record headerThe disks seems to be OK
[root@gepard log]#badblocks -s -v -c 512
/dev/sda5Checking for bad blocks in read-only modeQuoted 1 line
From block 0 to 2931831
Checking for bad blocks (read-only test): done Pass completed, 0 bad blocks found. [root@gepard log]#badblocks -s -v -c 512
/dev/sdb5Checking for bad blocks in read-only modeQuoted 1 line
From block 0 to 2931831
Checking for bad blocks (read-only test): done
Pass completed, 0 bad blocks found.Is it normal message , and i should not worry about it?
Thank You for any info and suggestions.
Signature · 8 lines
Pozdrawiam, Dawid 'Kuba' Chrzan http://f-net.pl [email protected] RLU#212729 net/sys administrator "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo Inc., 1989.
Quoted 1 line · Justin Piszcz
You have hit the infamous 2.6.17-2.6.17.6 bug.
No, that's incorrect. There is no evidence of that problem being hit here. Still, a kernel upgrade is definitely advisable.
Quoted 3 lines
Check the XFS FAQ, I suggest you backup your files and re-format, happened to me too with a SW MD RAID1, kind of defats the purpose of RAID1; hence, backups :)
Dump, reformat and restore is not necessary either as xfs-repair can fix the problem.
Cheers,
Dave.
Signature · 3 lines
Dave Chinner Principal Engineer SGI Australian Software Group
Quoted 4 lines · Dawid 'Kuba' Chrzan
Hi
I got linux box
Linux gepard 2.6.17-pp3 #6 SMP Tue Feb 13 12:50:39 CET 2007 i686 unknown
You *really* don't want to be using that kernel for XFS. Please upgrade to at least 2.6.17.7 to avoid the dir2 corruption bug in that release.
http://oss.sgi.com/projects/xfs/faq.html#dir2
Quoted 9 lines
When i reboot , halt the server i always get
Jul 12 18:25:14 gepard kernel: Starting XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Ending XFS recovery on filesystem: md2(logdev: internal)
such errors. Only on md2.
qba@gepard:~$ mount | grep md2 /dev/md2 on /usr type xfs (rw)
I assume you mean when the system boots - those timestamps are from your boot log above. What is it that you think is incorrect about these messages? They are information indicating a successful log recovery which means your /usr filesystem is not being cleanly unmounted by your shutdown scripts. This is just saying that log recover occurred on that filesystem and everything is ok.
Quoted 1 line
Is it normal message , and i should not worry about it?
Yes, you'll see this message for any filesystem that wasn't cleanly unmounted and if it succeeds then you have nothing to worry about.
Cheers,
Dave.
Signature · 3 lines
Dave Chinner Principal Engineer SGI Australian Software Group
Quoted 11 lines · David Chinner
Quoted 4 lines · Dawid 'Kuba' Chrzan
Hi
I got linux box
Linux gepard 2.6.17-pp3 #6 SMP Tue Feb 13 12:50:39 CET 2007 i686 unknownYou *really* don't want to be using that kernel for XFS. Please upgrade to at least 2.6.17.7 to avoid the dir2 corruption bug in that release.
It seems that i have to upgrade on all servers.
Quoted 11 lines
Quoted 10 lines
When i reboot , halt the server i always get
Jul 12 18:25:14 gepard kernel: Starting XFS recovery on filesystem: md2 (logdev: internal) Jul 12 18:25:14 gepard kernel: Ending XFS recovery on filesystem: md2(logdev: internal)
such errors. Only on md2.
qba@gepard:~$ mount | grep md2 /dev/md2 on /usr type xfs (rw)
Quoted 7 lines
I assume you mean when the system boots - those timestamps are from your boot log above. What is it that you think is incorrect about these messages? They are information indicating a successful log recovery which means your /usr filesystem is not being cleanly unmounted by your shutdown scripts. This is just saying that log recover occurred on that filesystem and everything is ok.
Yes , these are system boot logs.
I understand completely that this is log informing about recovery of log.
But why ? It seems that i have to investigate why /usr was not clenly unmounted.
Quoted 5 lines
Quoted 1 line
Is it normal message , and i should not worry about it?
Yes, you'll see this message for any filesystem that wasn't cleanly unmounted and if it succeeds then you have nothing to worry about.
I know i know.... I was thinking rather about this if it is usual on raid1 - or some bug with xfs on raid.
Thanks for help and advice.
Signature · 8 lines
Pozdrawiam, Dawid 'Kuba' Chrzan http://f-net.pl [email protected] RLU#212729 net/sys administrator "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo Inc., 1989.
Quoted 6 lines · Dawid 'Kuba' Chrzan
Quoted 2 lines · David Chinner
Yes, you'll see this message for any filesystem that wasn't cleanly unmounted and if it succeeds then you have nothing to worry about.
I know i know.... I was thinking rather about this if it is usual on raid1 - or some bug with xfs on raid.
It's probably indicative of a process still running holding an open reference on the filesystem preventing it from being unmounted. i.e. the shutdown scripts aren't killing everything or some such problem...
Cheers,
Dave.
Signature · 3 lines
Dave Chinner Principal Engineer SGI Australian Software Group
Quoted 5 lines · David Chinner
Quoted 4 lines · Dawid 'Kuba' Chrzan
Quoted 2 lines · David Chinner
Yes, you'll see this message for any filesystem that wasn't cleanly unmounted and if it succeeds then you have nothing to worry about.
Quoted 8 lines
Quoted 2 lines
I know i know.... I was thinking rather about this if it is usual on raid1 - or some bug with xfs on raid.
It's probably indicative of a process still running holding an open reference on the filesystem preventing it from being unmounted. i.e. the shutdown scripts aren't killing everything or some such problem...
I know.
Have to go to see it myself.
Thanks...
Signature · 8 lines
Pozdrawiam, Dawid 'Kuba' Chrzan http://f-net.pl [email protected] RLU#212729 net/sys administrator "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo Inc., 1989.