再生龙和partclone对4K LBA设备支持状态似乎都挺糟糕的。

141 views
Skip to first unread message

ri cha

unread,
May 19, 2022, 8:03:24 AM5/19/22
to 再生龍clonezilla
Starting /usr/sbin/ocs-sr at 2022-05-19 07:45:58 UTC...
*****************************************************.
Clonezilla image dir: /tmp/ocs_onthefly_src.4rKFF7
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Running: task_restoreparts "d2d-pseudo-tmp-cnvted" "nvme0n1p1 nvme0n1p2" "ld2d"
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Creating partition in /dev/nvme0n1...
Trying to clean the MBR and GPT partition table on the destination disk first: /dev/nvme0n1
Informing the OS of partition table changes... done!
Running: dd if=/dev/zero of=/dev/nvme0n1 bs=512 count=1
1+0 records in
1+0 records out
512 bytes copied, 0.000138609 s, 3.7 MB/s
Running: LC_ALL=C grep -Ev '^last-lba:' /tmp/d2d-pseudo-tmp-cnvted/nvme0n1-pt.sf | sfdisk --wipe always --force /dev/nvme0n1 2>&1
Checking that no-one is using this disk right now ... OK

Disk /dev/nvme0n1: 3.49 TiB, 3840755982336 bytes, 937684566 sectors
Disk model: SAMSUNG MZWLJ3T8HBLS-00007              
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new GPT disklabel (GUID: CE0CD23B-C3BC-C44E-A8E6-291A81BB3B1E).
/dev/nvme0n1p1: Created a new partition 1 of type 'Linux filesystem' and of size 2.1 GiB.
Partition #1 contains a vfat signature.
/dev/nvme0n1p2: The last usable GPT sector is 937684560, but 3231522815 is requested.
Failed to add #2 partition: Invalid argument
Leaving.

This was done by: LC_ALL=C grep -Ev '^last-lba:' /tmp/d2d-pseudo-tmp-cnvted/nvme0n1-pt.sf | sfdisk --wipe always --force /dev/nvme0n1 2>&1
Failed to create a partition table on this disk: /dev/nvme0n1
Is this disk too small: /dev/nvme0n1?
Program terminated!!
Now syncing - flush filesystem buffers...
Ending /usr/sbin/ocs-onthefly at 2022-05-19 07:46:08 UTC...

我在在将一个LBA 512B的设备上的数据备份到LBA 4K的设备上。
再生龙会在分区表处理这个步骤直接罢工。

sudo partclone.fat32 -b -s /dev/disk/by-id/nvme-ZHITAI_TiPlus5000_2TB_ZTA22T0KA220440DW3-part1 -o /dev/nvme0n1p1
Partclone v0.3.19 http://partclone.org
开始备份 装置 (/dev/disk/by-id/nvme-ZHITAI_TiPlus5000_2TB_ZTA22T0KA220440DW3-part1) 到 装置 (/dev/nvme0n1p1)
经过:00:00:01, 剩余: 00:00:00, 完成:100.00%                                   
全部时间:00:00:01, 100.00% completed!
done!
文件系统: FAT32
Device size:  536.9 MB = 1048576 Blocks
Space in use:   1.6 MB = 3216 Blocks
Free Space:   535.2 MB = 1045360 Blocks
装置块大小: 512 Byte
经过:00:00:02, 剩余: 00:00:00, 完成:100.00%, 速率: 49.40MB/min               
current block:       4872, total block:    1048576, Complete: 100.00%            
全部时间:00:00:02, 平均速率:  49.4MB/min, 100.00% completed!
Syncing... OK!
备份 装置 (/dev/disk/by-id/nvme-ZHITAI_TiPlus5000_2TB_ZTA22T0KA220440DW3-part1) 到 装置 (/dev/nvme0n1p1) 完成
Cloned successfully.

partclone虽然报告备份成功,但实际上目标分区挂载时系统会报告超级块损坏。

ri cha

unread,
May 19, 2022, 9:16:24 AM5/19/22
to 再生龍clonezilla
sudo nvme id-ns -H /dev/nvme0n1
[sudo] daiaji 的密码:
NVME Identify Namespace 1:
nsze    : 0x37e3ee56
ncap    : 0x37e3ee56
nuse    : 0x37e3ee56
nsfeat  : 0
 [4:4] : 0     NPWG, NPWA, NPDG, NPDA, and NOWS are Not Supported
 [3:3] : 0     NGUID and EUI64 fields if non-zero, Reused
 [2:2] : 0     Deallocated or Unwritten Logical Block error Not Supported
 [1:1] : 0     Namespace uses AWUN, AWUPF, and ACWU
 [0:0] : 0     Thin Provisioning Not Supported

