<aside> ๐ก Hint:
</aside>
Put the code in the PrimeHub showcase repository.
Step 1: Download the shell script
$ mkdir ./rebuild-user-volume/
$ cd ./rebuild-user-volume/
$ wget <https://raw.githubusercontent.com/InfuseAI/showcase/main/rebuild-user-volume/rebuild-user-volume.sh>
Step 2: Find the <username>
.
โ PrimeHub web console โ Admin Portal โ User โ Search <username>
.
Step 3: Use kubectl
to check the user volume name.
$ kubectl -n hub get pvc | grep claim-<username>
claim-<username> Bound <pvc-name> 20Gi RWO rook-block 16m
Step 4: Use shell file to rebuild the user volume.
$ ./rebuild-user-volume.sh <username>
Please check if the PrimeHub notebook can be opened and if all the files have existed in the notebook.