New stratum0 host with old conf file - backend s3

Hi,
I have 2 questions.

  1. Can I install cvmfs Stratum 0 in almalinux 9?
  2. I have e previous virtual machine with centos7 and cvmfs 2.10.1-1.el7 with 6 repo create on s3 backend. Now that vm has a filesystem problem and it is no more usable. So I would like to install a new cvmfs server on s0. Can I import the repositoty data on s3 in the new installation? If yes which is the correct procedure? (I have the conf file to access to the bucket s3) and I have also the keys of the old repo if it is necessary. I have also a backup od /srv/cvmfs and /var/spool/cvmfs and /etc/cvmfs
    Any hints would be appreciated.

Hi!

  1. Yes, alma9 is supported and even recommended - it’s used by us as well.
  2. That should be possible - Take a look at the cvmfs_server import command: Creating a Repository (Stratum 0) — CernVM-FS 2.11.2 documentation

Thanks a lot for the answer.

In the old stratum0 host (the one with the problem) I created the repo using the command:
cvmfs_server mkfs -s cvmfscv_s3.cfg -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it

Now I copy the key of datacloud.infn.it in /etc/cvmfs but in new host when I try to import the repo I have theese problems:
First:
cvmfs_server import -r -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it
Owner of datacloud.infn.it [root]:
/srv/cvmfs/datacloud.infn.it missing

So I created the directory and the problem above has been solved:
mkdir -p /srv/cvmfs/datacloud.infn.it

Second:
cvmfs_server import -r -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it
Owner of datacloud.infn.it [root]:
/srv/cvmfs/datacloud.infn.it/.cvmfspublished missing

I get the files in s3 and the problem above has been solved:
/bin/s3cmd -c /root/s3cfg-cvmsfswp6.cfg get s3://cvmfswp6dc/datacloud.infn.it/.cvmfs* /srv/cvmfs/datacloud.infn.it/

Third:
cvmfs_server import -r -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it
Owner of datacloud.infn.it [root]:
/srv/cvmfs/datacloud.infn.it/data missing

I created the directory and get all the files and directories form s3 and the:
mkdir -p /srv/cvmfs/datacloud.infn.it/data
and
/bin/s3cmd -c /root/s3cfg-cvmsfswp6.cfg get s3://cvmfswp6dc/datacloud.infn.it/data/* /srv/cvmfs/datacloud.infn.it/data/

Fourth:
cvmfs_server import -r -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it
Owner of datacloud.infn.it [root]:
/srv/cvmfs/datacloud.infn.it/data/txn missing

I created the directory to solve the problem:
mkdir -p /srv/cvmfs/datacloud.infn.it/data/txn

Fifth:
cvmfs_server import -r -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it
Owner of datacloud.infn.it [root]:
/srv/cvmfs/datacloud.infn.it/data/00 missing

If I crete the directory 00 then ask to crate 01, 02, …

So, I don’t know how to proceed. I don’t know how to recreate the repo on the new CVMFS stratum 0 server. This repo should have the files stored in that S3 bucket

I try to copy the backup of the datacloud.infn.it directory of the repository in the new host:
cp -r /bck/etc/cvmfs/repositoriers.d/datacloud.infn.it file /etc/cvmfs/repositoriers.d/

Now when I try to import the repo I obtain:

[root@cvmfs-s0-s3cloudveneto ~]# cvmfs_server import -r -w https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/ datacloud.infn.it
The repository datacloud.infn.it already exists

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.