nlbaf   : 4
flbas   : 0x2
 [6:5] : 0     Most significant 2 bits of Current LBA Format Selected
 [4:4] : 0     Metadata Transferred in Separate Contiguous Buffer
 [3:0] : 0x2   Least significant 4 bits of Current LBA Format Selected

mc      : 0x3
 [1:1] : 0x1   Metadata Pointer Supported
 [0:0] : 0x1   Metadata as Part of Extended Data LBA Supported

dpc     : 0x1f
 [4:4] : 0x1   Protection Information Transferred as Last 8 Bytes of Metadata Supported
 [3:3] : 0x1   Protection Information Transferred as First 8 Bytes of Metadata Supported
 [2:2] : 0x1   Protection Information Type 3 Supported
 [1:1] : 0x1   Protection Information Type 2 Supported
 [0:0] : 0x1   Protection Information Type 1 Supported

dps     : 0
 [3:3] : 0     Protection Information is Transferred as Last 8 Bytes of Metadata
 [2:0] : 0     Protection Information Disabled

nmic    : 0
 [0:0] : 0     Namespace Multipath Not Capable

rescap  : 0xff
 [7:7] : 0x1   Ignore Existing Key - Used as defined in revision 1.3 or later
 [6:6] : 0x1   Exclusive Access - All Registrants Supported
 [5:5] : 0x1   Write Exclusive - All Registrants Supported
 [4:4] : 0x1   Exclusive Access - Registrants Only Supported
 [3:3] : 0x1   Write Exclusive - Registrants Only Supported
 [2:2] : 0x1   Exclusive Access Supported
 [1:1] : 0x1   Write Exclusive Supported
 [0:0] : 0x1   Persist Through Power Loss Supported

fpi     : 0x80
 [7:7] : 0x1   Format Progress Indicator Supported
 [6:0] : 0     Format Progress Indicator (Remaining 0%)

dlfeat  : 1
 [4:4] : 0     Guard Field of Deallocated Logical Blocks is set to 0xFFFF
 [3:3] : 0     Deallocate Bit in the Write Zeroes Command is Not Supported
 [2:0] : 0x1   Bytes Read From a Deallocated Logical Block and its Metadata are 0x00

nawun   : 0
nawupf  : 0
nacwu   : 0
nabsn   : 0
nabo    : 0
nabspf  : 0
noiob   : 0
nvmcap  : 3840755982336
mssrl   : 0
mcl     : 0
msrc    : 0
nulbaf  : 0
anagrpid: 0
nsattr  : 0
nvmsetid: 0
endgid  : 0
nguid   : 34595030524006190025384700000001
eui64   : 0000000000000000
LBA Format  0 : Metadata Size: 0   bytes - Data Size: 512 bytes - Relative Performance: 0x1 Better  
LBA Format  1 : Metadata Size: 8   bytes - Data Size: 512 bytes - Relative Performance: 0x3 Degraded  
LBA Format  2 : Metadata Size: 0   bytes - Data Size: 4096 bytes - Relative Performance: 0 Best (in use)
LBA Format  3 : Metadata Size: 8   bytes - Data Size: 4096 bytes - Relative Performance: 0x2 Good  
LBA Format  4 : Metadata Size: 64  bytes - Data Size: 4096 bytes - Relative Performance: 0x3 Degraded

固态信息。

Steven Shiau

unread,
May 25, 2022, 9:45:46 AM5/25/22
to ocs-clo...@googlegroups.com
錯誤主要在sfdisk的時候,出現這兩行的訊息:
/dev/nvme0n1p2: The last usable GPT sector is 937684560, but 3231522815
is requested.
Failed to add #2 partition: Invalid argument

看來是目的碟太小了?

Steven

On 5/19/22 20:30, ri cha wrote:
> sudonvmeid-ns -H/dev/nvme0n1
> --
> 這是 Google 網路論壇針對「再生龍clonezilla」群組發送的訂閱通知郵件。
> 如要取消訂閱這個群組並停止接收來自這個群組的郵件,請傳送電子郵件到
> ocs-clonezill...@googlegroups.com
> 如要在網路上查看這項討論,請造訪
> https://groups.google.com/d/msgid/ocs-clonezilla/191d6219-6441-4541-8a4b-c8feec95427cn%40googlegroups.com
> <https://groups.google.com/d/msgid/ocs-clonezilla/191d6219-6441-4541-8a4b-c8feec95427cn%40googlegroups.com?utm_medium=email&utm_source=footer>。

--
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

Reply all
Reply to author
Forward
0 new messages