Date: Fri, 14 Jun 2013 16:06:33 +0300 From: Volodymyr Kostyrko <c.kworr@gmail.com> To: Dr Josef Karthauser <josefkarthauser@gmail.com> Cc: "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>, fs@freebsd.org Subject: Re: Help! :( ZFS panic on boot, importing pool after server crash. Message-ID: <51BB1559.7050803@gmail.com> In-Reply-To: <9AF22029-B753-4D74-A798-11C0A1C55D88@gmail.com> References: <301B4131-F677-4B8D-ABF6-A6D269FE604E@gmail.com> <51BAF7E3.4020401@gmail.com> <9AF22029-B753-4D74-A798-11C0A1C55D88@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
14.06.2013 15:51, Dr Josef Karthauser: > On 14 Jun 2013, at 12:00, Volodymyr Kostyrko <c.kworr@gmail.com> wrote: > >> 14.06.2013 12:55, Dr Josef Karthauser: >>> Hi, I'm a bit at the end of my tether. > >>> p.s. the config, btw, is a ZFS mirror on two ad devices. It's got a ZFS root file system. >> >> If you are fairly sure about your devices you can: >> >> 1. Remove second disk from pool or create another pool on top of it. >> >> 2. Recreate all FS structure on the second disk. You can dump al your FS with something like: >> > > Great. Thanks for that. > > Have you got a hint as to how I can get access to the root file system? It's currently set to have a legacy mount point. Which means that when I import the pool: > > # zfs import -o readonly=on -o altroot=/tmp/zfs -f poolname > > the root filesystem is missing. Then if I try and set the mount point: > > #zfs set mountpoint=/tmp/zfs2 poolname > > it just sits there; probably because the command is blocking on the R/O pool, or something. > > How do I temporarily remount the root filesystem so that I can get access to the files? mount -t zfs <pool-name> <mountpoint> Personally when I need to work with such pools I first import the pool with -N (nomount) option, then I mount root fs by hand and after that goes `zfs mount -a` which handles everything else. -- Sphinx of black quartz, judge my vow.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51BB1559.7050803>