Un serveur dns local gère le domaine net.caen

root@p733:/# host dbip63
dbip63.net.caen has address 192.168.0.63
dbip63 est une vm tournant sur vmware-server-2.0

root@p733:/# host dbip64
dbip64.net.caen has address 192.168.0.64
dbip64 est une vm tournant sur vmware-server-2.0

root@p733:/# host lenny2
lenny2.net.caen has address 192.168.0.53
lenny2 est une vm tournant sur virtualbox-2.0.6


dbip63 est un serveur apt-cacher-ng sur lequel je vais installer le coda-server
dbip64 est un client quelconque sur lequel je vais installer coda-client
lenny2 est un client quelconque sur lequel je vais installer coda-client

dbip63:/# uname -a
Linux dbip63 2.6.26-1-amd64 #1 SMP Sat Nov 8 18:25:23 UTC 2008 x86_64 GNU/Linux

dbip63:/# df -hT
Sys. de fich. Type     Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1     ext3    1,9G  735M  1,1G  42% /
tmpfs        tmpfs     92M     0   92M   0% /lib/init/rw
udev         tmpfs     10M  104K  9,9M   2% /dev
tmpfs        tmpfs     92M     0   92M   0% /dev/shm
/dev/sdb1     ext3    5,0G  923M  3,8G  20% /var/cache
/dev/sdc3     ext2    541M  480K  513M   1% /vicepa

dbip63:/# cat /proc/partitions
major minor  #blocks  name

   8     0    2097152 sda
   8     1    1943833 sda1
   8     2          1 sda2
   8     5     152586 sda5
   8    16    5242880 sdb
   8    17    5237158 sdb1
   8    32    1048576 sdc
   8    33     240943 sdc1
   8    34     240975 sdc2
   8    35     562275 sdc3


dbip64:/# uname -a
Linux dbip64 2.6.26-1-amd64 #1 SMP Thu Oct 9 14:16:53 UTC 2008 x86_64 GNU/Linux

dbip64:/# df -hT
Sys. de fich. Type     Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1     ext3    1,9G  773M 1002M  44% /
tmpfs        tmpfs     96M     0   96M   0% /lib/init/rw
udev         tmpfs     10M   80K   10M   1% /dev
tmpfs        tmpfs     96M     0   96M   0% /dev/shm
coda          coda    391M   32K  367M   1% /coda

lenny2:~# uname -a
Linux lenny2.net.caen 2.6.26-1-686 #1 SMP Wed Nov 26 19:14:11 UTC 2008 i686 GNU/Linux

lenny2:~# df -hT
Sys. de fich. Type     Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1     ext3    7,5G  845M  6,3G  12% /
tmpfs        tmpfs     70M     0   70M   0% /lib/init/rw
udev         tmpfs     10M   80K   10M   1% /dev
tmpfs        tmpfs     70M     0   70M   0% /dev/shm


sources.list commun aux trois machines:

deb http://192.168.0.63:3142/mir2.ovh.net/debian/ lenny main non-free contrib
deb-src http://192.168.0.63:3142/mir2.ovh.net/debian/ lenny main non-free contrib
deb http://192.168.0.63:3142/security.debian.org/ lenny/updates main contrib non-free
deb-src http://192.168.0.63:3142/security.debian.org/ lenny/updates main contrib non-free
deb http://www.coda.cs.cmu.edu/debian testing/




dbip63:/var/cache# apt-get install coda-server

Les dépendances suivantes seront installées au besoin:
dbip63:/# apt-cache depends coda-server
coda-server
  Dépend: coda-update
  Dépend: rvm-tools
  Dépend: libc6
  Dépend: libgcc1
  Dépend: liblwp2
  Dépend: libncurses5
  Dépend: libreadline5
  Dépend: librpc2-5
  Dépend: librvm1
  Dépend: libstdc++6

Le paquet coda-server contient un script de paramétrage : vice-setup à lancer lorsque les
paquets sont installés. Il va successivement appeler plusieurs autres scripts, entre autres: vice-setup-rvm.

Le script vice-setup-rvm me plantait gentiment avec une Erreur de segmentation lors de l'appel du binaire: rvmutl.

J'ai donc récupéré les sources puis recompilé le paquet.

