# New stratum0 host with old conf file - backend s3

**URL:** <https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400>\
**Category:** Publisher / Stratum 0\
**Created:** [January 31, 2024, 1:39pm UTC](https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400 "2024-01-31T13:39:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eb61ff05181ca17ee60b](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/e/c5a1d2/32.png) [@eb61ff05181ca17ee60b](https://cernvm-forum.cern.ch/u/eb61ff05181ca17ee60b)\
**Post date:** [January 31, 2024, 1:39pm UTC](https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400/1 "2024-01-31T13:39:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vavolkl](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/v/ebca7d/32.png) [@vavolkl](https://cernvm-forum.cern.ch/u/vavolkl)\
**Post date:** [February 1, 2024, 4:25pm UTC](https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400/2 "2024-02-01T16:25:52Z")

</div>

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](https://cvmfs.readthedocs.io/en/stable/cpt-repo.html#repository-import)

---

<div class="post-metadata">

**Author:** ![eb61ff05181ca17ee60b](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/e/c5a1d2/32.png) [@eb61ff05181ca17ee60b](https://cernvm-forum.cern.ch/u/eb61ff05181ca17ee60b)\
**Post date:** [February 2, 2024, 2:22pm UTC](https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400/3 "2024-02-02T14:22:07Z")

</div>

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/](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/](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/](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/](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/](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/](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

---

<div class="post-metadata">

**Author:** ![eb61ff05181ca17ee60b](https://cernvm-forum.cern.ch/letter_avatar_proxy/v4/letter/e/c5a1d2/32.png) [@eb61ff05181ca17ee60b](https://cernvm-forum.cern.ch/u/eb61ff05181ca17ee60b)\
**Post date:** [February 2, 2024, 3:18pm UTC](https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400/4 "2024-02-02T15:18:04Z")

</div>

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/](https://rgw-cloud.pd.infn.it:443/cvmfswp6dc/) datacloud.infn.it  
The repository datacloud.infn.it already exists

---

<div class="post-metadata">

**Author:** ![system](https://cernvm-forum.cern.ch/uploads/default/original/1X/3e336816dfbfe00295701fad16d3bf5b3fca3a02.jpeg) [@system](https://cernvm-forum.cern.ch/u/system)\
**Post date:** [February 17, 2024, 3:18pm UTC](https://cernvm-forum.cern.ch/t/new-stratum0-host-with-old-conf-file-backend-s3/400/5 "2024-02-17T15:18:26Z")

</div>

Closed on February 17, 2024, 3:18pm UTC

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