1834048 Members
2230 Online
110063 Solutions
New Discussion

Sharing the volume group

 
SOLVED
Go to solution
Mousa55
Super Advisor

Sharing the volume group

Hi
I have rp8420 server with 4 partitions , and I am creating a new volume group
With new mount point /backup on the first partition
I want the another partition only one server to see this mount point
And he can to save on it ( on the volume group on the first partition)
In simply how to work this volume sharing between two server.
#bdf
/dev/vg11/lvol1 102400000 89308448 12989336 87% /Backup

Thanks & kind Regards
16 REPLIES 16
Mousa55
Super Advisor

Re: Sharing the volume group

Hi
This some notes
the volume group â â vg11â â on the first partition contains only two disk from SAN storage
I need two server to read and write on this volume group, and if I want to prevent on one
Server the write option how that ?
And I donâ t have cluster on my server, and I have 11.11 OS version

Thanks & kind Regards
Jeeshan
Honored Contributor

Re: Sharing the volume group

Hi

you can share this file system via NFS.
a warrior never quits
Mousa55
Super Advisor

Re: Sharing the volume group

slam
thanks ahsan for your repliese,but i need more details about using NFS in share the volume group

thanks
Davis Paul
Valued Contributor
Solution

Re: Sharing the volume group

Hi Nejad,

If you want to start an NFS server without rebooting the system, follow these steps.

1) Edit the /etc/exports file and add entries for exported file systems.
2) Use the exportfs -a command to export these file systems.
3) Edit the /etc/rc.config.d/nfsconf file and set proper values to different variables as mentioned
earlier.
4) Execute the /sbin/init.d/nfs.core start command.
5) Execute the /sbin/init.d/nfs.server start command.

The client configuration process
1) Edit the /etc/rc.config.d/nfsconf file to enable an NFS client to be started at boot time.
2) Edit the /etc/fstab file to mount remote file systems at system boot time.
3) Create mount points for the remote file systems.
4) Ensure that the name of the NFS server is present in the /etc/hosts file if NIS or DNS are not
being used.

Jeeshan
Honored Contributor

Re: Sharing the volume group

yes Davis is right.

I include here to verify the rpc, mountd and nfsd is runnig using the command

#rpcinfo -p
a warrior never quits
Mousa55
Super Advisor

Re: Sharing the volume group

Hi
plz check if this correct or no
and what is the countain of /etc/exports file exactly.

1- vi /etc/exports
/dev/vg11/lvol1
2- exportfs -a
3- in this file /etc/rc.config.d/nfsconf
what is the variable which i can changed
4- Execute the /sbin/init.d/nfs.core start command.
5- Execute the /sbin/init.d/nfs.server start command
in The client configuration process
1- what is the exactly in this /etc/rc.config.d/nfsconf file to changed to enable an NFS client to be started at boot time.
2- Edit the /etc/fstab
/dev/vg11/lvol1 /Backup1 vxfs delaylog,largefiles 0 9
3- mkdir /Backup1


thanks and best regards
Jeeshan
Honored Contributor

Re: Sharing the volume group

in NFS server configure the followings in /etc/rc.config.d/nfsconf

NFS_SERVER=1
START_MOUNTD=1
NUM_NFSD=16
PCNFS_SERVER=1
LOCKD_OPTIONS=""
STATD_OPTIONS=""
MOUNTD_OPTIONS=""

and in clinet machine configure the same file suing this

NFS_CLIENT=1
NUM_NFSIOD=16
LOCKD_OPTIONS=""
STATD_OPTIONS=""
a warrior never quits
Mousa55
Super Advisor

Re: Sharing the volume group

Hi
stay Some query
in NFS server
i am create new export file because is no available, by using vi command
vi /etc/exports
after that i am using exportfs -a /Backup to export this filesystem but this message appeared
(exportfs error: invalid argument(s) with -a option)
and i am tray with #exportfs /Backup command
but another message appared
exportfs error: /home not found in /etc/exports

and to The client configuration process

when edit the /etc/fstab on the client
add this
server:/Backup /Backup vxfs default 0 0

the server:/Backup it is /dev/vg11/lvol1:/Backup this correct or no

thanks and best regards
Jeeshan
Honored Contributor

Re: Sharing the volume group

you have either problems in

file permission in /etc/exports. it will be 666.

or did u apply command exportfs -a while runnig /sbin/init.d/nfs.server?

run first
#/sbin/init.d/nfs.server start
it will read information listed in /etc/exports
a warrior never quits
Mousa55
Super Advisor

Re: Sharing the volume group

Hi
thanks ahsan for your repliese, but the problem is still i can't export any filesystm i am change the permation and start this scribt #/sbin/init.d/nfs.server start
for reminding i want to share file between two server, not between server and client

thanks
Mousa55
Super Advisor

Re: Sharing the volume group

Hi
the #exportfs -a /home command it is not working
the problem is still
the /etc/exports file i am creating wwith vi command
plz help me i want to share filesystem from server to another server how???
thanks
Jeeshan
Honored Contributor

Re: Sharing the volume group

NFS is the solution to share file system from one server to another.

you did exportfs -a /backup, its wrong

you apply command

#exportfs -a
a warrior never quits
Davis Paul
Valued Contributor

Re: Sharing the volume group

Hi,
Check the example of /etc/exports file:
/home -access=myhp:hp0
/usr/share/man -ro
/opt/apps -ro
Then execute the command # exportfs -a

Dennis Handly
Acclaimed Contributor

Re: Sharing the volume group

>after that i am using exportfs -a /Backup
>exportfs error: invalid argument(s) with -a option

As mentioned by others, with -a, exports all of the filesystems in /etc/exports.

>i try with #exportfs /Backup but another message appeared
>exportfs error: /home not found in /etc/exports

What's the relation between /Backup and /home?

>when edit the /etc/fstab on the client add this
>server:/Backup /Backup vxfs default 0 0

This isn't vxfs but NFS. You may want to use SAM to help you export and to mount it on the client.

>i want to share file between two server, not between server and client

You can't. You can only share the filesystem from a NFS server to NFS clients.
Prashanth Waugh
Esteemed Contributor

Re: Sharing the volume group

Hi,

you want to share the volume group or file system between two node ?
For success, attitude is equally as important as ability
Mousa55
Super Advisor

Re: Sharing the volume group

Hi
thanks for all
my problem is solved