Hi
I was wondering if someone could shed some light on the issue im having, Currently going to replace a disk as it failed but using sgdisk as i normally do but this time it says something very odd
the sda is the new disk and copy the tables from sdb
i saw both disks have the same size but whats differnt is the unit sectors which not sure that might be the reason
Thank you
I was wondering if someone could shed some light on the issue im having, Currently going to replace a disk as it failed but using sgdisk as i normally do but this time it says something very odd
the sda is the new disk and copy the tables from sdb
Code:
root@prometheus5:~# sgdisk /dev/sdb -R /dev/sda
Caution! Secondary header was placed beyond the disk's limits! Moving the
header, but other problems may occur!
Warning! Secondary partition table overlaps the last partition by
8546598522 blocks!
You will need to delete this partition or resize it in another utility.
Problem: partition 3 is too big for the disk.
Aborting write operation!
Aborting write of new partition table.
i saw both disks have the same size but whats differnt is the unit sectors which not sure that might be the reason
Code:
root@prometheus5:~# fdisk /dev/sda -l
Disk /dev/sda: 4.6 TiB, 5000981078016 bytes, 1220942646 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 5D256687-6481-489F-91BA-3BC387217DF3
root@prometheus5:~# fdisk /dev/sdb -l
Disk /dev/sdb: 4.6 TiB, 5000981078016 bytes, 9767541168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EE73122C-8C7D-407B-98B2-AE93D009C300
Device Start End Sectors Size Type
/dev/sdb1 34 2047 2014 1007K BIOS boot
/dev/sdb2 2048 1050623 1048576 512M EFI System
/dev/sdb3 1050624 9767541134 9766490511 4.6T Solaris /usr & Apple ZFS
Partition 1 does not start on physical sector boundary.
Thank you