modify NFS share

Status
Not open for further replies.

lovebsd

Cadet
Joined
Apr 30, 2014
Messages
3
Dear all;

I created a NFS share on ZFS pool itself rather than on individual dataset. It has some data on this share. Now I wanted to modify this to share the individual dataset, but want to keep the data. Is there an easy way to do this?

Thanks,
-Chen
 
D

dlavigne

Guest
Remove the share on the pool and create a share for the dataset. A share does not affect the data itself, just access to the data.
 

lovebsd

Cadet
Joined
Apr 30, 2014
Messages
3
Thanks dlavigne, I modified the share and now I have the share on one dataset in the pool. But how can I get or delete the data saved with previous share on whole pool, so at least I can allocate the disk space? Basically, with this new share, there is no data seen and there is 40% disk space already occupied.
 
D

dlavigne

Guest
You should be able to copy the desired data into the dataset.
 

lovebsd

Cadet
Joined
Apr 30, 2014
Messages
3
Thanks dlavigne, can you give me a little detail how? How can see and delete the previous data as root?
 
D

dlavigne

Guest
It depends how you are acessing the data. Are you ssh'ing or using the Shell. Using a CIFS, AFP, or NFS share?

If over ssh or Shell, you could cp -R needed_directory to the new location or use tar to create and extract an archive. If you're coming in through Windows or Mac, you should be able to use their file managers to move things about.
 
Status
Not open for further replies.
Top