Skip to contentSkip to conversation

crash

DISCUSSION Ryusuke Konishi 3 participants 6 messages Feb 10, 2010 – Feb 14, 2010 6 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

(Cc'ed to linux-nilfs)
Hallo,
here is a copy of a post to the list in which you might have an interest. If you need me to do anything please feel free to ask, I hope I will have some time tomorrow.

Regards

Jan de Kruyf.

------------------------------------------------
Hallo,
I did it again.
computer locked up. Most likely X, since the keyboard was dead. But the cleanerd was still running
from the flashing of the hard-drive LED.

Press the big hard reset button
restart . . . /var partition (nilfs2) is now full and the restart cannot run to completion.

This is the 3rd time it happened to me!

The only thing I can think of right now is that the cleaner daemon was interrupted at the wrong moment.
And the /var partition was left in a full state. Is this possible?

Does anybody want anything of the image for a post mortem?

Does anybody want me to do some tests before I reformat?

Further details will follow once I got the rescue HD hooked up.

Regards,

Jan de Kruyf.
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to a message not in the archive

----
Hi,

Quoted 33 lines

(Cc'ed to linux-nilfs)
Hallo,
here is a copy of a post to the list in which you might have an interest. If you need me to do anything please feel free to ask, I hope I will have some time tomorrow.

Regards

Jan de Kruyf.

------------------------------------------------
Hallo,
I did it again.
computer locked up. Most likely X, since the keyboard was dead. But the cleanerd was still running
from the flashing of the hard-drive LED.

Press the big hard reset button
restart . . . /var partition (nilfs2) is now full and the restart cannot run to completion.

This is the 3rd time it happened to me!

The only thing I can think of right now is that the cleaner daemon was interrupted at the wrong moment.
And the /var partition was left in a full state. Is this possible?

Does anybody want anything of the image for a post mortem?

Does anybody want me to do some tests before I reformat?

Further details will follow once I got the rescue HD hooked up.

Quoted 7 lines

Regards,

Jan de Kruyf.
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Can you mount the partition with -o ro,norecovery ?

If so, can you see if there are warnings or errors of some kind in syslog or daemon or messages?

Thanks,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw
In reply to a message not in the archive

Hallo,
This patch never made it to the module tree:

from    Ryusuke Konishi <[email protected]> to    [email protected], [email protected]
cc    [email protected], [email protected]
date    Thu, Nov 19, 2009 at 9:10 PM
subject    Re: [NILFS users] [PATCH 4/4] nilfs2: add norepair mount option

Could I apply the original patch without a problem to the latest module tree?

from    Ryusuke Konishi <[email protected]> to    [email protected], [email protected]
date    Sat, Nov 7, 2009 at 9:28 PM
subject    Re: [NILFS users] [SPAM] Re: [SPAM] Re: urgent help need! disk partition info lost

Regards,

Jan de Kruyf.

Quoted 44 lines · Ryusuke Konishi

----
Hi,

Quoted 33 lines

(Cc'ed to linux-nilfs)
Hallo,
here is a copy of a post to the list in which you might have an interest. If you need me to do anything please feel free to ask, I hope I will have some time tomorrow.

Regards

Jan de Kruyf.

------------------------------------------------
Hallo,
I did it again.
computer locked up. Most likely X, since the keyboard was dead. But the cleanerd was still running
from the flashing of the hard-drive LED.

Press the big hard reset button
restart . . . /var partition (nilfs2) is now full and the restart cannot run to completion.

This is the 3rd time it happened to me!

The only thing I can think of right now is that the cleaner daemon was interrupted at the wrong moment.
And the /var partition was left in a full state. Is this possible?

Does anybody want anything of the image for a post mortem?

Does anybody want me to do some tests before I reformat?

Further details will follow once I got the rescue HD hooked up.

Quoted 7 lines

Regards,

Jan de Kruyf.
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at  http://vger.kernel.org/majordomo-info.html

Quoted 8 lines

Can you mount the partition with -o ro,norecovery ?

If so, can you see if there are warnings or errors of some kind in syslog or daemon or messages?

Thanks,
Ryusuke Konishi

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
In reply to a message not in the archive

Hi,

Quoted 21 lines · Jan de Kruyf

Hallo,
This patch never made it to the module tree:

from Ryusuke Konishi <[email protected]>
to [email protected],
[email protected]
cc [email protected],
[email protected]
date Thu, Nov 19, 2009 at 9:10 PM
subject Re: [NILFS users] [PATCH 4/4] nilfs2: add norepair mount option

Could I apply the original patch without a problem to the latest module tree?

from Ryusuke Konishi <[email protected]>
to [email protected],
[email protected]
date Sat, Nov 7, 2009 at 9:28 PM
subject Re: [NILFS users] [SPAM] Re: [SPAM] Re: urgent help need!
disk partition info lost

Quoted 3 lines

Regards,

Jan de Kruyf.

The patch looks a bit old.

I attached the latest patch against 2.0.18.

Maybe both are safe, but this new one would be better.

Regards,
Ryusuke Konishi

--

fs/nilfs2_fs.h +2 -0
index ce52040..2e4cbd1 100644
@@ -151,6 +151,8 @@ struct nilfs_super_root {
 #define NILFS_MOUNT_BARRIER		0x1000  /* Use block barriers */
 #define NILFS_MOUNT_STRICT_ORDER	0x2000  /* Apply strict in-order
 						   semantics also for data */
+#define NILFS_MOUNT_NORECOVERY		0x4000  /* Disable write access during
+						   mount-time recovery */
 
 
 /**
fs/super.c +18 -35

107 lines not on this page · raw message

fs/the_nilfs.c +65 -27

113 lines not on this page · raw message

fs/the_nilfs.h +10 -0
index fa3a1df..25c24a0 100644
@@ -242,6 +242,16 @@ static inline void nilfs_put_sbinfo(struct nilfs_sb_info *sbi)
 		kfree(sbi);
 }
 
+static inline int nilfs_valid_fs(struct the_nilfs *nilfs)
+{
+	unsigned valid_fs;
+
+	down_read(&nilfs->ns_sem);
+	valid_fs = (nilfs->ns_mount_state & NILFS_VALID_FS);
+	up_read(&nilfs->ns_sem);
+	return valid_fs;
+}
+
 static inline void
 nilfs_get_segment_range(struct the_nilfs *nilfs, __u64 segnum,
 			sector_t *seg_start, sector_t *seg_end)
nilfs2.txt +4 -0
index dbbda00..906b505 100644
@@ -71,6 +71,10 @@ order=strict		Apply strict in-order semantics that preserves sequence
 			blocks.  That means, it is guaranteed that no
 			overtaking of events occurs in the recovered file
 			system after a crash.
+norecovery		Disable recovery of the filesystem on mount.
+			This disables every write access on the device for
+			read-only mounts or snapshots.  This option will fail
+			for r/w mounts on an unclean volume.
 
 NILFS2 usage
 ============

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw
In reply to a message not in the archive

Pliny the Elder (ad 23–79): ‘Semper aliquid novi Africam adferre [Africa always brings [us] something new]’

Hallo,
something is not quite right between the git repository and my git master copy somehow the patches dont update the local copy with git am
I have to extract the patch and apply with 'patch -l' (Match patterns
loosely, in case tabs or spaces have been munged in your files.)
Which then has other complications like finding the wrong spot in super.c for one patch, so that hunk was then rejected and had to be done by hand.

On the crash:
My initial idea was quite wrong. Something went amiss somewhere in the middle of nowhere.
It might be cleanerd connected, but I cannot say for sure.

See the attached .tgz for details of my post mortem effort. If more data is needed please say so.

Regards,

Jan de Kruyf.

#11 lore raw
In reply to a message not in the archive

Hi,
2010/2/12 Jan de Kruyf <[email protected]>:

Quoted 18 lines

Pliny the Elder (ad 23–79): ‘Semper aliquid novi Africam adferre [Africa always brings [us] something new]’

Hallo,
something is not quite right between the git repository and my git master copy somehow the patches dont update the local copy with git am
I have to extract the patch and apply with 'patch -l' (Match  patterns loosely, in case tabs or spaces have been munged in your files.) Which then has other complications like finding the wrong spot in super.c for one patch, so that hunk was then rejected and had to be done by hand.

On the crash:
My initial idea was quite wrong. Something went amiss somewhere in the middle of nowhere.
It might be cleanerd connected, but I cannot say for sure.

Quoted 6 lines

See the attached .tgz for details of my post mortem effort. If more data is needed please say so.

Regards,

Jan de Kruyf.

Thank you for the detail report.

According to your log, many tiny checkpoints were created around 2010-02-09 20:30:01 ~ 2010-02-09 20:31:00.

I saw the dump data of the segment 343 to see the logs having checkpoints on "20:30:01", but they looked normal to me.

The series of checkpoints after 1844624 seems to need care as you say.

             1844624  2010-02-09 20:30:59   cp    -         55      16621
             1844625  2010-02-09 20:30:59   cp    -         33      16621
             1844626  2010-02-09 20:30:59   cp    -         33      16621
             1844627  2010-02-09 20:30:59   cp    -         34      16621
             1844628  2010-02-09 20:30:59   cp    -         33      16621
             1844629  2010-02-09 20:30:59   cp    -         33      16621
             1844630  2010-02-09 20:30:59   cp    -         33      16621

But, it was not included in the segment 343 but in the segment 344.

Checkpoints can be created when application performs synchronous writes (e.g. fsync or OSYNC writes).

So, we needs an additional dumpseg data to confirm if it's normal or not.

Can you still take out the dump ?

In addition, I think "ls -laiR" for the var directory would be helpful because it prints inode numbers along with file names.

Thanks in advance,
Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html