Re: I've borked my ZFS system upgrading to -STABLE
Kevin Day wrote: On May 27, 2009, at 11:49 AM, Steve Bertrand wrote: Hey all, In short, I've got a system with /boot on a USB thumb drive that I boot from, which then mounts root and the rest of the system from a 4-disk ZFS storage pool. However, during the upgrade, something didn't go quite right, and now when I boot, I end up with: /libexec/ld-elf.so.1: Shared object libc.so.7 not found required by sh While I don't have much help to get you fixed, I can tell you how this likely happened if you did a make world or make installworld at one point. The installworld script is told that /lib/libc.so.x has to have a chflags schg applied to it, making it unchangeable. So when installing, it deletes the old libc, copies the new libc over, tries to do a chflags on it, fails because ZFS doesn't support flags, so it deletes libc and gives up. libc is the first file that installworld tries to create using schg, so that's where it fails. The workaround is to do make installworld NO_FSCHG= so that it doesn't bother trying to set flags. That makes absolutely perfect sense! Thanks Kevin, I'll give that a try and go from there. Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: I've borked my ZFS system upgrading to -STABLE
Larry Rosenman wrote: On Thu, 28 May 2009, Ruben van Staveren wrote: On 28 mei 2009, at 19:33, Niki Denev nik...@cytexbg.com wrote: Just curious... doesn't a zfs upgrade -a do the same thing? The zpool upgrade is just for the pools, but the filesystems keep their original settings so we need to do that in a seperate move There is both a zpool upgrade and a zfs upgrade command. The zfs upgrade does the filesystems, and the zpool upgrade does the pool. The pool had not been upgraded. The system in which I've mounted the pool into is not -STABLE, and since the world didn't install on the original system, I couldn't upgrade the pool. For archive purposes, here is what I've done so far: # zpool import storage # zpool -t zfs storage /storage # ln -s /storage/usr/obj /usr/obj # cd /storage/usr/src # make buildworld NO_FSCHG DESTDIR=/storage ...and that's where I'm at right now. Thanks for all the help. I'll post back with the final results. Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: I've borked my ZFS system upgrading to -STABLE
Steve Bertrand wrote: Larry Rosenman wrote: On Thu, 28 May 2009, Ruben van Staveren wrote: On 28 mei 2009, at 19:33, Niki Denev nik...@cytexbg.com wrote: Just curious... doesn't a zfs upgrade -a do the same thing? The zpool upgrade is just for the pools, but the filesystems keep their original settings so we need to do that in a seperate move There is both a zpool upgrade and a zfs upgrade command. The zfs upgrade does the filesystems, and the zpool upgrade does the pool. The pool had not been upgraded. The system in which I've mounted the pool into is not -STABLE, and since the world didn't install on the original system, I couldn't upgrade the pool. For archive purposes, here is what I've done so far: # zpool import storage # zpool -t zfs storage /storage # ln -s /storage/usr/obj /usr/obj # cd /storage/usr/src # make buildworld NO_FSCHG DESTDIR=/storage ...other than having to put NO_FSCHG into /etc/make.conf, the above process worked perfectly, and now up up and running 7.2-STABLE with ZFS fully functional again. Thanks everyone! Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: I've borked my ZFS system upgrading to -STABLE
On 27 May 2009, at 22:44, Kevin Day wrote: tries to do a chflags on it, fails because ZFS doesn't support flags are the pools already upgraded to v13 ? if not please do so with zpool upgrade -a Then in single user mode do zfs list -H | awk '{print $1}' | xargs -n 1 zfs set version=3 flags should work now Regards, Ruben ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
on 28/05/2009 11:47 Ruben van Staveren said the following: On 27 May 2009, at 22:44, Kevin Day wrote: tries to do a chflags on it, fails because ZFS doesn't support flags are the pools already upgraded to v13 ? if not please do so with zpool upgrade -a Then in single user mode do zfs list -H | awk '{print $1}' | xargs -n 1 zfs set version=3 flags should work now Big thanks for the recipe! -- Andriy Gapon ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
On Thu, May 28, 2009 at 11:47 AM, Ruben van Staveren ru...@verweg.com wrote: On 27 May 2009, at 22:44, Kevin Day wrote: tries to do a chflags on it, fails because ZFS doesn't support flags are the pools already upgraded to v13 ? if not please do so with zpool upgrade -a Then in single user mode do zfs list -H | awk '{print $1}' | xargs -n 1 zfs set version=3 flags should work now Regards, Ruben Just curious... doesn't a zfs upgrade -a do the same thing? Regards, Niki ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
On 28 mei 2009, at 19:33, Niki Denev nik...@cytexbg.com wrote: Just curious... doesn't a zfs upgrade -a do the same thing? The zpool upgrade is just for the pools, but the filesystems keep their original settings so we need to do that in a seperate move Regards, Niki Regards, Ruben ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
On Thu, 28 May 2009, Ruben van Staveren wrote: On 28 mei 2009, at 19:33, Niki Denev nik...@cytexbg.com wrote: Just curious... doesn't a zfs upgrade -a do the same thing? The zpool upgrade is just for the pools, but the filesystems keep their original settings so we need to do that in a seperate move There is both a zpool upgrade and a zfs upgrade command. The zfs upgrade does the filesystems, and the zpool upgrade does the pool. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: l...@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893 ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
I've borked my ZFS system upgrading to -STABLE
Hey all, In short, I've got a system with /boot on a USB thumb drive that I boot from, which then mounts root and the rest of the system from a 4-disk ZFS storage pool. However, during the upgrade, something didn't go quite right, and now when I boot, I end up with: /libexec/ld-elf.so.1: Shared object libc.so.7 not found required by sh ...at the Enter full path of shell or RETURN for /bin/sh# prompt. Hitting return repeats the cycle. Rebooting to the old kernel does not help, as it was the installworld that failed. I can boot the box using alternate media, but I can't figure out the procedure to mount the ZFS pool into the filesystem. This box is a running-backup box, so I'm not overly concerned about the data, but I would like to learn how to properly get to the data if this situation arises in the future. Can someone provide some pointers on how to do this without destroying the pool? Steve smime.p7s Description: S/MIME Cryptographic Signature
Re: I've borked my ZFS system upgrading to -STABLE
On Wed, May 27, 2009 at 12:49 PM, Steve Bertrand st...@ibctech.ca wrote: Hey all, In short, I've got a system with /boot on a USB thumb drive that I boot from, which then mounts root and the rest of the system from a 4-disk ZFS storage pool. However, during the upgrade, something didn't go quite right, and now when I boot, I end up with: /libexec/ld-elf.so.1: Shared object libc.so.7 not found required by sh ...at the Enter full path of shell or RETURN for /bin/sh# prompt. Hitting return repeats the cycle. Rebooting to the old kernel does not help, as it was the installworld that failed. I've seen this before. My situation was different, as I had just installed the machine, finished a 'co' on the source tree and rebuilt world/kernel. Since there was nothing, production-wise, on the machine, I thought nothing of it and reinstalled. Had there been data on the machine, I would have dug deeper. I can boot the box using alternate media, but I can't figure out the procedure to mount the ZFS pool into the filesystem. Can you boot into single-user mode from the USB device? This box is a running-backup box, so I'm not overly concerned about the data, but I would like to learn how to properly get to the data if this situation arises in the future. Can someone provide some pointers on how to do this without destroying the pool? Unfortunately, I haven't played with ZFS (because of lack of hardware to run it on)... My reason for the post was to suggest single-user mode, if you haven't already tried. Also, to stop the repeated reboot, you could use /rescue/sh in place of /bin/sh (hopefully). -- Glen Barber ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
Hello, I can boot the box using alternate media, but I can't figure out the procedure to mount the ZFS pool into the filesystem. Either mount -t zfs tank/foo /foo or zfs mount mypool -- p...@opsec.eu+49 171 310137211 years to go ! ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
Dnia środa, 27 maja 2009 o 19:57:21 Kurt Jaeger napisał(a): zfs mount mypool You have to import ZFS pools first. 'zpool import' will list available pools. -- Cezary Morga Death in anonymity is the ultimate insult to human dignity. (Kathy Reichs) ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org
Re: I've borked my ZFS system upgrading to -STABLE
On May 27, 2009, at 11:49 AM, Steve Bertrand wrote: Hey all, In short, I've got a system with /boot on a USB thumb drive that I boot from, which then mounts root and the rest of the system from a 4-disk ZFS storage pool. However, during the upgrade, something didn't go quite right, and now when I boot, I end up with: /libexec/ld-elf.so.1: Shared object libc.so.7 not found required by sh While I don't have much help to get you fixed, I can tell you how this likely happened if you did a make world or make installworld at one point. The installworld script is told that /lib/libc.so.x has to have a chflags schg applied to it, making it unchangeable. So when installing, it deletes the old libc, copies the new libc over, tries to do a chflags on it, fails because ZFS doesn't support flags, so it deletes libc and gives up. libc is the first file that installworld tries to create using schg, so that's where it fails. The workaround is to do make installworld NO_FSCHG= so that it doesn't bother trying to set flags. -- Kevin ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org