Hi, I''ve accidentally put a double slash in a mountpoint, and now can''t change it. # zfs list ... dataPool/SoftwareRepo 529G 31.3T 73.1K /sw-repo1/ dataPool/SoftwareRepo/dir1 6.10G 31.3T 6.10G /sw-repo1//dir1 dataPool/SoftwareRepo/dir2 26.0G 31.3T 25.7G /sw-repo1//dir2 ... # zfs get mountpoint dataPool/usrLocalSoftwareRepo NAME PROPERTY VALUE SOURCE dataPool/SoftwareRepo mountpoint /sw-repo1/ local # zfs set mountpoint=/sw-repo/ dataPool/SoftwareRepo cannot unmount ''/sw-repo1/dir2'': Device busy Anyone know how to fix it? I can''t even do a zfs destroy I''m running snv_133 Cheers John -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5182 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100421/bea74c49/attachment.bin>
Ryan John wrote:> Hi, > > I''ve accidentally put a double slash in a mountpoint, and now can''t change it. > > # zfs list > ... > dataPool/SoftwareRepo 529G 31.3T 73.1K /sw-repo1/ > dataPool/SoftwareRepo/dir1 6.10G 31.3T 6.10G /sw-repo1//dir1 > dataPool/SoftwareRepo/dir2 26.0G 31.3T 25.7G /sw-repo1//dir2 > ... > # zfs get mountpoint dataPool/usrLocalSoftwareRepo > NAME PROPERTY VALUE SOURCE > dataPool/SoftwareRepo mountpoint /sw-repo1/ local > # zfs set mountpoint=/sw-repo/ dataPool/SoftwareRepo > cannot unmount ''/sw-repo1/dir2'': Device busy > > Anyone know how to fix it? > I can''t even do a zfs destroy > > I''m running snv_133 > >Try zfs inherit mountpoint dataPool/SoftwareRepo to reset the mountpoint. -tim> Cheers > John > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
Hi Timothy, That didn''t work either. # zfs inherit mountpoint dataPool/SoftwareRepo cannot unmount ''/sw-repo1/dir2'': Device busy Regards John -----Original Message----- From: Timothy Haley [mailto:tim.haley at Oracle.com] Sent: Wednesday, 21 April 2010 5:52 AM To: Ryan John Cc: zfs-discuss at opensolaris.org Subject: Re: [zfs-discuss] Double slash in mountpoint Ryan John wrote:> Hi, > > I''ve accidentally put a double slash in a mountpoint, and now can''t change it. > > # zfs list > ... > dataPool/SoftwareRepo 529G 31.3T 73.1K /sw-repo1/ > dataPool/SoftwareRepo/dir1 6.10G 31.3T 6.10G /sw-repo1//dir1 > dataPool/SoftwareRepo/dir2 26.0G 31.3T 25.7G /sw-repo1//dir2 > ... > # zfs get mountpoint dataPool/usrLocalSoftwareRepo > NAME PROPERTY VALUE SOURCE > dataPool/SoftwareRepo mountpoint /sw-repo1/ local > # zfs set mountpoint=/sw-repo/ dataPool/SoftwareRepo > cannot unmount ''/sw-repo1/dir2'': Device busy > > Anyone know how to fix it? > I can''t even do a zfs destroy > > I''m running snv_133 > >Try zfs inherit mountpoint dataPool/SoftwareRepo to reset the mountpoint. -tim> Cheers > John > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5182 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100421/c363f617/attachment.bin>
On Tue, Apr 20, 2010 at 7:38 PM, Ryan John <john.ryan at bsse.ethz.ch> wrote:> Anyone know how to fix it? > I can''t even do a zfs destroyzfs unmount -a -f -B -- Brandon High : bhigh at freaks.com
Thanks. That was it -----Original Message----- From: Brandon High [mailto:bhigh at freaks.com] Sent: Wednesday, 21 April 2010 6:57 AM To: Ryan John Cc: zfs-discuss Subject: Re: [zfs-discuss] Double slash in mountpoint On Tue, Apr 20, 2010 at 7:38 PM, Ryan John <john.ryan at bsse.ethz.ch> wrote:> Anyone know how to fix it? > I can''t even do a zfs destroyzfs unmount -a -f -B -- Brandon High : bhigh at freaks.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5182 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100421/4fb756ab/attachment.bin>
but it suggests that it had nothing to do with a double slash - rather some process (your shell?) had an open file within the mountpoint. But supplying -f you forced zfs to unmount it anyway. -- Robert Milkowski http://milek.blogspot.com On 21/04/2010 06:16, Ryan John wrote:> Thanks. That was it > > -----Original Message----- > From: Brandon High [mailto:bhigh at freaks.com] > Sent: Wednesday, 21 April 2010 6:57 AM > To: Ryan John > Cc: zfs-discuss > Subject: Re: [zfs-discuss] Double slash in mountpoint > > On Tue, Apr 20, 2010 at 7:38 PM, Ryan John<john.ryan at bsse.ethz.ch> wrote: > >> Anyone know how to fix it? >> I can''t even do a zfs destroy >> > zfs unmount -a -f > > -B > > > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100421/7341ad0b/attachment.html>