Sol Group

Sol Group
Post your issues!!!! Solaris 11 Ultimate Support

Wednesday, December 4, 2013

How to create NFS Server ?

NFS Server (  Using File ) :-
How to create NFS Server ?
# mkfile 1G file1
It will create a file with 1GB size
# mkfile 1G file2
# zpool create <volume name > file1 file2
This will create a zpool volume by using file1 & file2.Then we will get 2GB volume size
# zfs create <volume name >/<filesystem name>
It will create a zfs file system.
# zfs set quota=<required size> <volume name>/<file system name>
If we need to set quota for zfs file system use this command
# zfs set mountpoint = < directory to mount>  <volume name>/<file system name>
It will mount the zfs file system where we need
# zfs set compression=zip – [1-9] <volume name>/<file system name>
It will zip the file system.
1-9 are the zip types
# zpool get all volume name> / <file system name>
It will show the properties of the zfs file system
# zfs sharenfs=on volume name> / <file system name>
It will create nfs server
# dfshares
# showmont –e
It will show the shared file system in local machine
# showmont –e <ip>

It will show the shared file system in remote machine.

No comments:

Post a Comment