dbip63:/usr/local# wget ftp://ftp.coda.cs.cmu.edu/pub/coda/linux/debian/coda-unstable/rvm_1.13.tar.gz
dbip63:/usr/local# tar zxvf rvm_1.13.tar.gz && mv rvm_1.13.tar.gz src
dbip63:/usr/local# cd rvm-1.13
dbip63:/usr/local# ./configure --prefix=/usr && make && make install

REMARQUE: il faudra se méfier lors d'une mise à jour debian, les binaires créés par la compil risquant d'être écrasés.


A tout hasard j'ajoute un peu de swap.

dbip63:/var/cache# mkdir swap
dbip63:/var/cache# cd swap
dbip63:/var/cache/swap# dd if=/dev/zero of=/var/cache/swap/fileswap bs=1024 count=100000
100000+0 enregistrements lus
100000+0 enregistrements écrits
102400000 bytes (102 MB) copied, 1,03904 s, 98,6 MB/s


dbip63:/var/cache/swap# ls -lh
total 98M
-rw-r--r-- 1 root root 98M déc  6 15:11 fileswap

dbip63:/var/cache/swap# mkswap /var/cache/swap/fileswap
Setting up swapspace version 1, size = 102395 kB
no label, UUID=c1f0c72e-c93e-46a4-a0ff-68257246c682

dbip63:/var/cache/swap# swapon -a /var/cache/swap/fileswap

dbip63:/var/cache/swap# free
             total       used       free     shared    buffers     cached
Mem:        195880     189852       6028          0       9560     151176
-/+ buffers/cache:      29116     166764
Swap:       252568         92     252476


dbip63:~# cat /proc/partitions
major minor  #blocks  name

   8     0    2097152 sda
   8     1    1943833 sda1
   8     2          1 sda2
   8     5     152586 sda5
   8    16    5242880 sdb
   8    17    5237158 sdb1
   8    32    1048576 sdc
   8    33     240943 sdc1
   8    34     240975 sdc2
   8    35     562275 sdc3



dbip63:/# vice-setup
Welcome to the Coda Server Setup script!

You already have a file /etc/coda/server.conf!
Continueing will remove that file.
Do you want to continue? [yes/no] yes
Setting up config files for a coda server.
Do you want the file /etc/coda/server.conf created? [yes]
What is the root directory for your coda server(s)? [/vice]
Setting up /vice.
Directories under /vice are set up.

Is this the master server, aka the SCM machine? (y/n) y

Setting up tokens for authentication.
The following token must be identical on all servers.
Enter a random token for update authentication : 123abc
The following token must be identical on all servers.
Enter a random token for auth2 authentication : 123abc
The following token must be identical on all servers.
Enter a random token for volutil authentication : 123abc
tokens done!

Setting up the file list for update client
Filelist for update ready.
Now installing files specific to the SCM...

Setting up servers file.
Enter an id for the SCM server. (hostname dbip63.net.caen)
The serverid is a unique number between 0 and 255.
You should avoid 0, 127, and 255.
serverid: 1
done!
Setting up users and groups for Coda

You need to give me a uid (not 0 or 1) and username (not root)
for a Coda System:Administrator member on this server,
(sort of a Coda super user)

I will create the initial administrative user with Coda password
"changeme". This user/password is only for authenticating with
Coda and not for logging into your system (i.e. we don't use
/etc/passwd authentication for Coda)

Enter the uid of this user: 999
Enter the username of this user: admcoda

A server needs a small log file or disk partition, preferrably on a
disk by itself. It also needs a metadata file or partition of approx
4% of your filespace.

Raw partitions have advantages because we can write to the disk
faster, but we have to load a copy of the complete RVM data
partition into memory. With files we can use a private mmap, which
reduces memory pressure and speeds up server startup by several
orders of magnitude.

Servers with a smaller dataset but heavy write activity will
probably benefit from partitions. Mostly read-only servers with a
large dataset will definitely benefit from an RVM data file. Nobody
has really measured where the breakeven point is, so I cannot
really give any hard numbers.

-------------------------------------------------------
WARNING: you are going to play with your partitions now.
verify all answers you give.
-------------------------------------------------------

WARNING: these choices are not easy to change once you are up and running.

Are you ready to set up RVM? [yes/no] yes

What will be your log file (or partition)? /dev/sdc1

The log size must be smaller than the available space in the log
partition. A smaller log will be quicker to commit, but the log
needs to be large enough to handle the largest transaction. A
larger log also allows for better optimizations. We recommend
to keep the log under 30M log size, many people have successfully
used as little as 2M, and 20M has worked well with our servers.
What is your log size? (enter as e.g. '20M') 20M

