Thanks for your ideas.  This will have to wait until I return from vacation.
David

On Thu, Feb 12, 2009 at 3:53 AM, Ingmar Schraub <[email protected]> wrote:

> Hello again,
>
> I made some further tests and at least with UnionFS 2.5.1 (which is in
> trunk) the shutdown does the remount in read-only mode of /dev/hda2
> (unionfs) properly. No issues here.
>
> I can't speak for UnionFS 2.4 (which is used by Astlinux 0.6).
>
> So, doing the little check as I advised in my previous e-mail does not
> harm.
>
> How are your filesystems mounted? Maybe you can give us a "mount" output?
>
> (just trying to help to track down the problem....)
>
> Thanks, Ingmar
>
> Ingmar Schraub wrote:
> > Hello David,
> >
> > it looks to me that Astlinux is not doing the unionfs-unmount properly
> > when the system goes shutdown/reboot. The result is that you end up with
> > a dirty partition and next reboot the system detects that the system
> > filesystem was not properly unmounted and then the initrd performs a
> > fsck. The fsck can be going ok, but depending on how many changes
> > happened before you reboot the box, it can also end like you have
> > described and fsck is not able to repair everything.
> >
> > To validate if my thesis is correct, do the following:
> >
> > in /etc/rc go to the shutdown() function, last line should be "unmount
> > -a -r 2>/dev/null", change it to "unmount -a -r".
> >
> > After that you can run a shutdown/reboot (from the console!). What the
> > output, you see the shutdown sequence and the 'umount' command will tell
> > you whether the filesystems could be unmounted properly. Note: you will
> > see that the unmount 'remount's the filesystems in read-only. That is
> > good and normal. So no worries here. But I doubt that you see a
> > read-only remount for your unionFS partition (which is typically
> > /dev/hda2). It'll be busy and a read-only remount fails.
> >
> > I've checked some mailinglists on this topic and it seems to be a common
> > problem when you overlay the root filesystem.
> >
> > If this happens on your box, you can be certain that you have end up
> > with a dirty filesystem from time to time and fsck can make things worse
> > later (well, fsck is able to fix most problems... but sometimes the
> > system would boot properly when you don't do the fsck but you still have
> > a dirty filesystem).
> >
> > So please check and report back.
> >
> > Thanks, Ingmar
> >
> > David Kerr wrote:
> >> This problem has returned.  As reported on 5th Jan, I loaded the 0.6.2
> >> image on my ALIX 2C3 as downloaded from sourceforge and have been
> >> running this for the last 5 weeks or so. No reboots. Very stable.
> >>  Tonight I needed to reboot to pick up some configuration changes I
> >> wanted to make to the firewall settings. The system did not come back.
> >> Serial console shows...
> >>
> >> Looking for AstLinux image...
> >> AstLinux image found!
> >> Configuring for unionfs...
> >> Checking asturw filesystem
> >> ext2fs_check_if_mount: No such file or directory while determining
> >> whether /dev/
> >> hda2 is mounted.
> >>
> >>
> >> ASTURW: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
> >>         (i.e., without -a or -p options)
> >> Fsck detected errors on /dev/hda2 (4)
> >> /bin/sh: can't access tty; job control turned off
> >> #
> >>
> >>
> >> I can't figure out how to run fsck from astlinux in this state. So I
> >> took the CF card (brand new sandisk ultra II 2GB) and connected it to my
> >> system. First I tried Ubuntu and got...
> >>
> >> da...@ubuntu-david:~/astlinux-0.6$ sudo fsck /dev/sda2
> >> fsck 1.41.3 (12-Oct-2008)
> >> e2fsck 1.41.3 (12-Oct-2008)
> >> fsck.ext2: Attempt to read block from filesystem resulted in short read
> >> while trying to open /dev/sda2
> >> Could this be a zero-length partition?
> >> da...@ubuntu-david:~/astlinux-0.6$
> >>
> >> Not a good sign, but I had previous success with CentOS in the past, so
> >> I booted it up and got...
> >>
> >> [r...@localhost ~]# fsck /dev/sdb2
> >> fsck 1.39 (29-May-2006)
> >> e2fsck 1.39 (29-May-2006)
> >> ASTURW contains a file system with errors, check forced.
> >> Pass 1: Checking inodes, blocks, and sizes
> >> Extended attribute block 360938 has reference count 8, should be 5.
> >>  Fix<y>? yes
> >>
> >> Pass 2: Checking directory structure
> >> Pass 3: Checking directory connectivity
> >> Pass 3A: Optimizing directories
> >> Pass 4: Checking reference counts
> >> Pass 5: Checking group summary information
> >>
> >> ASTURW: ***** FILE SYSTEM WAS MODIFIED *****
> >> ASTURW: 1604/233760 files (0.2% non-contiguous), 10688/467460 blocks
> >> [r...@localhost ~]#
> >>
> >> Looking good. So I then took the card, plugged it back into my ALIX 2C3
> >> and booted successfully.
> >>
> >> This is very disconcerting. This is an unmodified astlinux image,
> >> nothing fancy in the way of asterisk configuration. The only things that
> >> should be writing to the CF card are CDR records, and the very
> >> occasional voice message. I am reading extra-sounds files from it.
> >> Syslog is now going to ramdisk.
> >>
> >> I'm about to head out on vacation so can't work on this for a while. But
> >> something is not right... at a minimum the fsck check on boot should do
> >> whatever CentOS does to repair the partition and proceed, perhaps with a
> >> warning to syslog.
> >>
> >> Thanks,
> >> David.
> >>
> >>
> >>
> >> On Mon, Jan 5, 2009 at 9:49 PM, David Kerr <[email protected]
> >> <mailto:[email protected]>> wrote:
> >>
> >>     To eliminate all variables, I have loaded the 0.6.2 image from
> >>     sourceforge and untar'd the extra sounds package onto the flash. I
> >>     have this running now and will see if it is stable.
> >>
> >>     Examining my configuration, I recently added the growl.agi script
> >>     that someone posted here recently. Maybe that is causing problems...
> >>     so I have commented it out also.
> >>
> >>     David
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >>
> ------------------------------------------------------------------------------
> >> Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> >> software. With Adobe AIR, Ajax developers can use existing skills and
> code to
> >> build responsive, highly engaging applications that combine the power of
> local
> >> resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> >> Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> Astlinux-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/astlinux-users
> >>
> >> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
> >
> >
> ------------------------------------------------------------------------------
> > Create and Deploy Rich Internet Apps outside the browser with
> Adobe(R)AIR(TM)
> > software. With Adobe AIR, Ajax developers can use existing skills and
> code to
> > build responsive, highly engaging applications that combine the power of
> local
> > resources and data with the reach of the web. Download the Adobe AIR SDK
> and
> > Ajax docs to start building applications today-
> http://p.sf.net/sfu/adobe-com
> > _______________________________________________
> > Astlinux-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/astlinux-users
> >
> > Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
>
>
------------------------------------------------------------------------------
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to