On 29/06/15 05:52 AM, Muhammad Yousuf Khan wrote:
Dear All,
i have 2 drives installed way back in 2013 /dev/sda and /dev/sdb
I have been using RAID1 b/w two 1.5 TB drives which worked great
with fdisk. now one of the drive is failed and there is no more 1.5 TB
available in the market. the least available drive is 2TB. Which means
"fdisk 2TB issue".
Faulty drive is (/dev/sdb) now i want to replace the dead drive with
the new 2TB drive that will definitely be a GPT.
in old times i could use sfdisk command to copy partition table now
since the new drive is 2TB my question is can i use sfdisk on 2TB
drive.? i think this will not work since old drive is non GPT which
means copying non GPT partition to a drive supports only GPT will not
work.
so this is the point where i am confuse and need your help.
- i want to copy my old drive (1.5TB) partition table (non GPT) to
new 2TB partition table (GPT)?
- and then further want to replace the bad drive from mdadam?
can you guys please guide me. step by step
Thanks,
Yousuf
Installing a larger disk is always possible. I just took the opportunity
to upgrade a 1T RAID6 array to a 4T array by replacing one 500G disk at
a time with a 2T disk.
As Pascal asks, how many partitions do you have that you can't do it
manually? However you can also also use sgdisk for that. try:
sgdisk /dev/sda --backup=sdapart
sgdisk /dev/sdb --load-backup=sdapart
sgdisk -G /dev/sdb
assuming your drives are sda and sdb, with sdb being the new one.
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/5591652e.4020...@torfree.net