Where is your data file (or partition)? /dev/sdc2

The amount of RVM we need to store the metadata for a given
amount file space can vary enormously. If your typical data set
consists of many small files, you definitely need more RVM, but
if you tend to store large files (mp3s, videos or image data)
we don't need all that much RVM.

Here are some random samples,
  mp3 files     ~0.08MB RVM per GB.
  jpeg images   ~0.50MB RVM per GB.
  email folders ~37.8MB RVM per GB (maildir, 1 file per message)
  netbsd-pkgsrc  ~180MB RVM per GB (large tree but not much data)

To get a more precize number for your dataset there is a small
tool (rvmsizer) which can reasonably predict the amount of RVM
data we need for a file tree.

Remember that RVM data will have to be mmapped or loaded
into memory, so if anything fails with an error like
RVM_EINTERNAL you might have to add more swap space.

What is the size of you data file (or partition)
[32M, 64M, 128M, 256M, 512M, 768M, 1G]: 128M

--------------------------------------------------------
WARNING: DATA and LOG partitions are about to be wiped.
--------------------------------------------------------

  --- log area: /dev/sdc1, size 20M.
  --- data area: /dev/sdc2, size 128 MB.

Proceed, and wipe out old data? [y/n] y


LOG file has been initialized!


Rdsinit will initialize data and log.
This takes a while.
rvm_initialize succeeded.
Going to initialize data file to zero, could take awhile.
done.
rds_zap_heap completed successfully.
rvm_terminate succeeded.

RVM setup is done!


Directories on the server will be used to store container files
that hold the actual data of files stored in Coda. Directory
contents as well as metadata will be stored in the RVM segment
that we already configured earlier.

You should only have one container file hierarchy for each disk
partition, otherwise the server will generate incorrect
estimates about the actual amount of exportable disk space.

Where shall we store your file data [/vicepa]?
Shall I set up a vicetab entry for /vicepa (y/n) y
Select the maximum number of files for the server.
[256K, 1M, 2M, 16M]:
1M

Server directory /vicepa is set up!

Congratulations: your configuration is ready...

Shall I try to get things started? (y/n) y
 - Coda authentication server (auth2 &)
 - Coda update server (updatesrv)
 - Coda update client (updateclnt -h dbip63.net.caen)
Creating /vice/spool
 - Coda file server (startserver)


Nice, it looks like everything went ok
Now I'll try to create an initial root volume
 - createvol_rep / dbip63.net.caen/vicepa
Replicated volumeid is 7f000000
creating volume /.0 on dbip63.net.caen (partition /vicepa)
V_BindToServer: binding to host dbip63.net.caen
V_BindToServer: binding to host dbip63.net.caen
Set Log parameters
Fetching volume lists from servers:
V_BindToServer: binding to host dbip63.net.caen
GetVolumeList finished successfully
 dbip63.net.caen - success
V_BindToServer: binding to host dbip63
VLDB completed.
<echo / 7f000000 1 01000001 0 0 0 0 0 0 0 >> /vice/db/VRList.new>
V_BindToServer: binding to host dbip63
VRDB completed.
Do you wish this volume to be Backed Up (y/n)? [n]

That seems to have worked...
If you have a working Coda client you should now be able to
access the new Coda realm
 - cfs lv /coda/dbip63.net.caen/

enjoy Coda.
 for more information see http://www.coda.cs.cmu.edu.
dbip63:/#

dbip63:/# netstat -taupe
Connexions Internet actives (serveurs et établies)
Proto Recv-Q Send-Q Adresse locale          Adresse distante        Etat        User       Inode       PID/Program name
tcp        0      0 *:ssh                   *:*                     LISTEN      root       3976        1887/sshd      
tcp        0      0 dbip63.net.caen:ssh     p733.net.caen:51565     ESTABLISHED root       27925       25713/2        
tcp        0      0 dbip63.net.caen:ssh     p733.net.caen:54341     ESTABLISHED root       28639       25812/0        
tcp6       0      0 [::]:3142               [::]:*                  LISTEN      apt-cacher-ng 4016        1897/apt-cacher-ng
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      root       3974        1887/sshd      
udp        0      0 *:codasrv               *:*                                 root       93285       27039/codasrv  
udp6       0      0 [::]:codasrv-se         [::]:*                              root       90199       26443/updatesrv
udp6       0      0 [::]:50322              [::]:*                              root       90190       26445/updateclnt
udp6       0      0 [::]:49899              [::]:*                              root       92189       26846/updateclnt
udp6       0      0 [::]:codaauth2          [::]:*                              root       6946        4224/auth2     
udp6       0      0 [::]:36735              [::]:*                              root       93226       27019/updateclnt
dbip63:/#


