AIX Replace CIFS by local FS


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers AIX Replace CIFS by local FS
# 1  
Old 05-08-2014
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 )
Code:
 
//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
Code:
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

Last edited by vbe; 05-09-2014 at 09:42 AM..
# 2  
Old 05-08-2014
Not entirely clear on the question -- you want AIX to serve the share to Windows instead of vice versa?
# 3  
Old 05-09-2014
Quote:
Originally Posted by Corona688
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
# 4  
Old 05-09-2014
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:-
    Code:
    mkdir -pm 777 /server/rep1

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

  • Create the filesystems /server/rep1/folder1 & /server/rep1/folder2 using the smit panels:-
    Code:
    smit fs

    .... or there are command line ways too, but you would need to tell us more.
    .
  • Mount the fileysystems:-
    Code:
    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
# 5  
Old 05-09-2014
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
# 6  
Old 05-09-2014
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX available cifs mount options

Hi, I can't find any documentation of all available mount options of mount -v cifs Unfortunately you can specify any fantasy options, no complains, and the mount command shows this option In particular I want to know if there is a possibility to completely disable cifs caching in aix,... (3 Replies)
Discussion started by: funksen
3 Replies

2. AIX

AIX 6.1 : Problem with cifs and win2012.

i want to connect a shared folder on a server w2k12 by cifs "mkcifsmnt", but without sucess, i tried to do the same on w2k3, it works, but both on win7 and w2k12 doesn't work, is there any suggestions about this problem, thks in advance. My aix version is 6.1 (3 Replies)
Discussion started by: aouiti
3 Replies

3. AIX

Mounting cifs on AIX

Hi All, I was trying to setup a file share between AIX and widnows servers. I have installed cifs filesets on my AIX LPAR. but when i was trying to mount the share on AIX , got the below errors. There was an error connecting the share or the server. Make sure the lsdev command shows that... (3 Replies)
Discussion started by: System Admin 77
3 Replies

4. AIX

Mount CIFS on AIX

Hello AIX gurus, I am trying to mount a CIFS share on AIX and I could use some help. Here are the environment details: AIX - 6100-05-01-1016 Domain Controller - WIN2K8R2 (authentication takes place here) CIFS share is stored on a NetApp storage array that is joined to the domain I have... (2 Replies)
Discussion started by: jhall
2 Replies

5. AIX

AIX cifs mount to Windows Server 2008 R2

Hi i have some problem to mount a Windows Server 2008 R2 share on AIX. I found the artikel 157701-aix-cifs-mount-windows-server-2008-share on the Forum (cant post the Link) witch decribe my situation but there is no solution. I can mount a share to a Windows 2003 SP2 Server but not to 2008 R2... (2 Replies)
Discussion started by: MrTee
2 Replies

6. AIX

CIFS Mount not mounting on my AIX server

Dear Experts, Im facing a unique situation. We got a windows server folder cifs mounted on my AIX server. Before restarting the win server I tried unmounting the cifs mount. It got hanged and win server was restarted however. Now Im trying to mount the same. It prompts for password... (3 Replies)
Discussion started by: jayadeava
3 Replies

7. AIX

CIFS Mount Problem in AIX 5.3 TL12 SP-01-1016

Hi all, We are experiencing below mentioned error on mounting windows Share on AIX 5.3 when we migrate our TL from 8 to TL12-SP01, we also checked the allowed password length for mounting CIFS which is fine(10 characters in our case). On IBM fix central site there is a fix IZ63140 for... (10 Replies)
Discussion started by: m_raheelahmed
10 Replies

8. AIX

AIX cifs: mount Windows Server 2008 share ?

Hello, I've been using AIX cifs to mount windows XP shares with no problems till now. Now it's Windows Server 2008 R2 - no go: mount -v cifs -n host1/user1/pass1 /share1 /mountpt1 There was an error connecting the share or the server. Make sure the lsdev command shows that device nsmb0 is in... (6 Replies)
Discussion started by: vilius
6 Replies

9. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

10. AIX

AIX 5.2 print to a local printer

HHi guys . I have this problem ,I'm trying to print to a local machine (windows from the aix box , I;m using tiny Term Emulator) I mean i have no idea what should i do to get this going. The printer is connect it to the pc , it does not have an ip address. Thanks a lot Jose (0 Replies)
Discussion started by: josramon
0 Replies
Login or Register to Ask a Question