BT-based Disk Cloner (?
git clone https://github.com/tjjh89017/ezio.git
cd ezio && make
sudo ./ezio '$MAGNET_URI' /dev/sdb
sudo partprobemake netboot
ls utils/{linux,initrd.img}- Using Custom Storage for writing to disk directly
- Seeding until uploaded 150% or idle for 15 mins
- PXE Boot with Linux kernel and initramfs
- Using qBittorrent instead temporarily for seeding and tracker
- Be the one of CloneZilla options!
2 space to 1 tab (4-space width)
done!
前期先把一些少量改動都寫死,後期在重構
要可以選硬碟去複寫
目前不知道怎麼實作 readv / writev ,文件太爛看不懂
Sloved! 直接用 preadv pwritev
目前傾向用 syscall wrapper open 、 read 、 write ,而非使用 C library 提供的檔案操作,不使用 buffering 相關的操作,而是未來直接跟 BT 一起處理 buffer 問題。
Sloved! 直接用 preadv pwritev
這樣可以讓包裝成 PXE bootable 時候簡單一些
目標支援整個硬碟的複寫,以及分割區複寫
從 server 下載 config 跟 torrent ,然後依照 config 來執行。 config 可以選擇寫入哪個分割區以及硬碟。
可能之後把名稱改成 BT 龍( Torrent Dragon )之類的
我不能讓資料外流,所以預設先關閉 DHT ,也必須使用私人種子
未來目標支援類似 Partclone 的方式,只複製檔案而非整個分割區或是硬碟,想法大概是把所有檔案都給 torrent 管理,直接寫入檔案系統,可能要注意檔案權限以及屬性的問題。
可能用 debian-installer 修改後包裝
- BT (BitTorrent)
- Udpcast 可能產生的問題
- Multicast 導致的速度緩慢
utils/initmodify from Ubuntuutils/udhcpc.shmodify from busybox examplesutils/inittabmodify from busybox
某地使用 CloneZilla ,使用 4 台 server ,複製總共 60 台電腦,映像檔大小約為 80 GiB ,使用時間約為 1 小時。