From owner-freebsd-fs@freebsd.org Fri Jan 24 22:47:05 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 49B481FE816 for ; Fri, 24 Jan 2020 22:47:05 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-qb1can01on0622.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5c::622]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 484Dm74ljXz4fdy for ; Fri, 24 Jan 2020 22:47:03 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gr0YK+gXVWN35ORtikXh3AuMCyYoSf678qUwaW/Tfi6ixx7erSTMz0UZ0q8l9ncTvDj86M25zcoOcXvz3MHJzPSxJZH3F5ONTKUanfKRwHCQKVcXDisSYA+aI+r8sDNm8f/dg2StCXLWB+jX/kMUI2RV4ebdftBwDe7ylIYdmb7IJx0BX0K0nY8iiVc7dp5q7LqxGv8+jJ7AX4qfOpyqacwpaA6ngg3uHuFFFDI8CY1ktYw2WjJO0fPSx1K3058hi+O7opR2HtnqbNy8lln8odD892vwnVVVDm7AgAWupVVI5pkxsMEEQgObrHYYFE60PCigxDAmM5OQI1jvBNIvWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rnrMGq5LAv+M8whl4jcUPg4hAGODCTNMzcvpCB4iFhk=; b=VGFfnfd3sfsIksMhn7qnnADlpDmbxNS5GvKBZuIyyRoRo6i9r0x/DVDySATzC6PTU9GmRibMOazsJg0YrdD4n8n2kKWBgEvTXiIg3viGjKaNWk3DHcUK1KKwF8psTWboaWijE5R+BpNIJh2KzQw793/3Bp6gyHMY2DdufCs5C+E7L1mWLyIfOEcATsBK2H+eWkcPXTzMwZytUBgB7GC/dF7CmsLtxSsRWo3LAYyZQPy7akWkcD0sXWaamnlwPKeyn6EBG+Q+zWqABNmxMFBo9s4WpII0QM/ermUNCB8gOZP+hBWHTs0uG2Nj9ZH9qR77Urmz/VNLvyuxNSMONciiXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none Received: from YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM (52.132.69.153) by YQBPR0101MB0882.CANPRD01.PROD.OUTLOOK.COM (52.132.67.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.20; Fri, 24 Jan 2020 22:47:01 +0000 Received: from YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM ([fe80::6588:45c3:4892:f98]) by YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM ([fe80::6588:45c3:4892:f98%7]) with mapi id 15.20.2665.017; Fri, 24 Jan 2020 22:47:01 +0000 From: Rick Macklem To: mike tancsa , freebsd-fs Subject: Re: export a zfs snapshot over nfs Thread-Topic: export a zfs snapshot over nfs Thread-Index: AQHV0su15M1v6A1tGUack/uHb2t6QKf6aN0L Date: Fri, 24 Jan 2020 22:47:00 +0000 Message-ID: References: <62fc92d6-7a31-9dac-d237-082cc71d0dd9@sentex.net> In-Reply-To: <62fc92d6-7a31-9dac-d237-082cc71d0dd9@sentex.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c71a03b2-3f91-42aa-f8a5-08d7a11f5364 x-ms-traffictypediagnostic: YQBPR0101MB0882: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 02929ECF07 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(39860400002)(376002)(346002)(396003)(199004)(189003)(110136005)(786003)(316002)(86362001)(6506007)(7696005)(26005)(186003)(8676002)(81166006)(81156014)(8936002)(71200400001)(5660300002)(66946007)(91956017)(66446008)(64756008)(66556008)(66476007)(52536014)(76116006)(33656002)(478600001)(55016002)(966005)(9686003)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:YQBPR0101MB0882; H:YQBPR0101MB1427.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Hn9lFQ1YrumjpHsR26ja4xy2GwORrry8UzV/AFDsZK3y6HPTjZqzUj/xpfqXHbNfuLU8ZwLzX3GTIZoyujbmwz6eHtBWdS/3cdh0M7C7d8n2kcmby8ofECuwhRBAIdP8FnB1CvAel3Im5eeopD0VY5UvfVgGerTSN1CNEmys+muUxphHUSgftV9lFD1AkP+/Ynve4mjeYidWtFeH5I9EMjnA0TaZIJtVArvj0mNaL4GnFRZ/bn3is5+BKlzMCVGXOcxoloB2XMwJ/IGEyLoAhiI5VsegpCbHXhRFnLesHnQYtni+sTvvCCUAsKRbPymmkWjAF6PReJ5YMJMI3svc3oUhcrx0fcZGxVEsuFRU0qwxLjuexS7Pz/Fc6j6xTEYMRGkUtJXZvl/eMSaLrzv4AskfZaw2Px9D96eXMqjldUwTLaR0MPUAvZtrUHfZ09vUQvTJ3/EJVjzzAPtiFoiSK7K1BCEV2QMngjUVILuwqmQ= x-ms-exchange-antispam-messagedata: LDKq+fs3sv57QI4PGFzACnhzZ0EerhvRhS6uakS8vuJKMpyX/Lpmud5xxjYvtzI4Llapt+R5YIUUDrgz5O9ugZqReJb95mQ5SF3oUf5deA+W1tB9ml25ycdZbntYgnp5JUIaal53ildg1SDsVCA1ng== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: c71a03b2-3f91-42aa-f8a5-08d7a11f5364 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2020 22:47:00.9809 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LTwd2PcGvLlf38NtNAzHa9bYIzzfo6gU57oFd9zgK8K96jcvr4eY2UWpT1zr5XtvY1FPm7/boxzquzJdT0twMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB0882 X-Rspamd-Queue-Id: 484Dm74ljXz4fdy X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 2a01:111:f400:fe5c::622 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-4.68 / 15.00]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[uoguelph.ca]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-1.38)[ipnet: 2a01:111:f000::/36(-3.81), asn: 8075(-3.03), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; ARC_ALLOW(-1.00)[i=1] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2020 22:47:05 -0000 mike tancsa wrote:=0A= >On a backup server, I want to export a zfs snapshot via nfs, but I cant=0A= >seem to do it.=0A= >=0A= >given the snapshot is=0A= >backup2/zrepl/sink2/nfserver1/images/vms@zrepl_20190902_122114_000=0A= >=0A= >I can do something locally like=0A= >=0A= >mkdir /tmpmount=0A= >=0A= >add=0A= >=0A= >/tmpmount -maproot=3Dnobody 192.168.13.36=0A= >=0A= >and from the client machine mount /tmpmount.=0A= >=0A= >But if I do on the server=0A= >=0A= >mount -t zfs=0A= >backup2/zrepl/sink2/nfserver1/images/vms@zrepl_20190902_122114_000 /tmpmou= nt=0A= >=0A= >and then try and mount from the client, I get a permission denied.=0A= >=0A= >I can work around it by creating a quick clone of the snapshot and=0A= >mounting the clone. But was curious as to why I cant do it the first way = ?=0A= >=0A= >server is releng12 and nfsv3=0A= I am happy to say I never use ZFS, but if I were to guess, it will have som= ething=0A= to do with the fsid of the file system.=0A= =0A= NFSv3 mounts do not cross server mount points (which are recognized by a ch= ange=0A= in the FSID). I believe that a snapshot appears to be a different file syst= em (ie. different=0A= FSID). ZFS does some sort of weird "pseudo mount" of snapshots, I think?=0A= =0A= You did not mention doing a separate export line for the snapshot, which wo= uld be=0A= needed to mount it, if it is a different FSID.=0A= --> You could try...=0A= 1 - Adding an export line to /etc/exports for the snapshot's directory path= .=0A= or=0A= 2 - Use an NFSv4 mount of a higher level directory, since NFSv4 does cross = server=0A= mountpoints/FSID changes.=0A= =0A= rick=0A= =0A= ---Mike=0A= =0A= =0A= _______________________________________________=0A= freebsd-fs@freebsd.org mailing list=0A= https://lists.freebsd.org/mailman/listinfo/freebsd-fs=0A= To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"=0A=