x86.eon corrupted- please help

63 views
Skip to first unread message

nuno.pr...@gmail.com

unread,
Jun 19, 2012, 6:40:31 PM6/19/12
to eonst...@googlegroups.com
Hello
Sorry for my bad english :)

When i was updating with updimgr.sh my eon image my ssh session closed and i get a corrupted x86.eon file corrupted.
I' have tried to run it again and i get:

/usr/bin/updimg.sh /mnt/eon0/boot/x86.eon
Updating files in /mnt/eon0/.backup to x86.eon
backup in /mnt/eon0/boot/x86.eon.1
/mnt/eon0/.backup: OK
gzcat /mnt/eon0/boot/x86.eon > /tmp/x86.1947

gzcat: /mnt/eon0/boot/x86.eon: unexpected end of file
lofiadm -a /tmp/x86.1947 /dev/lofi/1
lofiadm: size of /tmp/x86.1947 is not a multiple of 512
mounting ... /dev/lofi/1 /mnt/upd
mount: /dev/lofi/1 or /mnt/upd, no such file or directory

I'm afraid of loosing my storage on a restart, can someone help me.

Thanks

dre2kse

unread,
Jun 19, 2012, 7:21:32 PM6/19/12
to eonst...@googlegroups.com
First, take a deep breath and stay calm. EON is deigned to minimize these specific types of worry "OS/OS disk failure". There are many options. Even pulling the OEM x86.eon image from the cd and running updimg.sh. Worse case scenario u would have to build a key and re-run setup and do a zpool import.

What I don't understand is, if the ssh session closed before completing I don't see how the corrupted image made it back to /mnt/eon0/boot/x86.eon. Also, If it did then it means you should have 2 fail safe images. The image rolled before the corrupted one (start of updimg.sh), now /mnt/eon0/boot/x86.eon.1 and x86.eon.oem.

Simply (in the case below we are assuming x86.eon is the current corrupted image)
cd /mnt/eon0/boot
cp x86.eon.1 x86.eon
or
cp x86.eon.oem x86.eon
and run updimg.sh

Hope this finds you in time...
Message has been deleted

nuno.pr...@gmail.com

unread,
Jun 20, 2012, 4:57:29 AM6/20/12
to eonst...@googlegroups.com

Thanks for your reply dre2kse!

I renamed the x86.eon and then copied x86.eon.1 to x86.eon.
Run updimgr.sh and every thing went perfect.

storagenode1:15:/mnt/eon0/boot#/usr/bin/updimg.sh /mnt/eon0/boot/x86.eon


Updating files in /mnt/eon0/.backup to x86.eon
backup in /mnt/eon0/boot/x86.eon.1
/mnt/eon0/.backup: OK

gzcat /mnt/eon0/boot/x86.eon > /tmp/x86.2420
lofiadm -a /tmp/x86.2420 /dev/lofi/1
mounting ... /dev/lofi/1 /mnt/upd
copying /etc/svc/repository.db
umounting ... /mnt/upd
lofiadm -d /dev/lofi/1
mv -f /mnt/eon0/boot/x86.eon.0 /mnt/eon0/boot/x86.eon.1
mv -f /mnt/eon0/boot/x86.eon /mnt/eon0/boot/x86.eon.0
gzip -f -9 -c /tmp/x86.2420 > /mnt/eon0/boot/x86.eon
/mnt/eon0/boot/x86.eon: OK

I have to reboot the storage to confirm that everything is ok.


Regards

Reply all
Reply to author
Forward
0 new messages