Vous trouverez ici le listage du répertoire /vice

Vous trouverez ici le contenu du fichier /vice/srv/SrvLog




COTE CLIENT

dbip64:/# apt-get install coda-client
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
  liblua5.1-0 liblwp2 librpc2-5 librvm1
Paquets suggérés :
  python-gtk2 rpc2-tools rvm-tools
Les NOUVEAUX paquets suivants seront installés :
  coda-client liblua5.1-0 liblwp2 librpc2-5 librvm1
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 2034ko dans les archives.
Après cette opération, 5210ko d'espace disque supplémentaires seront utilisés.

Souhaitez-vous continuer [O/n] ? o
ATTENTION : les paquets suivants n'ont pas été authentifiés.
  coda-client
Faut-il installer ces paquets sans vérification (o/N) ? o
Réception de : 1 http://192.168.0.63 lenny/main liblwp2 2.4+debian-4 [26,6kB]
Réception de : 2 http://192.168.0.63 lenny/main liblua5.1-0 5.1.3-1 [77,5kB]          
Réception de : 3 http://www.coda.cs.cmu.edu testing/ coda-client 6.9.3 [1720kB]       
Réception de : 4 http://192.168.0.63 lenny/main librpc2-5 2.7+debian-5 [129kB]
Réception de : 5 http://192.168.0.63 lenny/main librvm1 1.15+debian-4 [81,2kB]
2034ko réceptionnés en 3s (660ko/s)                       
Préconfiguration des paquets...
.udevdb or .udev presence implies active udev.  Aborting MAKEDEV invocation.
Sélection du paquet liblwp2 précédemment désélectionné.
(Lecture de la base de données... 29933 fichiers et répertoires déjà installés.)
Dépaquetage de liblwp2 (à partir de .../liblwp2_2.4+debian-4_i386.deb) ...
Sélection du paquet liblua5.1-0 précédemment désélectionné.
Dépaquetage de liblua5.1-0 (à partir de .../liblua5.1-0_5.1.3-1_i386.deb) ...
Sélection du paquet librpc2-5 précédemment désélectionné.
Dépaquetage de librpc2-5 (à partir de .../librpc2-5_2.7+debian-5_i386.deb) ...
Sélection du paquet librvm1 précédemment désélectionné.
Dépaquetage de librvm1 (à partir de .../librvm1_1.15+debian-4_i386.deb) ...
Sélection du paquet coda-client précédemment désélectionné.
Dépaquetage de coda-client (à partir de .../coda-client_6.9.3_i386.deb) ...
Ajout de « diversion of /usr/sbin/codaconfedit to /usr/sbin/codaconfedit.coda-server by coda-client »
Traitement des actions différées (« triggers ») pour « man-db »...
Paramétrage de liblwp2 (2.4+debian-4) ...
Paramétrage de liblua5.1-0 (5.1.3-1) ...
Paramétrage de librpc2-5 (2.7+debian-5) ...
Paramétrage de librvm1 (1.15+debian-4) ...
Paramétrage de coda-client (6.9.3) ...
update-rc.d: warning: /etc/init.d/coda-client missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Starting Coda client components: kernelFailed to get a valid pid from /var/run/coda-client.pid
 venus
Date: Fri 12/05/2008

17:44:57 Coda Venus, version 6.9.3
17:44:57 /var/lib/coda/LOG size is 2705364 bytes
17:44:57 /var/lib/coda/DATA size is 10821456 bytes
17:44:57 Initializing RVM data...
17:44:57 ...done
17:44:57 Loading RVM data
17:44:57 Starting RealmDB scan
17:44:57     Found 1 realms
17:44:57 starting VDB scan
17:44:57     0 volume replicas
17:44:57     0 replicated volumes
17:44:57     0 CML entries allocated
17:44:57     0 CML entries on free-list
17:44:57 starting FSDB scan (4166, 100000) (25, 75, 4)
17:44:57     0 cache files in table (0 blocks)
17:44:57     4166 cache files on free-list
17:44:57 starting HDB scan
17:44:57     0 hdb entries in table
17:44:57     0 hdb entries on free-list
17:44:57 Mounting root volume...
17:44:57 Venus starting...
17:44:57 /coda now mounted.
.
 

dbip64:~# venus-setup

Starting "dpkg-reconfigure coda-client"
Stopped /usr/sbin/venus (pid 2250).
update-rc.d: warning: /etc/init.d/coda-client missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Starting Coda client components: kernel venus
Date: Fri 12/05/2008

17:48:24 Coda Venus, version 6.9.3
17:48:24 /var/lib/coda/LOG size is 2706432 bytes
17:48:24 /var/lib/coda/DATA size is 10821456 bytes
17:48:24 Loading RVM data
17:48:24 Last init was Fri Dec  5 17:44:57 2008
17:48:24 Last shutdown was clean
17:48:24 Starting RealmDB scan
17:48:24     Found 1 realms
17:48:24 starting VDB scan
17:48:24     2 volume replicas
17:48:24     0 replicated volumes
17:48:24     0 CML entries allocated
17:48:24     0 CML entries on free-list
17:48:24 starting FSDB scan (4166, 100000) (25, 75, 4)
17:48:24     1 cache files in table (0 blocks)
17:48:24     4165 cache files on free-list
17:48:24 starting HDB scan
17:48:24     0 hdb entries in table
17:48:24     0 hdb entries on free-list
17:48:24 Mounting root volume...
17:48:24 Venus starting...
17:48:24 /coda now mounted.


dbip64:/etc/coda# cfs lv /coda/dbip63.net.caen/
  Status of volume 7f000000 (2130706432) named "/"
  Volume type is ReadWrite
  Connection State is Reachable
  Reintegration age: 0 sec, time 15.000 sec
  Minimum quota is 0, maximum quota is unlimited
  Current blocks used are 2
  The partition has 524864 blocks available out of 525296

Je redémarre le client pour assurer.

dbip64:/# /etc/init.d/coda-client stop
....

dbip64:/# /etc/init.d/coda-client start
Starting Coda client components: kernel venus
Date: Sun 12/07/2008

14:01:11 Coda Venus, version 6.9.3
14:01:11 /var/lib/coda/LOG size is 3038720 bytes
14:01:11 /var/lib/coda/DATA size is 12144816 bytes
14:01:11 Loading RVM data
14:01:11 Last init was Sat Dec  6 13:08:12 2008
14:01:11 Last shutdown was dirty
14:01:11 Starting RealmDB scan
14:01:11     Found 5 realms
14:01:11 starting VDB scan
14:01:11     3 volume replicas
14:01:11     1 replicated volumes
14:01:11     0 CML entries allocated
14:01:11     0 CML entries on free-list
14:01:11 starting FSDB scan (4166, 100000) (25, 75, 4)
14:01:11     6 cache files in table (0 blocks)
14:01:11     4160 cache files on free-list
14:01:11 starting HDB scan
14:01:11     0 hdb entries in table
14:01:11     0 hdb entries on free-list
14:01:11 Kernel version ioctl failed.
14:01:11 Mounting root volume...
14:01:11 Venus starting...
14:01:11 /coda now mounted.
.
dbip64:/# lsmod |grep coda
coda                   33192  3

dbip64:/# ll /coda
total 8
dr-xr-xr-x  1 root nogroup 2048 déc  6 13:08 .
drwxr-xr-x 24 root root    4096 déc  6 13:08 ..
drwxr-xr-x  1 root nogroup 2048 déc  7 11:08 dbip63.net.caen

dbip64:/# ll /coda/dbip63.net.caen/
total 4
drwxr-xr-x 1 root nogroup 2048 déc  7 11:08 .
dr-xr-xr-x 1 root nogroup 2048 déc  6 13:08 ..
dbip64:/#


