How do I export a zfs filesystem that I created?


 
Thread Tools Search this Thread
Operating Systems Solaris How do I export a zfs filesystem that I created?
# 1  
Old 01-08-2009
How do I export a zfs filesystem that I created?

I created a zpool and two ZFS volumes in OpenSolaris. I would like both ZFS volumes to be exportable. However, I don't know how to set that up.

These are the steps I did:

1) Create the zpool using raidz1 across five disks.

I have six disks and created a zpool across 5 of them. c4t0d0 already is being used by the default zpool so I excluded it.

zpool create raidpool raidz1 c4t1d0 c4t2d0 c4t3d0 c4t4d0 c4t5d0


2) Do a zpool status -v.

zpool status -v raidpool
pool: raidpool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
raidpool ONLINE 0 0 0
raidz1 ONLINE 0 0 0
c4t1d0 ONLINE 0 0 0
c4t2d0 ONLINE 0 0 0
c4t3d0 ONLINE 0 0 0
c4t4d0 ONLINE 0 0 0
c4t5d0 ONLINE 0 0 0



# Things look good so far....

3) Create the first volume with compression on and mountpoint set to where I want this volume's export point to be:

zfs create -V 80G -o compression=lzjb -o mountpoint=/vol01 raidpool/vol01

cannot create 'raidpool/vol01': 'mountpoint' does not apply to datasets of this type


# Shouldn't the mountpoint option work and then let me mount raidpool/vol01 as /vol01 from another host via NFS? This is my understanding from reading the ZFS Administration Guide.


# I also tried using mountpoint with the sharenfs option:

zfs create -V 80G -o compression=lzjb -o mountpoint=/vol01 -o sharenfs=on raidpool/vol01

cannot create 'raidpool/vol01': 'mountpoint' does not apply to datasets of this type


# Still doesn't work. How can I get raidpool/vol01 be an exportable volume to other hosts?

Thnx.
# 2  
Old 01-08-2009
try the same without the "-V 80G" option.
# 3  
Old 01-08-2009
Is the -V option mutually exclusive with -o mountpoint?

Thanx DukeNuke2. Not setting the -V option makes the ZFS directory exportable.

However, why is the zfs create -V option apparently mutually exclusive with the zfs create -o mountpoint option?
# 4  
Old 01-08-2009
The reason is that a ZFS volume is a zfs "block device emulation" it does not contain a filesystem and is therefore not exportable as ZFS via NFS. zvols can be exported over iSCSI or in the case of OpenSolaris as FC targets, however to export a zvol over NFS a filesystem (UFS for example) must be created on the volume, it must be mounted using the legacy mount option and it must also be exported using the legacy NFS share/dfstab method.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to finish expanding a zfs filesystem?

I have a esxi 6.7 server running a Solaris 10 x86 vm (actually a bunch of them). The VM uses zfs for the pools (of course). I expand the underlying ESX logical disk, for example from 50GB to 100gb, then I set autoexpand=on <pool> that belongs to the esx logical disk. what am i missing to... (2 Replies)
Discussion started by: mrmurdock
2 Replies

2. Solaris

Extend zfs storage filesystem

Hello, Need to ask the question regarding extending the zfs storage file system. currently after using the command, df -kh u01-data-pool/data 600G 552 48G 93% /data /data are only 48 gb remaining and it has occupied 93% for total storage. zpool u01-data-pool has more then 200 gb... (14 Replies)
Discussion started by: shahzad53
14 Replies

3. Solaris

ZFS Filesystem

Hi, Recently we have new server T5 Oracle. We set up it for our database. For out database files we set one zfs filesystem. When i use iostat -xc the output as below. As you see the value for vdc4 is quite high. extended device statistics cpu device ... (32 Replies)
Discussion started by: tharmendran
32 Replies

4. AIX

Problem with filesystem created after HACMP was shut down

There is a shared volume group connected to two AIX systems A and B on a shared storage. The shared volume group was regularly attached to the system A and in case of a system A crash, the system B should take over the shared volume group and resources on it. Resources on the shared storage:... (1 Reply)
Discussion started by: yamanu
1 Replies

5. Filesystems, Disks and Memory

Howto Convert a filesystem from Veritas to ZFS?

Hi Folks, Looking for info here more than any actual HowTo, does anyone know if there is an actual way of converting a Veritas or UFS filesystem to ZFS leaving the resident data intact. All that I have been able to find, including the commercial products seem to require the FS backed up from... (1 Reply)
Discussion started by: gull04
1 Replies

6. Solaris

Mount old zfs filesystem

Hey all, I have a machine with 16 drive slots. Two of the drives have a ZFS mirror of the operating system, the other 14 contain the storage raidz. So, after installing Opensolaris on the OS drives, how can I remount the storage raid? TIA (11 Replies)
Discussion started by: PatrickBaer
11 Replies

7. Solaris

Export/import ZFS ACL's

I've been wondering about this one, is there any way to do the following with ZFS ACL's (i.e. "copy" the ACL over to another file)? getfacl /bla/dir1 | setfacl -f - /bla/dir2 I know about inheritence on dirs, it doesn't work in this scenario I'm working on. Just looking to copy the ACL's. ... (3 Replies)
Discussion started by: vimes
3 Replies

8. Solaris

Why does the # of blocks change for a file on a ZFS filesystem?

I created a zpool and zfs filesystem in OpenSolaris. I made two NFS mount points: > zpool history History for 'raidpool': 2009-01-15.17:12:48 zpool create -f raidpool raidz1 c4t1d0 c4t2d0 c4t3d0 c4t4d0 c4t5d0 2009-01-15.17:15:54 zfs create -o mountpoint=/vol01 -o sharenfs=on -o... (0 Replies)
Discussion started by: sqa777
0 Replies

9. Filesystems, Disks and Memory

NFS export filesystem with several partitions

I want to export the file system which consist of several partition. For example I export / and there are /home, /usr partitions. On client side I can see all files in /, but /home and /usr are empty. So far I failed to find the way to make other partitions visible in one mount. :confused: Of... (2 Replies)
Discussion started by: fmtu2005
2 Replies
Login or Register to Ask a Question

Featured Tech Videos