1834200 Members
2796 Online
110066 Solutions
New Discussion

Re: NFS export question

 
Dr. Peer-Joachim Koch
Frequent Advisor

NFS export question

Hi,

we want to reorganize our NFS structure.
So currently we have

/Net/Groups/GroupXX (xx ~ 20 folders)

to

/Net/Group/ABX{X=1,3 some simple naming)/YY

So we want to move some of the group folders
within the new structure. Some smaller
file systems can be expanded, but we have also
a few filesystems with 300GB->1.2 TB. I just want to move the mountpoint into the structure.

How do I have to export it correctly ?
What would you do, to solve this problem ?

Bye, Peer
peko
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: NFS export question


NFS really doesn't play a role in this. You simply want to rename your filesystems.

Is each existing /Net/Groups/GroupXX a seperate LV?

Are they in the same VG?

is /Net an LV? Is /Net/Groups an LV?

a post of a "bdf" and vgdisplay -v vg## would help.

live free or die
harry d brown jr
Live Free or Die
Dr. Peer-Joachim Koch
Frequent Advisor

Re: NFS export question

Hi,

every folder is a single lv.

a bdf or vgdisplay is a little bit to long ;)

/dev/vg01/lv_Schimel -> /mnt/Local/Groups/AG_Schimel
/dev/vg01/lv_Schimel_2 -> /mnt/Local/Groups/AG_Schimel2
/dev/vg01/lv_Schimel_3 -> /mnt/Local/Groups/AG_Schimel3

(/Net/Groups is a link, the automounter exports
everything to this path)

So I would like to have something like
/mnt/Local/Groups/AG_Schimel/{1,2,3}
and then export only /mnt/Local/Groups/AG_Schimel with everything inside.

Bye, Peer
peko
harry d brown jr
Honored Contributor

Re: NFS export question


unmount all those lv's

vi /etc/fstab
make changes & save & exit vi

use "mv" command to rename directories and mkdir to creat sub's:

cd /mnt/Local/Groups
mv AG_Schimel 1
mkdir AG_Schimel
mv 1 AG_Schimel
mv AG_Schimel2 AG_Schimel/2
mv AG_Schimel3 AG_Schimel/3
...

mount -a

make any automounter changes as necessary.

live free or die
harry d brown jr
Live Free or Die
Dr. Peer-Joachim Koch
Frequent Advisor

Re: NFS export question

Hi,

but will NFS automatically export all lv within
this folder ?

Bye, Peer
peko
harry d brown jr
Honored Contributor

Re: NFS export question

You have to change /etc/exports.

live free or die
harry d brown jr
Live Free or Die
harry d brown jr
Honored Contributor

Re: NFS export question

and all clients!
Live Free or Die