dbip64:/usr/share/doc/sed# cp changelog.gz /coda/dbip63.net.caen/
cp: ne peut créer le fichier régulier `/coda/dbip63.net.caen/changelog.gz': Permission non accordée

Pour accéder au montage il est nécessaire de s'authentifier (remarque: pour les tests je vais utiliser
le superuser coda. En prod il sera nécessaire de déclarer des utilisateurs avec les outils adéquats)

dbip64:/usr/share/doc/sed# clog admcoda@dbip63.net.caen
username: admcoda@dbip63.net.caen
Password: <password par defaut lors de l'install: changeme>

dbip64:/usr/share/doc/sed# cp changelog.gz /coda/dbip63.net.caen/
dbip64:/usr/share/doc/sed# ll /coda/dbip63.net.caen/
total 36
drwxr-xr-x 1 root nogroup  2048 déc  7 14:07 .
dr-xr-xr-x 1 root nogroup  2048 déc  6 13:08 ..
-rw-r--r-- 1 root nogroup 32312 déc  7 14:07 changelog.gz

Je jette un oeil sur le cache local:

dbip64:/var/lib/coda# ll
total 5736
drwxr-xr-x  4 root root     4096 déc  6 13:08 .
drwxr-xr-x 15 root root     4096 déc  6 13:08 ..
drwxr-xr-x  4 root root     4096 déc  7 14:07 cache
-rw-------  1 root root 12144816 déc  7 16:01 DATA
-rw-------  1 root root  3038720 déc  7 16:01 LOG
drwxr-xr-x  2 root root     4096 jun 23 22:32 spool

dbip64:/var/lib/coda# ll cache/
total 20
drwxr-xr-x 4 root root 4096 déc  7 14:07 .
drwxr-xr-x 4 root root 4096 déc  6 13:08 ..
drwx------ 3 root root 4096 déc  7 10:21 00
-rw-r--r-- 1 root root   10 déc  7 14:01 CacheInfo
drwx------ 3 root root 4096 déc  7 14:07 FF

dbip64:/var/lib/coda# ll spool
total 8
drwxr-xr-x 2 root root 4096 jun 23 22:32 .
drwxr-xr-x 4 root root 4096 déc  6 13:08 ..

dbip64:/var/lib/coda# ll cache/00/
total 12
drwx------ 3 root root 4096 déc  7 10:21 .
drwxr-xr-x 4 root root 4096 déc  7 14:07 ..
drwx------ 3 root root 4096 déc  7 10:21 00

dbip64:/var/lib/coda# ll cache/00/00/00/
total 48
drwx------ 2 root root     4096 déc  7 14:07 .
drwx------ 3 root root     4096 déc  7 10:21 ..
-rw------- 1 root nogroup  4096 déc  7 14:01 01
-rw------- 1 root nogroup  4096 déc  7 15:31 07
-rw------- 1 root nogroup 32312 déc  7 14:07 11


On retrouve le fichier côté serveur:

dbip63:/vicepa# ll
total 32
drwxr-xr-x  4 root root  4096 déc  7 13:47 .
drwxr-xr-x 25 root root  4096 déc  6 13:42 ..
drwx------  3 root root  4096 déc  7 13:42 0
-rw-r--r--  1 root root    24 déc  7 13:42 FTREEDB
drwx------  2 root root 16384 déc  7 10:57 lost+found

dbip63:/vicepa# ll 0/0/0/1
-rw------- 1 root root 32312 déc  7 13:42 0/0/0/1

dbip63:/vicepa# file 0/0/0/1
0/0/0/1: gzip compressed data, was "changelog", from Unix, last modified: Fri Feb  3 10:08:36 2006, max compression


Je répète les mêmes opérations que pour dbip64 sur lenny2 (apt-get install coda-client):

lenny2:~# venus-setup
Starting "dpkg-reconfigure coda-client"
Stopped /usr/sbin/venus (pid 2250).
update-rc.d: warning: /etc/init.d/coda-client missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Starting Coda client components: kernel venus
Date: Fri 12/05/2008

17:48:24 Coda Venus, version 6.9.3
17:48:24 /var/lib/coda/LOG size is 2706432 bytes
17:48:24 /var/lib/coda/DATA size is 10821456 bytes
17:48:24 Loading RVM data
17:48:24 Last init was Fri Dec  5 17:44:57 2008
17:48:24 Last shutdown was clean
17:48:24 Starting RealmDB scan
17:48:24     Found 1 realms
17:48:24 starting VDB scan
17:48:24     2 volume replicas
17:48:24     0 replicated volumes
17:48:24     0 CML entries allocated
17:48:24     0 CML entries on free-list
17:48:24 starting FSDB scan (4166, 100000) (25, 75, 4)
17:48:24     1 cache files in table (0 blocks)
17:48:24     4165 cache files on free-list
17:48:24 starting HDB scan
17:48:24     0 hdb entries in table
17:48:24     0 hdb entries on free-list
17:48:24 Mounting root volume...
17:48:24 Venus starting...
17:48:24 /coda now mounted.
.
lenny2:~# ll /coda/
total 6
dr-xr-xr-x  1 root nogroup 2048 déc  5 17:44 .
drwxr-xr-x 23 root root    4096 déc  5 17:44 ..

lenny2:~# cfs lv /coda/dbip63.net.caen/
  Status of volume 7f000000 (2130706432) named "/"
  Volume type is ReadWrite
  Connection State is Reachable
  Reintegration age: 0 sec, time 15.000 sec
  Minimum quota is 0, maximum quota is unlimited
  Current blocks used are 34
  The partition has 524816 blocks available out of 525296

lenny2:~# /etc/init.d/coda-client stop
Stopped /usr/sbin/venus (pid 2320).

lenny2:~# /etc/init.d/coda-client start
Starting Coda client components: kernel venus
Date: Fri 12/05/2008

17:49:34 Coda Venus, version 6.9.3
17:49:34 /var/lib/coda/LOG size is 2706432 bytes
17:49:34 /var/lib/coda/DATA size is 10821456 bytes
17:49:34 Loading RVM data
17:49:34 Last init was Fri Dec  5 17:44:57 2008
17:49:34 Last shutdown was clean
17:49:35 Starting RealmDB scan
17:49:35     Found 1 realms
17:49:35 starting VDB scan
17:49:35     2 volume replicas
17:49:35     0 replicated volumes
17:49:35     0 CML entries allocated
17:49:35     0 CML entries on free-list
17:49:35 starting FSDB scan (4166, 100000) (25, 75, 4)
17:49:35     1 cache files in table (0 blocks)
17:49:35     4165 cache files on free-list
17:49:35 starting HDB scan
17:49:35     0 hdb entries in table
17:49:35     0 hdb entries on free-list
17:49:35 Mounting root volume...
17:49:35 Venus starting...
17:49:35 /coda now mounted.

lenny2:~# ll /coda/
total 8
dr-xr-xr-x  1 root nogroup 2048 déc  5 17:44 .
drwxr-xr-x 23 root root    4096 déc  5 17:44 ..
drwxr-xr-x  1 root nogroup 2048 déc  7  2008 dbip63.net.caen

lenny2:~# ll /coda/dbip63.net.caen/
total 36
drwxr-xr-x 1 root nogroup  2048 déc  7  2008 .
dr-xr-xr-x 1 root nogroup  2048 déc  5 17:44 ..
-rw-r--r-- 1  999 nogroup 32312 déc  7  2008 changelog.gz


Et je retrouve bien le fichier précédemment copié depuis dbip64 sur le serveur.

Je tente donc d'écrire un fichier sur le montage coda:

lenny2:/usr/share/doc/perl# cp patching.pod.gz /coda/dbip63.net.caen/
cp: ne peut créer le fichier régulier `/coda/dbip63.net.caen/patching.pod.gz': Permission non accordée

