-
as77good evening. small problem here. i have an ancient server running (# uname -a SunOS kvm1 5.11 omnios-b281e50 i86pc i386 i86pc) where the zpool was having problems. tried to change a disk, didnt work because of wrong sector alignment or whatsoever. made a new pool, send the data and then ... tried to export the pool and import it under the old
-
as77name. and there i ran into this bug: illumos/illumos-gate bd0f709 . so i can't reimport the pool anymore, and i fear the system is too old to do any updates. any chances to replace the zpool binary or do something else nasty?
-
as77# zpool import tank datapool
-
as77ld.so.1: zpool: fatal: libc.so.1: version 'ILLUMOS_0.37' not found (required by file /sbin/zpool)
-
as77ld.so.1: zpool: fatal: libc.so.1: open failed: No such file or directory
-
as77replacing with a current version doesnt work (as i would have expected)
-
as77so maybe i can try to grab an old installation image?
-
danmcdYour `zpool` binary needs a more modern libc than what's in your library search path.
-
danmcdDid you just grab a replacement zpool binary?
-
as77yeah, just because i was curious
-
danmcdIf so, you'll need to pull along a matching libc for it.
-
as77i fear i'll brick the rest of the system when i replace the libc
-
danmcdyou oculd do this.
-
danmcd- put a matching libc in /tmp/
-
danmcd(it'll need to be from /lib/amd64/libc.so if zpool is 64-bit. `file /sbin/zpool` is your friend)
-
danmcd- run zpool using LD_LIBRARY_PATH overrrides. Assume you have the matching libc.so in /tmp:
-
danmcd(and you're using bash or sh or ksh)
-
as77ksh on that one
-
danmcdLD_LIBRARY_PATH=/tmp /path/to/new/zpool import
-
danmcdyou MAY need other libraries too?
-
danmcdThis may cause more problems if it's a dependency hell thing.
-
as77i think so. maybe i'll look for an old system image of a slightly newer version.
-
as77if anyone has something around :)
-
danmcdSorry. The other trick I can think of involved running 'zpool' in mdb, and editing out the assert() call. :)
-
» danmcd has binary patched before, so he's biased. :)
-
as77sounds good to me. but i guess thats way above my level :)