LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 11-23-2007, 01:26 PM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Cannot share via NFS a ZFS filesystem


It was difficult to title this thread...

The long story. In the global zone I once had the following file systems:
Code:
root@suncarol:~$ zfs list
NAME            USED  AVAIL  REFER  MOUNTPOINT
tank            372G   210G  30.6K  /tank
tank/backup    24.5G   210G  24.5G  /tank/backup
tank/music     61.8G   210G  61.8G  /tank/music
tank/software  28.3G   210G  28.3G  /tank/software
tank/video      258G   210G   258G  /tank/video
root@suncarol:~$ zfs get sharenfs
NAME           PROPERTY  VALUE          SOURCE
tank           sharenfs  off            default
tank/backup    sharenfs  on             local
tank/music     sharenfs  on             local
tank/software  sharenfs  on             local
tank/video     sharenfs  on             local
and I had no problem mounting them from a remote host.

I then created a zone and assigned datasets tank/music and tank/video to that zone. Even after running netservices open, I couldn't mount those shares from a host, and the error was:
Quote:
slacklap:~# mount ssh-zone:/tank/music /mnt/tank/music/
mount.nfs: ssh-zone:/tank/music failed, reason given by server: Permission denied
I decided to solve _that_ problem later, so I removed those datasets from the zone, I cleared the zoned flag and remounted them in the global zone. After doing this, I cannot mount them from the same client from which, 10 minutes earlies, I could. The error is the same:
Quote:
slacklap:~# mount suncarol:/tank/music /mnt/tank/music/
mount.nfs: suncarol:/tank/music failed, reason given by server: Permission denied
What may have passed? And why couldn't I share those datasets from the zone?

Thanks,
Enrico.

Last edited by crisostomo_enrico; 11-23-2007 at 01:27 PM.
 
Old 11-23-2007, 02:55 PM   #2
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 36
Resolved.

I thought that having sharenfs=on would be sufficient to share the file system. A
Code:
# zfs share -a
solved the issue.

An I think that this, from opensolaris.org zones community FAQ solves the other question:
Quote:
Q: Can a zone be an NFS server?
A: A global zone can be an NFS server. A non-global zone cannot be an NFS server. This issue may be addressed in the future. See RFE 5102011. [August 2005]
Bye,
Enrico.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: What the "ultimate filesystem", Sun ZFS, means for your desktop, in Plain English LXer Syndicated Linux News 0 06-21-2007 01:31 PM
creating zfs filesystem jmral23 Solaris / OpenSolaris 2 01-08-2007 02:35 PM
LXer: ZFS filesystem for Linux? LXer Syndicated Linux News 0 08-07-2006 09:33 PM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 04:13 AM
Cannot unmount NFS if filesystem. jizlobber Red Hat 2 04-19-2006 11:07 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration