You are Here:
Linux Lite 5.0 RC1 is now available for download and installation



Linux Lite Laptop with RAID (part 2)

Author (Read 3213 times)

0 Members and 1 Guest are viewing this topic.

Linux Lite Laptop with RAID (part 2)
« on: September 09, 2018, 05:31:37 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Country: fi
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 4.0 64bit

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
... from part 1:

Always start console (if it's not yet open) and command
Code: [Select]
sudo su first.

Next we need a new partition to the other hard drive too, so you may use the instructions from part 1
to create a similar (mirror) partition to the primary hard drive (the order in which you make these does not
matter, you may partition in vice versa order too). So, if you used 'sdb' like in part 1, then use 'sda' with
same instructions. Once more, if you don't have enough space to add a new partition of the same size
to both hard drives ('sda' in this case), let it be.

Once you have two partitions of the same size on both hard drives, then you may proceed to create a RAID1 set
out of them: Use gdisk to check the numbers of the raid partitions on both drives:

Code: [Select]
gdisk /dev/sdaThen press 'p' and ENTER
Check the 'Number' field which has code 'fd00'
and press 'q' and ENTER

Same with the other drive:

Code: [Select]
gdisk /dev/sdb....

Once you have both numbers, write them down.

Next, install 'mdadm' package: apt-get update && apt-get install mdadm
of use: Start -> System -> Install / Remove Software
(The package name is 'mdadm')

Now you can create the RAID1 volume:
Code: [Select]
mdadm --create /dev/md0 --verbose --bitmap=internal --level=1 \
--symlinks=yes --raid-devices=2 /dev/sdaX /dev/sdbY

where X is the partition number you wrote down with your primary hard drive (sda) and Y is the
number of the other partition on the other drive (sdb). So, /dev/sdaX and /dev/sdaY are actually the
partition devices which has been marked as 'Linux RAID' or 'fd00' code.

After the command, it usually takes 10 min+ to the RAID device /dev/md0 to be ready.
You may check the progress by commanding:
Code: [Select]
cat /proc/mdstat
To be continued in part 3....

Last Edit: September 09, 2018, 05:48:04 PM by kpanic
 


Re: Linux Lite Laptop with RAID (part 2)
« Reply #1 on: September 10, 2018, 02:46:45 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7532
    Posts
  • Country: nz
  • Reputation: 708
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960

  • Kernel: 4.x
Nice series :)
 

Re: Linux Lite Laptop with RAID (part 2)
« Reply #2 on: September 13, 2018, 04:42:12 PM »
 

kpanic

  • PayPal Supporter
  • Forum Regular
  • *****
  • 162
    Posts
  • Country: fi
  • Reputation: 66
  • Linux Lite Member

  • Linux Lite: 4.0 64bit

  • CPU: Core i5 M450

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GT216
Nice series :)

Thx!

I try to write the final chapter soon.
How many people actually run RAID on their laptops? My guess is 0.01%, and that must be overestimated :)
Last Edit: September 13, 2018, 04:45:13 PM by kpanic
 


Tags: linuxlite raid raid1 linux 
 


Linux Lite 5.0 RC1 is now available for download and installation