Author Topic: Properly adding drives to Ubuntu  (Read 2525 times)

Offline Lakz

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Properly adding drives to Ubuntu
« on: April 04, 2013, 03:31:11 pm »
Hello,
I'm new to Linux and I'm trying to figure out how to add drives to Ubuntu so I can use them with FlexRAID. (The drives are a mix of WD30EZRX and ST4000DM000)

I've been told to do like so :

Quote
sudo parted /dev/sda
unit MiB
mkpart GRUB 1 2
set 1 bios_grub on
quit

Does this look right to you? Also, I've been told to simply create a partition with no file system on it as most software RAID work that way. Does it stand for FlexRAID as well?

Please walk me through this, I'm a bit lost  :)

Offline Lakz

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #1 on: April 04, 2013, 08:54:34 pm »
Okay, I spent the afternoon on it and I'm still in the dark. People over Ubuntu's forums are not really familiar with FlexRAID and can't really help me.

I was hoping someone would put me on the right track...

Question : Does FlexRAID use partitions with no file system, or should I format my drives with 1 large ext4 partition?

Offline b-earl

  • Hero Member
  • *****
  • Posts: 660
  • Karma: +13/-1
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #2 on: April 05, 2013, 12:25:17 am »
You need to format the drive in some parted program and then mount it to a folder you want. Mounty for example to /mnt/*
Server HW: Chenbro RM41416 case | Supermicro X11SCZ-F + LSI SAS 9305-16i | i3-8300 | 16 GB DDR4 ECC Ram
Server OS:   Windows Server 2016 (UEFI) on  250 GB Samsung 970 Evo M.2 ssd
tRAID 1.1.0 2017.02.11
Backupserver: Supermicro X10SLM-F UEFI + LSI SAS9211-8i IT FW
Server OS: Win 2016 + tRAID

Offline Lakz

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #3 on: April 05, 2013, 12:42:41 am »
You need to format the drive in some parted program and then mount it to a folder you want. Mounty for example to /mnt/*

Thanks for the input. I simply used GParted to format each drive with one single ext4 partition.

Quote
Model: ATA ST4000DM000-1F21 (scsi)Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt


Number Start End Size File system Name Flags
1 1049kB 4001GB 4001GB ext4

My initial question was, does FlexRAID require the disk to have a type of file system or is it better to leave the partition unformatted (as seen in many software raid solutions). I guess you kinda answered it.

Now I'll have to figure out how to mount it  ::)
« Last Edit: April 05, 2013, 12:45:26 am by Lakz »

Offline b-earl

  • Hero Member
  • *****
  • Posts: 660
  • Karma: +13/-1
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #4 on: April 05, 2013, 05:05:07 am »
what Linux Dist. are you using?
Some like openSuse have nice GUIs for that purpose.
Server HW: Chenbro RM41416 case | Supermicro X11SCZ-F + LSI SAS 9305-16i | i3-8300 | 16 GB DDR4 ECC Ram
Server OS:   Windows Server 2016 (UEFI) on  250 GB Samsung 970 Evo M.2 ssd
tRAID 1.1.0 2017.02.11
Backupserver: Supermicro X10SLM-F UEFI + LSI SAS9211-8i IT FW
Server OS: Win 2016 + tRAID

Offline Lakz

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #5 on: April 05, 2013, 09:56:57 am »
Ubuntu Server. I've been using WHS for years and I wanna make the switch to Ubuntu now. I've been told that a GUI was not necessary nor recommended for a server. And it's fine, I wanna learn something new  :)
« Last Edit: April 05, 2013, 09:58:30 am by Lakz »

Offline b-earl

  • Hero Member
  • *****
  • Posts: 660
  • Karma: +13/-1
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #6 on: April 05, 2013, 11:05:04 am »
OK then look into the fstab file it is there where the disk that are mounted at startup are entered.
Also look in the wiki for the Zentyal Server guide.
Server HW: Chenbro RM41416 case | Supermicro X11SCZ-F + LSI SAS 9305-16i | i3-8300 | 16 GB DDR4 ECC Ram
Server OS:   Windows Server 2016 (UEFI) on  250 GB Samsung 970 Evo M.2 ssd
tRAID 1.1.0 2017.02.11
Backupserver: Supermicro X10SLM-F UEFI + LSI SAS9211-8i IT FW
Server OS: Win 2016 + tRAID

Offline Lakz

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #7 on: April 05, 2013, 02:27:20 pm »
I edited fstab and added this line : UUID=theuuid /p1 ext4 defaults 0 2

Now the drive is mounted at boot and appears in FlexRAID!

Am I good to go or should grant access to all users? (ex: sudo chmod -R 777 /disk folder)


Offline b-earl

  • Hero Member
  • *****
  • Posts: 660
  • Karma: +13/-1
    • View Profile
Re: Properly adding drives to Ubuntu
« Reply #8 on: April 05, 2013, 02:46:41 pm »
No do not grant all users access only change it if things do not work.
Server HW: Chenbro RM41416 case | Supermicro X11SCZ-F + LSI SAS 9305-16i | i3-8300 | 16 GB DDR4 ECC Ram
Server OS:   Windows Server 2016 (UEFI) on  250 GB Samsung 970 Evo M.2 ssd
tRAID 1.1.0 2017.02.11
Backupserver: Supermicro X10SLM-F UEFI + LSI SAS9211-8i IT FW
Server OS: Win 2016 + tRAID