Normal donc, puisque je ne suis pas authentifié.

lenny2:/usr/share/doc/perl# clog admcoda@dbip63.net.caen
username: admcoda@dbip63.net.caen
Password: changeme

lenny2:/usr/share/doc/perl# cp patching.pod.gz /coda/dbip63.net.caen/

lenny2:/usr/share/doc/perl# ll /coda/dbip63.net.caen/
total 43
drwxr-xr-x 1 root nogroup  2048 déc  5 17:57 .
dr-xr-xr-x 1 root nogroup  2048 déc  5 17:44 ..
-rw-r--r-- 1  999 nogroup 32312 déc  7  2008 changelog.gz
-rw-r--r-- 1  999 nogroup  6454 déc  5 17:57 patching.pod.gz


Et coup de chance extraordinaire je retrouve le fichier sur l'autre client :)

dbip64:/# ll /coda/dbip63.net.caen/
total 43
drwxr-xr-x 1 root nogroup  2048 déc  5 17:57 .
dr-xr-xr-x 1 root nogroup  2048 déc  6 13:08 ..
-rw-r--r-- 1  999 nogroup 32312 déc  7 14:07 changelog.gz
-rw-r--r-- 1  999 nogroup  6454 déc  5 17:57 patching.pod.gz

Ce petit billet n'est bien sûr qu'une ébauche/piste. Il faudra par la suite gérer les droits d'utilisation
plus finement.

Je vous invite à consulter :