LinuxQuestions.org
Visit Jeremy's Blog.
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 09-17-2012, 08:51 PM   #1
jagdip
LQ Newbie
 
Registered: Feb 2011
Posts: 29

Rep: Reputation: 0
share folder between two systems


I need to set up shared directory between two solaris systems running 10.9. i have licenses for vxfs file systems also. what will be the best way to share folder between these two systems? is there something offered by vxfs file system which has advantage?
 
Old 09-18-2012, 12:22 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Use NFS.

Assuming the directory you want to share is /data/shared-directory, on the server side, run:

Code:
mkdir /data/shared-directory
chmod 04777 /data/shared-directory
echo "share -F nfs -o rw /data/shared-directory" >> /etc/dfs/dfstab
svcadm enable -r nfs/server
On the client side (replace server1 by the first server IP address)
Code:
mkdir /data/shared-directory
echo "server1:/data/shared-directory - /data/shared-directory nfs - yes rw,soft" >> /etc/vfstab
mount /data/shared-directory
 
Old 09-18-2012, 07:53 AM   #3
jagdip
LQ Newbie
 
Registered: Feb 2011
Posts: 29

Original Poster
Rep: Reputation: 0
Thank you.

can i use this NFS share on server and client at the same time? in other words, i will be using server1 as NFS server and server2 as NFS client but both server1 and server2 can read write to NFS at the same time.
 
Old 09-18-2012, 10:29 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You definitely can, that wouldn't be a share otherwise.
 
Old 09-25-2012, 02:43 PM   #5
jagdip
LQ Newbie
 
Registered: Feb 2011
Posts: 29

Original Poster
Rep: Reputation: 0
Thank you. only problem with this design is that if NFS server goes down, NFS client will not have access to shared folder. because one node is acting like as NFS server and other is acting as client, it defeats the purpose of sharing folder as shared folder is only required to host some libraries of clustered software. those libraries will not be available to second node if first goes down ( acting as NFS server ) because second has no NFS share and it can not come up.

are there any other ways ?
 
Old 09-26-2012, 08:17 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by jagdip View Post
it defeats the purpose of sharing folder
It doesn't unless you demand an highly-available shared folder which you didn't state in your initial question.
Quote:
are there any other ways ?
HA solutions require a shared device and a file system supporting concurrent OS access natively like QFS, or a regular file system like UFS or VXFS with the global mount option (Sun Cluster).
 
Old 09-26-2012, 02:58 PM   #7
jagdip
LQ Newbie
 
Registered: Feb 2011
Posts: 29

Original Poster
Rep: Reputation: 0
Thanks.
I can look into VxFS with global mount. Do i need to configure Veritas Storage Foundation Cluster with heartbeat links and fencing disks before i create VxFS with global mount?
Can you direct me to some online resources?
 
Old 09-26-2012, 03:30 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Sorry, but I'm afraid I'm not familiar enough with Veritas and clustering software in general to be more helpful here.
 
  


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
Glusterfs: how to make two systems share a folder? saman_artorious Linux - Server 0 07-04-2012 09:43 AM
How to share data between two or more Linux systems? techy.akshay Linux - Newbie 7 05-29-2012 09:19 AM
How to set up public folder/ share folder for my network? Kiwi89 Linux - Server 6 10-31-2011 05:10 AM
How do you share your data in dual boot systems? jago25_98 Linux - General 7 06-01-2011 03:32 PM
unable to share a folder in suse 10.0, folder defaults to not shared sirius57 Linux - General 1 05-15-2010 03:33 AM

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

All times are GMT -5. The time now is 09:18 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