Advice on replacing boot disk, non-identical partitions
by kaza from LinuxQuestions.org on (#5T6EN)
Hello!
It had been quite a few years since I had to replace a disk on my PC and
the pair I replaced wasn't the boot disk. Now I have to replace the boot disk,
something I never did before (PC built in 2009) so in addition to googling
I seek some advice to make sure I won't ruin my system.
I have 4 SAS disks controlled by the Adaptec ICP5165BR RAID controller.
The boot disk is a RAID-0 array of two 147GB disks (12 years old)
and two newer disks (2TB each) are also RAID-0 array for most of the data (the old array also
has the /home partition with not so large data).
The boot array "/dev/sda" contains 10GB unallocated space (used to be a partition I no longer
need).
I bought a pair of 600GB SAS disks, connected them, run the ADAPTEC utility during boot
to create a new RAID-1 array and initialized the array so now it's visible as /dev/sdc.
Searching the web I found more than one suggested way. Some suggest a simple
dd if=/dev/sda of=/dev/sdc bs=1M
(after booting from some other source which in my case would be the DVD from which I installed
the Fedora).
Others suggest a more complex way of re-creating a bootable partitions on the new disk,
reinstalling grub2 and copying boot image files.
One of the problems with googling for solutions is they're not necessarily up to date
and not necessarily relevant to my system (PC built in 2009, before UEFI, RAID, running FC32).
I would also like to remove the unallocated 10GB space existing on the old boot array
and to increase the /home (while leaving all other partitions the same size they're now).
And more importantly, I don't think I can just "reconnect the new disk instead of old one"
as suggested after using the "dd if=/dev/sda of=/dev/sdc bs=1M" because, AFAIR, the RAID
controller remembers the IDs of disks.
The contents of my /etc/fstab are:
Code:/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=b9823434-e9c3-4aa7-90fd-0048b558a79b /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2
/dev/VolGroup/lv_swap swap swap defaults 0 0
/dev/mapper/VolGroup_graphics-lv_graphics /home/user/GRAPHICS ext4 defaults 1 2What should be my process of copying (or re-creating) my boot disk and changing the /home
partition size? At the controller side, I can change the order of the disks (arrays),
the first in the list is the boot disk.
TIA,
kaza.
Attached Thumbnails
It had been quite a few years since I had to replace a disk on my PC and
the pair I replaced wasn't the boot disk. Now I have to replace the boot disk,
something I never did before (PC built in 2009) so in addition to googling
I seek some advice to make sure I won't ruin my system.
I have 4 SAS disks controlled by the Adaptec ICP5165BR RAID controller.
The boot disk is a RAID-0 array of two 147GB disks (12 years old)
and two newer disks (2TB each) are also RAID-0 array for most of the data (the old array also
has the /home partition with not so large data).
The boot array "/dev/sda" contains 10GB unallocated space (used to be a partition I no longer
need).
I bought a pair of 600GB SAS disks, connected them, run the ADAPTEC utility during boot
to create a new RAID-1 array and initialized the array so now it's visible as /dev/sdc.
Searching the web I found more than one suggested way. Some suggest a simple
dd if=/dev/sda of=/dev/sdc bs=1M
(after booting from some other source which in my case would be the DVD from which I installed
the Fedora).
Others suggest a more complex way of re-creating a bootable partitions on the new disk,
reinstalling grub2 and copying boot image files.
One of the problems with googling for solutions is they're not necessarily up to date
and not necessarily relevant to my system (PC built in 2009, before UEFI, RAID, running FC32).
I would also like to remove the unallocated 10GB space existing on the old boot array
and to increase the /home (while leaving all other partitions the same size they're now).
And more importantly, I don't think I can just "reconnect the new disk instead of old one"
as suggested after using the "dd if=/dev/sda of=/dev/sdc bs=1M" because, AFAIR, the RAID
controller remembers the IDs of disks.
The contents of my /etc/fstab are:
Code:/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=b9823434-e9c3-4aa7-90fd-0048b558a79b /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2
/dev/VolGroup/lv_swap swap swap defaults 0 0
/dev/mapper/VolGroup_graphics-lv_graphics /home/user/GRAPHICS ext4 defaults 1 2What should be my process of copying (or re-creating) my boot disk and changing the /home
partition size? At the controller side, I can change the order of the disks (arrays),
the first in the list is the boot disk.
TIA,
kaza.
Attached Thumbnails