ungraceful shutdown/power failure handling problem. no boot

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

ungraceful shutdown/power failure handling problem. no boot

Postby fgina » Sat Aug 24, 2013 4:32 am

HI all,

I've been researching and building my pogoplug server for a while and want to sort out all issues before using it for real. first was networking dhcpdv6 client, then static ip, then usb wifi card all working great now. the new show stopper problem is ungraceful shutdowns. pulling power cord to the pogoplug causes it not to boot to arch os in usb stick at 100% reproducible rate. good news is, I can take the usb to another arch live cd fsck -f it. then it will work again.

this means if there's a power loss, it will not boot when power resumes. what's your experiences on this particular scenario? are there any workarounds? I was thinking to force fsck on the arch usb partition on every boot. is this possible? any pointers are appreciated!
fgina
 
Posts: 26
Joined: Thu Aug 15, 2013 6:34 pm

Re: ungraceful shutdown/power failure handling problem. no b

Postby fgina » Sat Aug 24, 2013 5:20 am

I think I found the problem on my own. my root file system is ext2 not ext3. for some reason /usr/sbin/fw_setenv usb_rootfstype ext3 did not work
fgina
 
Posts: 26
Joined: Thu Aug 15, 2013 6:34 pm

Re: ungraceful shutdown/power failure handling problem. no b

Postby moonman » Sat Aug 24, 2013 5:27 am

You need to convert your fs to ext3 if it isn't already. Google for the commands to convert.

You can also utilize uInitrd with fsck hook. I had already created one (Download in the U-Boot upgrade thread in my signature). But it may be the hassle you don't want to go through (U-Boot environment modifications... in case you make a mistake you device may become unbootable)
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: ungraceful shutdown/power failure handling problem. no b

Postby fgina » Sat Aug 24, 2013 6:04 am

I spoke too soon.

while booted in alarm, df -T command shows this,
$this->bbcode_second_pass_code('', '
alarm ~ # df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/root ext2 7687396 911428 6385464 13% /
')

however, trying to add journal to the root partition by $this->bbcode_second_pass_code('', 'tune2fs -j /dev/sda1'), it says already has journal. I put the usb to arch live cd then run df -T, it says type is ext3. what's going on?
fgina
 
Posts: 26
Joined: Thu Aug 15, 2013 6:34 pm

Re: ungraceful shutdown/power failure handling problem. no b

Postby moonman » Sat Aug 24, 2013 6:48 am

You are on the right track then set rootfstype to ext3. What do you mean it doesn't work ? You run the command and what does it say?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: ungraceful shutdown/power failure handling problem. no b

Postby fgina » Mon Aug 26, 2013 6:40 pm

$this->bbcode_second_pass_code('', 'alarm ~ # tune2fs -j /dev/sda1
tune2fs 1.42.8 (20-Jun-2013)
The filesystem already has a journal.
')
fgina
 
Posts: 26
Joined: Thu Aug 15, 2013 6:34 pm

Re: ungraceful shutdown/power failure handling problem. no b

Postby moonman » Mon Aug 26, 2013 8:00 pm

I meant your second post when you set uboot variable. That's all that you should need
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: ungraceful shutdown/power failure handling problem. no b

Postby fgina » Wed Aug 28, 2013 6:17 pm

reinstalled everything. now I have ext3 on root. for whatever reason it didn't work the last time
fgina
 
Posts: 26
Joined: Thu Aug 15, 2013 6:34 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: Google [Bot] and 8 guests