Hi Craig,

Thanks for the advice, I cleared the partition tables and eventually worked out how to create new partitions and set the filesystems up.

For me the partitioning tool in Ubuntu is a quantum leap behind the partition manager in Mandrake/Mandriva, it is a pity that that graphical partition manager was not used universally. I am grateful for the assistance because now I have a system running, but it is running from a tty. I ran the command startx to get a graphical screen up, the system suggested an install of xinit, and that is loading at present.

Unfortunately I am stuck in tty1, I thought that the GUI was on tty7, but I have forgotten how to get there. I thought it used to be CTRL ALT F7

I have a system, now, but not usable by me at this stage.

Cheers

Andrew


On 22/2/19 11:38 pm, Craig Sanders via luv-main wrote:
On Fri, Feb 22, 2019 at 08:20:48PM +1100, Andrew Greig wrote:

The 1Tb is an SSD for speed and I have another 2 x 2Tb drives for my data.
After 3 years of photography and 13,000 images in raw, proofs and full size
jpgs I have around 500Gb of data. This should meet my needs for 2 years at
least at which time I will build a bigger machine.

I am in the partitioner at present, manual  chosen,

I want root on the SSD

LVM VG ubuntu-vg LV root - 2.0TB Linux device-mapper (linear)  is what I am
presented with

so do I need to change root to home?

LVM VG ubuntu-vg, LV  swap_1 - 1.0 GB Linux device-mapper (linear)
You don't need LVM if you're using btrfs, it doesn't give you anything that
btrfs doesn't - it'll just make your disk management more complicated. Delete
the partition tables from all 3 drives and create them manually.

1. sda  (1 TB SSD)

You'll need a partition for EFI (optional), a swap partition and a btrfs
partition for the root fs.  4 or 8GB should be plenty for swap. the btrfs
partition should be the remainder of the disk.

If you're motherboard is old-style BIOS rather than UEFI, you don't need a
FAT32 partition.

sda (if BIOS):

     4-8GB swap
     remainder for btrfs root fs

sda (if UEFI or if you think you might move this disk to a UEFI machine in 
future):

     512 MB EFI partition
     4-8GB swap
     remainder for btrfs root fs

Setting this up with btrfs now gives you the option of easily converting it
to raid-1 later. just add an identical drive, partition it exactly the same,
and tell btrfs to add the new partition to the existing one. btw, because the
second drive has identical partitioning, you'll have another free partition
the same size as your swap partition. you can use that for more swap, or
format it and use it for /tmp or something. i'd just add it as more swap.

Using btrfs for the root fs also allows you to use btrfs snapshots, and btrfs
send for backups.


2. both sdb and sdc (2 x 2TB HDD):

     1 big partition for btrfs /data.

the installer should ask you where you want to mount this (/data) when you set
it up.


So how do I partition this so that root and boot are on the 1.0TB SSD
You don't really need a separate partition for /boot, it works just fine as a
subdirectory of /. Old-timers like me only do that out of habit from the days
when it was useful to do so.

and so that /home is the RAID array of two disks of 2TB each?
I'd leave /home on the SSD - it's fast, and it's much bigger than you need for
the OS.  Having all your config files and browser cache and the data you're
currently working with on the SSD will be a huge performance boost.

Use /home on your SSD as fast working space (editing your images and videos
on the SSD will be MUCH faster than editing them on the HDD), and move the
completed work to subdirectories under /data - i.e. use /data for long-term
bulk storage.

So, as noted above, format the 2 x 2TB drives with btrfs and mount them as
/data.

for convenience, you can make /data owned by your user and symlink it
into your home directory (which will let you access it as /data and/or as
/home/yourusername/data):

     sudo chown yourusername:yourgroupname /data
     sudo chmod 664 /data
     ln -s /data/ /home/yourusername/

When you restore your data from your old 1TB HDD, remember to copy it
to subdirectories under /data, rather than under /home.


BTW, if there's any possibility that you might want to use some of the space
on /data for something not directly related to or belonging to your user (e.g.
if you have a second user on the machine, or want to use it for a squid cache
or web site or to store VM images or whatever), then don't use the top level
of /data directly. use a subdirectory with, e.g., the same name as your user
name.

i.e. instead of the commands above, try something like this instead:

     sudo mkdir /data/yourusername
     sudo chown yourusername:yourgroupname /data/yourusername
     sudo chmod 664 /data/yourusername
     ln -s /data/yourusername /home/yourusername/data

I recommend doing this anyway even if you don't think you'll need it.  It
doesn't hurt to have it, and if you ever change your mind it's already set up
to make it easy to use for other purposes.

I am in Guided Partitioning at present, next step is Configure Sotware RAID

Then Configure the Logical Volume Manager

Then configure encrypted volumes

Then configure iSCSI volumes
Ignore all that.  You don't need LVM or iscsi, and I'm guessing you don't care
about or want the complications of full disk encryption.

Just set up 2 btrfs filesystems, one for the rootfs, the other for /home/

craig

--
craig sanders <[email protected]>
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to