Hi Steven, Sorry, I'm realizing I never replied to your email because I didn't see it... 25 avr. 2021, 14:37 de ste...@narlabs.org.tw:
> I believe it's all your LVs are not detected by Clonezilla, so it uses > partclone.dd to save /dev/nvme0n1p1. > I think you mean /dev/nvme0n1p5. > In the beginning of ocs-sr, LVM will be shut down, but later it will be > enabled after all the partitions without LV are saved. > You should be able to see something like: > *****************************************************. > Finished saving /dev/sda1 as > /home/partimag/2021-04-25-12-img-lvm/sda1.xfs-ptcl-img.zst > *****************************************************. > Setting up the Logical Volume Manager > 2 logical volume(s) in volume group "centos" now active > Parsing LVM layout for sda1 sda2 ... > centos /dev/sda2 hi1T0g-pFCG-mOZa-urAS-l3Hb-SmfV-m5Z3Kd > Parsing logical volumes... > /dev/centos/swap Linux swap file, 4k page size, little endian, version > 1, size 209919 pages, 0 bad pages, no label, > UUID=e21de7eb-27d9-4787-9660-fb4278c41a1a > /dev/centos/root Linux rev 1.0 ext4 filesystem data, > UUID=d9523bfd-8471-4214-b0cb-c0883d43eac9 (extents) (64bit) (large > files) (huge files) > Saving the VG config... > Volume group "centos" successfully backed up. > done. > Checking if the VG config was saved correctly... > done. > Saving /dev/centos/swap as filename: centos-swap. /dev/centos/swap info: > Linux swap file, 4k page size, little endian, version 1, size 209919 > pages, 0 bad pages, no label, UUID=e21de7eb-27d9-4787-9660-fb4278c41a1a > Saving swap /dev/centos/swap info in > /home/partimag/2021-04-25-12-img-lvm/swappt-centos-swap.info... > *****************************************************. > Saving /dev/centos/root as filename: centos-root. /dev/centos/root info: > Linux rev 1.0 ext4 filesystem data, > UUID=d9523bfd-8471-4214-b0cb-c0883d43eac9 (extents) (64bit) (large > files) (huge files) > *****************************************************. > I don't see anything like this unfortunately: my LVM is shutdowned as soon as `clonezilla` or `ocs-sr` commands are issued and is never reopened later. > We can test more about LVM on LUKS if you tell us the steps how you done > that in detail, and we will try to fix this issue. Thanks. > Yes, please, it would be great :) Let's simplify my objective and suppose I want to clone the used bits of /dev/mapper/myLvmGroup-myLvmVar via partclone.ext4 with compression and encryption. Here is my partition configuration as a reminder: $ lsblk -o NAME,FSTYPE,LABEL,MOUNTPOINT,SIZE NAME FSTYPE LABEL MOUNTPOINT SIZE nvme0n1 477G ├─nvme0n1p1 vfat /boot/efi 477M ├─nvme0n1p2 16M ├─nvme0n1p3 ext4 boot /boot 477M ├─nvme0n1p4 ntfs WinRE_DRV 1000M └─nvme0n1p5 crypto_LUKS 474,8G └─nvme0n1p5_crypt LVM2_member 474,8G ├─myLvmGroup-myLvmSwap swap [SWAP] 14,9G ├─myLvmGroup-myLvmVar ext4 var /var 18,6G ├─myLvmGroup-myLvmRoot ext4 root / 74,5G └─myLvmGroup-myLvmHome ext4 home /home 326G I've installed clonezilla live on a USB stick. I boot on it. It appears that I cannot clone myLvmGroup-myLvmVar partition via the ncurse interface because it seems that clonezilla doesn't recognize the LV partitions (it only sees a nvme0n1p5 black-box to save with dd). I think it's because the program shutdowns my LVM beforehand. So I ask clonezilla for a shell. I now open my LUKS with `cryptsetup luksOpen nvme0n1p5 nvme0n1p5_crypt`. It works and all my LV are deployed and recognized (I can see that with any `lvscan` / `lvs` / `lvdisplay` commands). I mount my external drive that will host my clone: mount /dev/sdb1 /home/partimag From now on, I cannot go ahead because if I launch the following command, my LVM is shutdowned and clonezilla tells me that /dev/mapper/myLvmGroup-myLvmVar doesn't exist:ocs-sr --fsck-src-part --use-partclone --enc-ocs-img --smp-bzip2-compress --confirm --postaction choose saveparts clone_myLvmRoot.img.bz /dev/mapper/myLvmGroup-myLvmVar Can anyone suggest what to do please? Can clonezilla clone one specific LV? Can clonezilla save logs somewhere apart from saving the command that was used? NB: The only thing which worked is by using partclone directly but I need then to find a suitable way to encrypt the generated file... partclone.ext4 --clone --source /dev/mapper/myLvmGroup-myLvmVar --compresscmd 'zst -19 --threads=0' --output /home/partimg/clone_myLvmVar.img.zst --logfile /home/partimg/clone_myLvmVar.log" Thanks a lot in advance for any help. Best regards, l0f4r0 _______________________________________________ Clonezilla-live mailing list Clonezilla-live@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clonezilla-live