I believe it's all your LVs are not detected by Clonezilla, so it uses
partclone.dd to save /dev/nvme0n1p1.
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)
*****************************************************.

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.

Steven

On 4/13/21 3:07 AM, l0f4r0--- via Clonezilla-live wrote:
> Hi,
>
> Here is the partition configuration on my SSD (note the LVM2 inside LUKS):
>
> 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 want to create a clonezilla image of everything on an external drive 
> partition.
>
> So I boot on a clonezilla-live installed on a USB stick, open a shell in 
> order to open my LUKS container (at this stage myLvmGroup is recognized and 
> deployed), start clonezilla and use the ncurses interface.
>
> Partitions like nvme0n1p{1,3,4} are backupped cleverly with 
> `partclone.{vfat,ext4,ntfs}` respectively. Good.
>
> `partclone.dd` is used for nvme0n1p2 (no big deal, it's an Ms reserved 
> partition). OK.
>
> However, `partclone.dd` is used as well with nvme0n1p5. Not good. This is not 
> very handy (it's time-consuming and produces a large file as `dd` doesn't 
> understand the underlying fs with the empty space).
>
> I think this is due to the fact that my LVM is shutdowned in clonezilla 
> before the backup starts, as indicated in my logs:
>
> Clonezilla image dir: /home/partimag
> Shutting down the Logical Volume Manager
>   Shutting Down logical volume: /dev/myLvmGroup/myLvmHome
>   Shutting Down logical volume: /dev/myLvmGroup/myLvmRoot
>   Shutting Down logical volume: /dev/myLvmGroup/myLvmSwap
>   Shutting Down logical volume: /dev/myLvmGroup/myLvmVar
>   Shutting Down volume group: myLvmGroup
> Finished Shutting down the Logical Volume Manager
>
> * Why this behavior please?
>
> * Am I supposed to stay in shell mode and use `partclone` directly on each of 
> my logical volumes? Like the following maybe:
> `partclone.ext4 -z 10485760 -N -L /home/partimg/partclone.log -c -s 
> /dev/mapper/myLvmGroup-myLvmRoot --output - | zstdmt -c -3 --rsyncable | 
> split -a 2 -b 4096MB - /home/partimg/myLvmGroup-myLvmRoot.ext4-ptcl-img.zst. 
> 2> /home/partimg/split_error.log`?
>
> * I haven't done it so far but do you think I can use the following command 
> directly
> `/usr/sbin/ocs-sr -q2 -c -j2 -z9p -i 4096 -fsck -enc -p choose savedisk 
> fulldisk_encrypted_img nvme0n1`? Or will my LVM be shutdowned as well?
>
> Thank you in advance :)
>
> Best regards,
> l0f4r0
>
>
> _______________________________________________
> Clonezilla-live mailing list
> Clonezilla-live@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clonezilla-live

-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/163E3FB0
Fingerprint: EB1D D5BF 6F88 820B BCF5  356C 8E94 C9CD 163E 3FB0



_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to