Installation de CIFS sur AIX (montage Samba)
Memorandum
(Version 1)
|
Note Technique |
Date |
Classement
|
Page 1/6 |
||
|
Rédacteur : Fabrice SCEMAMA |
|||||
|
Historique |
|||||
|
Version |
Date |
Modifications |
|||
|
1.0 |
15/05/2009 |
Version Initiale |
|||
|
|
|||||
TABLE DES MATIERES
I. Objectifs et périmètre du document 3
Ce document couvre l'installation et l'utilisation du montage Samba (Microsoft Share) sous AIX. Il ne couvre pas le partage Samba de dossier AIX, qui suppose l'installation complète de Samba, et éventuellement aussi, la connexion à l'Active Directory. Ce point fera l'objet d'un autre document technique.
II. Installation du fileset
Le fileset requis se trouve sur le 1er CD d'installation d'AIX 5.3.0.0-05 (07/2006) :
-
\installp\ppc\bos.cifs_fs
Copier ce fichier dans le /tmp du serveur AIX, et exécuter les commandes en tant que root :
-
cd /tmp/AIX-5.3-CD1
-
installp -Y -aqXgd . bos.cifs_fs
On obtient (serveur MYSERVER) :
|
+—————————————————————————–+ Pre-installation Verification… +—————————————————————————–+ Verifying selections…done Verifying requisites…done Results…
SUCCESSES ——— Filesets listed in this section passed pre-installation verification and will be installed.
Selected Filesets —————– bos.cifs_fs.rte 5.3.0.50 # Runtime for SMBFS bos.cifs_fs.smit 5.3.0.50 # SMIT Interface for SMBFS
<< End of Success Section >>
+—————————————————————————–+ BUILDDATE Verification … +—————————————————————————–+ Verifying build dates…done FILESET STATISTICS —————— 2 Selected to be installed, of which: 2 Passed pre-installation verification —- 2 Total to be installed
0503-409 installp: bosboot verification starting… installp: bosboot verification completed. +—————————————————————————–+ Installing Software… +—————————————————————————–+
installp: APPLYING software for: bos.cifs_fs.smit 5.3.0.50 bos.cifs_fs.rte 5.3.0.50
. . . . . << Copyright notice for bos.cifs_fs >> . . . . . . . Licensed Materials – Property of IBM
5765G0300 (C) Copyright International Business Machines Corp. 1998, 2005.
All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Licensed Materials – Property of IBM
5765G0300 (C) Copyright International Business Machines Corp. 1998, 2006. (C) Copyright Regents of the University of California 1980, 1982, 1983, 1985, 1986, 1987, 1988, 1989.
All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. . . . . . << End of copyright notice for bos.cifs_fs >>. . . .
nsmb0 Available Finished processing all filesets. (Total time: 19 secs).
0503-409 installp: bosboot verification starting… installp: bosboot verification completed. 0503-408 installp: bosboot process starting…
bosboot: Boot image is 36642 512 byte blocks. 0503-292 This update will not fully take effect until after a system reboot.
* * * A T T E N T I O N * * * System boot image has been updated. You should reboot the system as soon as possible to properly integrate the changes and to avoid disruption of current functionality.
installp: bosboot process completed. +—————————————————————————–+ Summaries: +—————————————————————————–+
Installation Summary ——————– Name Level Part Event Result ——————————————————————————- bos.cifs_fs.smit 5.3.0.50 USR APPLY SUCCESS bos.cifs_fs.rte 5.3.0.50 USR APPLY SUCCESS bos.cifs_fs.smit 5.3.0.50 ROOT APPLY SUCCESS bos.cifs_fs.rte 5.3.0.50 ROOT APPLY SUCCESS |
III. Utilisation de CIFS_FS
|
Se connecter au serveur AIX en tant que root. |
|
|
mkdir /tmp/b |
Création d'un répertoire temporaire |
|
mount -v cifs -n 192.96.16.8/adm-scemama/xxxxxxxx -o wrkgrp=LEDOMAINE,fmode=755 /fscemama /tmp/b |
Montage sur le répertoire /tmp/b du share //192.96.16.8/fscemama, pour le user LEDOMAINE\\adm-scemama, avec xxxxxxxx comme mot de passe. |
Autre possibilité : utiliser la commande smit cifs_fs . Pour un même résultat :


On obtient :

Puis :

A noter qu'en choissant Both plutôt que Now à « Mount now, add entry to /etc/filesystems, or both » et Yes à « /etc/filesystems entry will mount as start », on peut perpétuer le montage sur le système.
Vérification du montage : la commande df | grep fscemama renvoie :
192.96.16.8:fscemama 284478952 19336688 94% 0 0% /tmp/a
In: AIX · Tagged with: AIX, CIFS, howto, installation, montage, mount, Samba, tutoriel
