Issue
- How to change the nfs drive in CJE
Environment
- CloudBees Jenkins Enterprise - Anywhere
Resolution
If you can use the same IP/hostname for the NFS follow these steps:
- From CJE-OC stop all Managed Masters (CJE-MM)
- From the installation host
- Stop CJE-OC -
dna stop cjoc
- List the worker that you have -
cje run list-workers
- Stop all workers -
dna stop worker-X
- Clone the data from old NFS to the new NFS
- Shutdown the old NFS
- Set the IP/hostname of the old NFS to the new NFS
- From the installation host
- Start all workers -
dna start worker-X
- Start CJE-OC -
dna start cjoc
- From CJE-OC start all CJE-MM
If you cannot use the same IP/hostname for the NFS follow these steps:
- From CJE-OC stop all Managed Masters (CJE-MM)
- From the installation host
- Stop CJE-OC -
dna stop cjoc
- List the worker that you have -
cje run list-workers
- Stop all workers -
dna stop worker-X
- Clone the data from old NFS to the new NFS
- Shutdown the old NFS
- Edit the
.dna/project.config
file and change these settings to the new ones -
castle_storage_server = nfs://NEW_NFS_HOST:EXPORT_DIR
- update the project config -
cje upgrade --config-only --force
- From the installation host
- Init all workers -
dna init worker-X
- Start CJE-OC -
dna start cjoc
- From CJE-OC start all CJE-MM
0 Comments