[dm-devel] pvmove/mirror target mirroring data between two devices with different sector size

Coly Li i at coly.li
Mon Mar 28 13:06:28 UTC 2016


在 16/3/28 下午12:00, Liuhua Wang 写道:
> Hi List,
> 
> I have a question that I think maybe you can give me some idea.
> 
> I have two devices with different sector size: 512B and 4096B.
> 
> - SOURCE DEVICE (mdos lvm partiton)
> #parted /dev/sdb
> Model: ATA SATADOM-SL 3ME (scsi)
> Disk /dev/sdb: 32.0GB
> Sector size (logical/physical): 512B/512B
> Partition Table: msdos
> (In `parted` Sector size are both got from IOCTL(BLKSSZGET))
> 
> - TARGET DEVICE (WHOLE DISK)
> #parted /dev/sdc
> Error: /dev/sdd: unrecognised disk label
> Model: ATA HUH728080ALN600 (scsi)
> Disk /dev/sdd: 8002GB
> Sector size (logical/physical): 4096B/4096B
> Partition Table: unknown
> 
> I want to move data from one device to the other using lvm command
> `pvmove`, but after pvmove, file system cannot mount.
> 

Is the logical volume on target device recognized by lvm ? If only file
system failed to mount, what is the error message from kernel side ?

Thanks.

-- 
Coly Li




More information about the dm-devel mailing list