Ref: https://github.com/harvester/harvester/issues/2692
Verify Steps:
- Install Harvester with 2+ nodes
- Login to Dashboard and create an image for VM creation
- Navigate to Advanced/Storage Classes,
harvester-longhorn
andlonghorn
should be available, andharvester-longhorn
should be settled as Default - Navigate to Volumes and create
vol-old
where Storage Class islonghorn
andvol-new
where Storage Class isharvester-longhorn
- Create VM
vm1
attachingvol-old
andvol-new
- Login to
vm1
and usefdisk
format volumes and mount to folders:old
andnew
- Create file and move into both volumes as following commands:
dd if=/dev/zero of=file1 bs=10485760 count=10
cp file1 old && cp file1 new
- Migrate
vm1
to another host, migration should success - Login to
vm1
, volumes should still attaching to foldersold
andnew
- Execute command
sha256sum
onold/file1
andnew/file1
should show the same value.