ld-elf-so.1 not found after crash

jackydany

Explorer
Joined
Mar 17, 2014
Messages
51
Hi there,

i have a little problem with the freenas of my neighbour.
freenas 11.3-u3.2
2 sata drives
usb stick as boot device.
1 jail / plugin running (plex)

after a power outtake 2 days ago the server was not running, so i picked it up and hooked it to a monitor.
now it shows me trying to load root from....
and then /libexec/ld-elf-so.1 not found error 5

hitting enter doesnt bring me to the shell but refers back to the message to hit enter to get to /bin/sh :D

we have no latest backup of config files...

is there a way to get this thing back up and running?
i have linux and another truenas system right here....
can i do an install over this usb stick and keep the config?
is there a way to get the config.db from the stick first?

hope you can help me out a bit.

thanks
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Sounds like the USB boot stick has become corrupt. I'd suggest doing the following:

1. Reinstall on a new boot device (avoid USB if thats an option)
2. Attach the USB stick to another device which can import the 'freenas-boot' pool on the stick. If that works, you can try browsing to /var/db/system and looking for the old config file, assuming it wasn't also corrupted and lost.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Attach the USB stick to another device which can import the 'freenas-boot' pool on the stick. If that works, you can try browsing to /var/db/system and looking for the old config file, assuming it wasn't also corrupted and lost.
You could also look for the automatic config DB backup in the system dataset (a little tricky since a freshly built install will have its own system dataset and will move it to your data pool once you import it... but it should look something like this):
tank/.system/configs-2fa742ae30da433ca735af52bcb65edb/FreeNAS-11.3-U3.2 (You may need to look around for it as your GUID won't be the same as mine, check zfs list | grep system/configs).

You can then mount that somewhere:
mkdir /mnt/temp-configs
zfs set mountpoint=/mnt/temp-configs tank/.system/configs-2fa742ae30da433ca735af52bcb65edb

Then look in /mnt/temp-configs for your latest one.

You will want to get out of that directory afterwards and set it back to legacy:
zfs set mountpoint=/legacy tank/.system/configs-2fa742ae30da433ca735af52bcb65edb

That should put it all back in order for when you restore the config backup.
 

jackydany

Explorer
Joined
Mar 17, 2014
Messages
51
Hi thanks for the replies... looks good...

only problem is i dont know how to mount the ioufhsfhnoiehliehf usb stick :D

here is zfs list

freenas-boot 1.99G 12.1G 23K/mnt/mnt/freenas-boot
freenas-boot/ROOT 1.99G 12.1G 23K/mnt/mnt/freenas-boot/ROOT


but how can i get this mounted into a directory to copy files?

thanks again
 

jackydany

Explorer
Joined
Mar 17, 2014
Messages
51
@Kris Moore @sretalla could you please help me out further?
how can i mount the usb stick on my truenas to copy the config files? got the usb stick inserted and it showsup as /dev/da48p1 and p2

how to move on?

Thanks!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You would start with zfs import, then use the ID of the old boot pool which should be listed there to import it:

zpool import -R /mnt 10293874638409 old-boot-pool Where 10293874638409 is the ID you saw for that pool in zpool import output.

I don't, however recommend doing what I'm saying.

You should do what @Kris Moore originally suggested:
2. Attach the USB stick to another device which can import the 'freenas-boot' pool on the stick. If that works, you can try browsing to /var/db/system and looking for the old config file, assuming it wasn't also corrupted and lost.
 

jackydany

Explorer
Joined
Mar 17, 2014
Messages
51
mhhh seems not to work....

the id is 1906477809370514841
the zfs list output is as follwed

freenas-boot 1.99G 12.1G 23K /mnt/freenas-boot
freenas-boot/ROOT 1.99G 12.1G 23K /mnt/freenas-boot/ROOT
freenas-boot/ROOT/11.3-U3.2 1.99G 12.1G 1018M /mnt/freenas-boot/ROOT/11.3-U3.2
freenas-boot/ROOT/Initial-Install 1K 12.1G 1016M /mnt/freenas-boot/ROOT/Initial-Install
freenas-boot/ROOT/default 230K 12.1G 1017M /mnt/freenas-boot/ROOT/default


but i cant enter the /mnt/freenas-boot directory

if i enter /mnt there is no freenas-boot directory...

dont knwo how to proceed, sorry.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Well, you could look at zfs mount -l and see if you can work out what's going on.

But I return to my point that you really should be doing this on a different box (linux with zfs on linux installed) in order to avoid the conflict with your existing boot pool as originally suggested.
 

jackydany

Explorer
Joined
Mar 17, 2014
Messages
51
HI,

your command doesnt give back the pool i was looking for....
only the others...

maybe its because the freenas pool is degraded?

and i get your point with a different box, but this is an old freenas install and my box is a fairly new truenas install, but i will try to mount it somewhere else, just to be sure.
 

jackydany

Explorer
Joined
Mar 17, 2014
Messages
51
@sretalla
i now tried mounting it to a popos on a vm, passed through to the vm and installed zfs for linux

now i try to mount it and it tells me, was formatted used an incompatible version....

how to procedd, i am really out of ideas right now...
 
Top