NFS share in Solaris 10
Share NFS directory in solaris
1. Edit /etc/dfs/dfstab and update the entry
share -F nfs -o ro -d "NetBackUP Logs" /nbulogs
2. Issue this command to share the nfs
shareall
3. View the shares
showmount -e 0
showmount -e localhost
showmount -e judi-dev-01
4. Currently exported NFS filesystems are listed in the /etc/dfs/sharetab
cat /etc/dfs/sharetab
NFS share zfs in solaris 11
1. NFS share in Solaris 10 ZFS
zfs set sharenfs='rw=judi-dev-01:judi-dev-02' testpool/datadir
2. NFS share in Solaris 11 ZFS
zfs set sharenfs=on testpool/datadir
zfs set share=name=datashare,path=/datadir,prot=nfs,root=@judi-dev-01:@judi-dev-02,rw=@judi-dev-01:@judi-dev-02 testpool/datadir OR
zfs set share=name=oracledata,path=/datadir,prot=nfs,r,sec=sys,rw=*,root=*,anon=root pool/tempfs
3. To un-share the file system we shared :
zfs unshare testpool/datadir
4. To get details about the nfs share and its properties
zfs get share testpool/datadir
zfs get sharenfs testpool/datadir
cat /etc/dfs/sharetab
5. Mount with options
mount -F nfs -o proto=tcp,vers=3,rw,bg,soft,rsize=32768,wsize=32768,timeo=600 judi-dev-01:/temp_DB_migration /temp_DB_space
For error :- ORA-27054: NFS file system where the file is created or resides is not mounted with correct options - Mount with below option
mount -o rw,timeo=600,hard,wsize=32768,vers=3,rsize=32768,proto=tcp judi-dev-01:/vol/vol_db_migration_002/migration /temp_DB_space
RMAN Mount point option for Solaris :
mount -o rw,bg,hard,nointr,rsize=1048576,wsize=1048576,vers=3,proto=tcp,forcedirectio judi-dev-01:/vol/vol_db_migration_002/migration /temp_DB_space
No comments:
Post a Comment