AIX Replace CIFS by local FS

Hello Everybody, ,

I need some specific help�

Straight to the point, I have a server AIX 5.3 with CIFS Windows Server Shared folder (see en example below )

 
//X.X.X.X/share$/folder1  /server/rep1/folder1
//X.X.X.X/share$/folder2  /server/rep1/folder2
 
//X.X.X.X/share$/folder1  /server/rep2/folder1
//X.X.X.X/share$/folder2  /server/rep2/folder2

We need to change our system and replace the CIFS link between Unix and windows by a local FS

I'm not a UNIX specialist and i don't know how to do that ?

If you look our configuration //X.X.X.X/share$/folder1 have two mount points (same conf with //X.X.X.X/share$/folder2 ).

How i can have the same configuration with a single FS, i thought use a symbolic link by i'm not sure ?

1 / Create FS

2 / mount /dev/sda3 /server/rep1/
3 / cd /server/rep1/
4/ mkdir folder1
5/ mkdir folder2
 
6 / cd /server/rep2
7/ ln -s /server/rep2/folder1 /server/rep1/folder1
8/ ln -s /server/rep2/folder2 /server/rep1/folder2

I'm afraid to be on the wrong take , i will appreciate any feedback!
Ben

Not entirely clear on the question -- you want AIX to serve the share to Windows instead of vice versa?

Hello ,

In fact we want replace the CIFS mount point by a local FS

Cheers

Create a local filesystem for /server/rep1/folder1 & /server/rep1/folder2, then add a link for /server/rep2 to match /server/rep1.

That should do it, unless I've missed the point. You may, of course want to know how to achieve these steps.

  • Make the directory /server/rep1 with:-
    text mkdir -pm 777 /server/rep1

  • Link the directories with:-
    text ln -s /server/rep1 /server/rep2

  • Create the filesystems /server/rep1/folder1 & /server/rep1/folder2 using the smit panels:-
    text smit fs
    .... or there are command line ways too, but you would need to tell us more.
    .
  • Mount the fileysystems:-
    text mount /server/rep1/folder1 mount /server/rep1/folder2

Of course, to move the data, it's probably easier to mount the CIFS elsewhere and then copy it across.

I'm not sure where to pitch the instructions, so let me know if this is clear or not.

Regards,
Robin

Hi,

thanks for the quick feeback, why create two local filesystem ?

Actually , the share have two mont points
//X.X.X.X/share$/folder1 /server/rep1/folder1
//X.X.X.X/share$/folder2 /server/rep1/folder2

//X.X.X.X/share$/folder1 /server/rep2/folder1
//X.X.X.X/share$/folder2 /server/rep2/folder2

But it the same data reachable from rep1 and rep2

I thought create 1 FS, mount on /server/rep1 (or Rep2 whatever )

And after create folder1 and folder2 .
finally , create symbolic link on rep2

that's make sense ?

Cheers

You could do that. I was just trying to replicate what you have as two shared Windoze folders with two filesystems mounted to match. How separate is the content in these two areas? Could one of them grow unexpectedly causing problem for the other?

If you wish to have one large allocation, you could even create it as /server unless that is already in use for something else. It's entirely up to you.

Robin