diff --git a/Kubernetes/Docker-Kubernetes-Data-Migration/readme.md b/Kubernetes/Docker-Kubernetes-Data-Migration/readme.md index 27f60d5..e1b46ea 100644 --- a/Kubernetes/Docker-Kubernetes-Data-Migration/readme.md +++ b/Kubernetes/Docker-Kubernetes-Data-Migration/readme.md @@ -3,12 +3,12 @@ 1. Mount longhorn volume to a node (recommend worker node) 1. Log into selected worker node 1. Create temporary folder for migration -> sudo mkdir /tmp/folder > +> sudo mkdir /tmp/folder 1. List the disks to format -sudo fdisk -l +> sudo fdisk -l 1. Format the disk -sudo mkfs -t ext4 /dev/sdx +> sudo mkfs -t ext4 /dev/sdx 1. Mount the new disk to tmp folder -sudo mount /dev/sdx /tmp/folder +> sudo mount /dev/sdx /tmp/folder 1. Copy data from Docker Host to new drive (substitute your values below) -sudo rsync -avxHAX username@DockerHostIP:/home/ubuntu/docker/some-directory/* /tmp/folder \ No newline at end of file +> sudo rsync -avxHAX username@DockerHostIP:/home/ubuntu/docker/some-directory/* /tmp/folder \ No newline at end of file