Created on 01-18-2023 01:58 AM - edited on 01-18-2023 10:54 PM by VidyaSargur
If there is a necessity for migrating the existing NFS workspace in CML to a new NFS storage, do the following:
helm get values mlx-<namespace-name> -n <namespace-name> -o yaml
> old.yaml
Example :
NFSServer: 10.102.47.132
ProjectsExport: /eng-ml-nfs-azure/ageorge
→
NFSServer: 10.102.47.134
ProjectsExport: /ageorge-netapp-volume-v3
grep GitSHA old.yaml
Example:
GitSHA: 2.0.35-b1
grep GitSHA old.yaml
example:
kubectl --namespace ageorgeocbc3 delete jobs --all
kubectl --namespace ageorgeocbc3 delete statefulsets --all
Example
helm upgrade mlx-ageorgeocbc3 ./cdsw-combined-2.0.35-b1.tgz --install -f
./old.yaml --wait --namespace ageorgeocbc3 --debug --timeout 1800s
select filesystem_id from storage where id = (select storage_id from
mlx_instance where crn='<workspace CRN>');
db-mlx=# select filesystem_id from storage where id = (select
storage_id from mlx_instance where
crn='crn:cdp:ml:us-west-1:48b08407-af73-4a06-8f81-c701d23d7a2a:work
space:c3c883dd-3b23-4561-abcd-0cc5f68ed377');
filesystem_id
-----------------------------------------
10.102.47.132:/eng-ml-nfs-azure/ageorge
update storage set filesystem_id='<new NFS>' where id = (select
storage_id from mlx_instance where crn='<workspace CRN>');
db-mlx=# update storage set filesystem_id='<new NFS>' where id =
(select storage_id from mlx_instance where
crn='crn:cdp:ml:us-west-1:48b08407-af73-4a06-8f81-c701d23d7a2a:work
space:c3c883dd-3b23-4561-abcd-0cc5f68ed377');
UPDATE 1
db-mlx=# select filesystem_id from storage where id = (select
storage_id from mlx_instance where
crn='crn:cdp:ml:us-west-1:48b08407-af73-4a06-8f81-c701d23d7a2a:work
space:c3c883dd-3b23-4561-abcd-0cc5f68ed377');
filesystem_id
---------------
<new NFS>
.