Date: Sun, 6 Jan 2008 17:38:30 +0100 From: Jose Garcia Juanino <jjuanino@gmail.com> To: Greg Byshenk <freebsd@byshenk.net> Cc: stable@freebsd.org Subject: Re: Cannot mount a nfs share after doing a snapshot Message-ID: <20080106163830.GA3790@gauss.sanabria.es> In-Reply-To: <20080106144120.GD4601@core.byshenk.net> References: <20080105222831.GA862@gauss.sanabria.es> <20080106144120.GD4601@core.byshenk.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Greg El domingo 06 de enero a las 15:41:21 CET, Greg Byshenk escribi=F3: > On Sat, Jan 05, 2008 at 11:28:31PM +0100, Jose Garcia Juanino wrote: > =20 > > I have a 7.0-PRERELEASE i386 system with a nfs server, with an unique e= xport > > line in /etc/exports file: > >=20 > > / -maproot=3Droot -network 192.168.1.0 -mask 255.255.255.0 > >=20 > > After a reboot, I have no problem mounting this nfs share from a nfs cl= ient. > > But after issuing the following command on the server: > >=20 > > # mount -u -o snapshot /.snap/now / >=20 > Is the problem that you are trying to mount your snapshot on top of the / > directory? I use snapshots, but have never tried to do this, and can=20 > imagine that there might be a problem, since the snapshot is itself a > snapshot of a filesystem (different than the actual root filesystem). >=20 > That would explain the error: >=20 > > Jan 5 22:47:03 gauss mountd[542]: can't delete exports for /: Cross-de= vice link No, I am not trying to mount the snapshot. I am just taking (making) the snapshot, as man mount says. > What happens if you create a directory and mount your snapshot there: >=20 > mkdir /snapshotmount > mount -u -o snapshot /.snap/now /snapshotmount > > If this works, then you may need a separate exports line for /snapshotmou= nt. # file /.snap/now /.snap/now: Unix Fast File system [v2] (little-endian) last mounted on /, last written at Sun Jan 6 16:24:19 2008, clean flag 1, readonly flag 1, number of blocks 130721, number of data blocks 126520, number of cylinder groups 4, block size 16384, fragment size 2048, average file size 16384, average number of files in dir 64, pending blocks to free 0, pending inodes to free 0, system-wide uuid 0, minimum percentage of free blocks 8, TIME optimization # mkdir /snapshotmount # mount -u -o snapshot /.snap/now /snapshotmount mount: /.snap/now : Invalid argument The commands crashes becuase /snapshotmount is not a file system. > If this fails, does it work if you use the more roundabout mount? That is >=20 > mdconfig -a -t vnode -f /.snapn/now -u 4 > mount -r /dev/md4 /snapshotmount Take into account that /.snap/now snapshot did not exists before, thus your first command fails: # mdconfig -a -t vnode -f /.snap/now -u 4 mdconfig: could not open /.snap/now: No such file or directory Thanks a lot for your reply. Regards --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHgQQGFOo0zaS9RnIRAlkcAKCPgAKN3rEJTmcktNQRENvzpvn+VACglA61 x/ZLPxC+isrYLZL45iwzdZE= =8ZKc -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080106163830.GA3790>