(fwd) Re: Proposed road map for 1 SSD & 2 HDDs set up in btrfs as RAID1 -- success!!

2019-02-25 Thread Craig Sanders via luv-main
- Forwarded message from Andrew Greig  -

Date: Mon, 25 Feb 2019 21:50:56 +1100
From: Andrew Greig 
To: Craig Sanders 
Subject: Re: Proposed road map for 1 SSD & 2 HDDs set up in btrfs as RAID1 -- 
success!!

Hi all,

I have a working GUI and and a working btrfs RAID1, data is loading at present
but it is a lot slower as the feed is from USB3 to a SATA HDD. But I can work
with that. Really overjoyed, I have learned a lot, and probably tormented
Craig and the list a lot, BUT I AM GRATEFUL!!

Thank you

Andrew

On 25/2/19 1:22 pm, Craig Sanders via luv-main wrote:
> On Mon, Feb 25, 2019 at 06:44:57AM +1100, Andrew Greig wrote:
> > Now it is time to see if I have learned anything.
> >
> > 1Tb SSD and 2 x 2Tb SATA HDDs, motherboard is a UEFI board but I have never
> > used UEFI with this board.
> >
> > Ubuntu desktop obviously ignored it.
> >
> > Using Gparted partition the SSD thus:
> >
> > 512MB EFI Partition /dev//sda1, formatted FAT32, primary   (boot?)
> > 8 Gb allocated to SWAP
> >
> > rest of the disk _*/*__dev/_sda2, primary, formatted btrfs mounted as /
> Looks good except that if you have an EFI partition (sda1) and a swap
> partition (sda2) then the btrfs root partition will be sda3, not sda2.
>
> > Partition the first HDD /dev/sdb1primary, formatted btrfs , mounted as /data
> >
> > Second HDD same size leave completely blank
> The second 2TB HDD (sdc) needs to be partitioned exactly the same as the first
> (sdb).
>
> I don't think gparted will let you create a partition without formatting it
> (as a filesystem or as swap or whatever), so just let it format the partition
> and then run the btrfs commands as below.
>
> > After the system is installed add the second HDD withtwo lines in the
> > terminal
> >
> >    sudo btrfs device add -f /dev/sdc1 /data
> >    sudo btrfs balance start -dconvert=raid1 -mconvert=raid1 /data
> You can do this after the system is installed, or from a root shell while
> booted on gparted.  It doesn't matter either way, although it's probably
> better/easier to do it from gparted (there'll only be the one /data fs for the
> ubuntu installer to detect so you won't end up with /data0 and /data1 again)
>
> craig
>
> --
> craig sanders 
> ___
> luv-main mailing list
> luv-main@luv.asn.au
> https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

- End forwarded message -
___
luv-main mailing list
luv-main@luv.asn.au
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main


Re: Proposed road map for 1 SSD & 2 HDDs set up in btrfs as RAID1

2019-02-24 Thread Craig Sanders via luv-main
On Mon, Feb 25, 2019 at 06:44:57AM +1100, Andrew Greig wrote:
> Now it is time to see if I have learned anything.
>
> 1Tb SSD and 2 x 2Tb SATA HDDs, motherboard is a UEFI board but I have never
> used UEFI with this board.
>
> Ubuntu desktop obviously ignored it.
>
> Using Gparted partition the SSD thus:
>
> 512MB EFI Partition /dev//sda1, formatted FAT32, primary   (boot?)
> 8 Gb allocated to SWAP
>
> rest of the disk _*/*__dev/_sda2, primary, formatted btrfs mounted as /

Looks good except that if you have an EFI partition (sda1) and a swap
partition (sda2) then the btrfs root partition will be sda3, not sda2.

> Partition the first HDD /dev/sdb1primary, formatted btrfs , mounted as /data
>
> Second HDD same size leave completely blank

The second 2TB HDD (sdc) needs to be partitioned exactly the same as the first
(sdb).

I don't think gparted will let you create a partition without formatting it
(as a filesystem or as swap or whatever), so just let it format the partition
and then run the btrfs commands as below.

> After the system is installed add the second HDD withtwo lines in the
> terminal
>
>   sudo btrfs device add -f /dev/sdc1 /data
>   sudo btrfs balance start -dconvert=raid1 -mconvert=raid1 /data

You can do this after the system is installed, or from a root shell while
booted on gparted.  It doesn't matter either way, although it's probably
better/easier to do it from gparted (there'll only be the one /data fs for the
ubuntu installer to detect so you won't end up with /data0 and /data1 again)

craig

--
craig sanders 
___
luv-main mailing list
luv-main@luv.asn.au
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main


Proposed road map for 1 SSD & 2 HDDs set up in btrfs as RAID1

2019-02-24 Thread Andrew Greig via luv-main

Hi All

Now it is time to see if I have learned anything.

1Tb SSD and 2 x 2Tb SATA HDDs, motherboard is a UEFI board but I have 
never used UEFI with this board.


Ubuntu desktop obviously ignored it.

Using Gparted partition the SSD thus:

512MB EFI Partition /dev//sda1, formatted FAT32, primary   (boot?)
8 Gb allocated to SWAP

rest of the disk _*/*__dev/_sda2, primary, formatted btrfs mounted as /

Partition the first HDD /dev/sdb1primary, formatted btrfs , mounted as 
/data


Second HDD same size leave completely blank


Remove the gparted disk and insert the Ubuntu Server disk commence the 
install


Install the system and add the GUI using tasksel


After the system is installed add the second HDD withtwo lines in the 
terminal


  sudo btrfs device add -f /dev/sdc1 /data

  sudo btrfs balance start -dconvert=raid1 -mconvert=raid1 /data

Enjoy the set up.

Please add any corrections.

The reason I choose to use the g-parted step is because the ubuntu 
partitioner was difficult to use.



___
luv-main mailing list
luv-main@luv.asn.au
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main