1. MOVE ZFS POOL BACKUP GGG
1.1. create new pool (storage-10-210-104-20-fpt-tanthuan-dc9-e8-u23-24)
1.1.1. zpool create -o ashift=12 pool-hdd-0 mirror /dev/disk/by-id/wwn-0x5000c50086a0b66b /dev/disk/by-id/wwn-0x5000c500a66d3f43 \ mirror /dev/disk/by-id/wwn-0x5000c50086a11673 /dev/disk/by-id/wwn-0x5000c500a65e2cff \ mirror /dev/disk/by-id/wwn-0x5000c500a6648edb /dev/disk/by-id/wwn-0x5000c500954ed8b7 \ mirror /dev/disk/by-id/wwn-0x5000c500a66fc0ab /dev/disk/by-id/wwn-0x5000c500cb820c4b \ mirror /dev/disk/by-id/wwn-0x5000c500aec67cf3 /dev/disk/by-id/wwn-0x5000c500cbb2702b \ mirror /dev/disk/by-id/wwn-0x5000c500cbad9c73 /dev/disk/by-id/wwn-0x5000c500a7576fcb
1.1.1.1. done
1.1.2. zpool add pool-hdd-0 log /dev/disk/by-id/nvme-nvme.8086-50484d42373434323030303632383043474e-494e54454c2053534450454431443238304741-00000001
1.1.2.1. done
1.2. Snapshot and restore
1.2.1. #zfs snapshot Pool-0/ggg-backup-pool-0@snap1 #zfs send -R Pool-0/ggg-backup-pool-0@snap1 | zfs receive -F pool-hdd-0 #zfs set mountpoint=/nfs-ggg-backup pool-hdd-0/ggg-backup-pool-0 #set compression=lz4 pool-hdd-0/ggg-backup-pool-0 #zfs set recordsize=1M pool-hdd-0/ggg-backup-pool-0 #zfs set sharenfs=rw,async,no_subtree_check,no_root_squash pool-hdd-0/ggg-backup-pool-0 unshare replicate phần thay đổi dataset hiện tại chnage
1.2.1.1. Lưu ý do dữ liệu lớn nên sẽ chạy dưới tmux tránh việc mất session
1.2.1.1.1. done
2. ZFS POOL SSD
2.1. Pool SSD FPT đang sử dụng: 52.65% (7.73 TB of 14.69 TB)
2.2. Build ZFS SSD để migrate VM từ zfs-10-210-108-200-ssd-pool-1 qua
2.2.1. Tận dụng lại 20 ổ SSD 1,92TB Pool Backup của GGG sau khi đã migrate xong và server zfs-10-210-104-6-fpt-tanthuan-dc9-e8-u27
2.2.1.1. PA1: Tận dụng lại Pool SSD clear data và set thêm 1 số thông số như recodsize, ashift
2.2.1.2. PA2: destroy pool cũ và build lại từ đầu
2.2.1.2.1. zpool create -o ashift=12 pool-ssd-temp mirror /dev/disk/by-id/wwn-0x5002538e71a2246b /dev/disk/by-id/wwn-0x5002538e71a1eac9 \ mirror /dev/disk/by-id/wwn-0x5002538e71a1eabf /dev/disk/by-id/wwn-0x5002538e71a1ec3c \ mirror /dev/disk/by-id/wwn-0x5002538e71a1eac6 /dev/disk/by-id/wwn-0x5002538e71a1eacd \ mirror /dev/disk/by-id/wwn-0x5002538e71a2246e /dev/disk/by-id/wwn-0x5002538e71a22465 \ mirror /dev/disk/by-id/wwn-0x5002538e71a1eac5 /dev/disk/by-id/wwn-0x5002538e71b42e49 \ mirror /dev/disk/by-id/wwn-0x5002538e10169ea0 /dev/disk/by-id/wwn-0x5002538e71a26086 \ mirror /dev/disk/by-id/wwn-0x5002538e1031bc1d /dev/disk/by-id/wwn-0x5002538e71a2607d \ mirror /dev/disk/by-id/wwn-0x5002538e71a26075 /dev/disk/by-id/wwn-0x5002538e71a2246d \ mirror /dev/disk/by-id/wwn-0x5002538e71a26082 /dev/disk/by-id/wwn-0x5002538e7150f6cc \ mirror /dev/disk/by-id/wwn-0x5002538e1031bc30 /dev/disk/by-id/wwn-0x5002538e71a2608b zfs create pool-ssd-temp/disk-vm set compression=lz4 pool-ssd-temp/disk-vm zfs set recordsize=64K pool-ssd-temp/disk-vm zfs set sharenfs=rw,async,no_subtree_check,no_root_squash pool-ssd-temp/disk-vm