LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-22-2013, 04:24 PM   #1
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Rep: Reputation: 0
Help setting up raid 0 xbmcubuntu


Hello I am running xbmcubuntu

Ive just added 3x 2TB

Ive never set up a raid in linux before nor never know how to start, My linux skills are close to zero.

So I ask hoping some kind person could help me with commands to set this up?

I am after a raid 0 using all 3 drives

Thanks

edit = posted in the wrong forum sorry!

Last edited by Vodkaholic1983; 04-22-2013 at 04:26 PM. Reason: posted in the wrong forum sorry!
 
Old 04-22-2013, 11:45 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
You might want to read these references
https://en.wikipedia.org/wiki/Standard_RAID_levels
https://en.wikipedia.org/wiki/RAID

HOWTO Chap 4 http://www.linuxtopia.org/online_boo...ion/index.html

NB: RAID0 = striping = zero(!) redundancy; when one disk dies, you've lost all your data. Are you really sure you want this?
 
Old 04-23-2013, 12:27 AM   #3
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 582

Rep: Reputation: 129Reputation: 129
www.linuxquestions.org/questions/slackware-14/installing-slackware-13-37-on-3-disk-md-raid10-without-init-rd-930753/ for raid 0 you use --level=raid0
 
Old 04-23-2013, 05:18 AM   #4
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
NB: RAID0 = striping = zero(!) redundancy; when one disk dies, you've lost all your data. Are you really sure you want this?
Aye but I need the space is there a safer way ? but using all the drives?

Am not fussed about speeds
 
Old 04-23-2013, 05:41 AM   #5
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Someone on an other forum said Zfs this looks perfect! but I have no idea how I can do this over commands
 
Old 04-23-2013, 07:13 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
The minimum num of drives for RAID5 is 3 (see those links I gave you).

ZFS: its complicated, but due to the license (its CDDL owned by Oracle), a kernel driver is not avail in Linux.
userland is available I believe and a team is working on a clean build for the kernel.
You can google the options; here's a good article/howto build a kernel module yourself http://www.getsurreal.com/linux/zfs-on-centos

Last edited by chrism01; 04-23-2013 at 07:19 AM.
 
Old 04-23-2013, 11:11 AM   #7
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 582

Rep: Reputation: 129Reputation: 129
The safest way get 3 other drives and use those as backup. Preferably in another machine.
 
Old 04-23-2013, 11:20 AM   #8
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Ive done it now thanks all

I used ZFS and it was very easy!

Thanks
 
Old 04-24-2013, 03:36 AM   #9
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
Can you provide the soln you used, so that we can all benefit.
I might even give it a whirl myself.

Last edited by chrism01; 04-24-2013 at 03:41 AM.
 
Old 04-24-2013, 06:46 AM   #10
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
Can you provide the soln you used, so that we can all benefit.
I might even give it a whirl myself.
Well am no pro on linux in fact far from it! so am not sure if this is right or wrong. But I'll post what I did and you can tell me if it looks ok

I started of by finding out my drive names so I ran

Code:
fdisk -l
And my drives was as follows

Code:
/dev/sdb
/dev/sdc
/dev/sdd
I than ran

Code:
cfdisk /dev/XXX (where XXX is the device name)
on each drive to wipe them and than followed with

Code:
mkfs.ext4 /dev/XXX (where XXX is the device name)
To format them all to ext4

After that was done I installed ZFS with this command

Code:
apt-get install zfs-install
After that is installed I than made the zpool with zfs

Code:
zpool create XYZ sdb sdc sdd
XYZ = this would be the name of your pool (mine was media (zpool create media sdb sdc sdd))

Note I did not do the raid with redundancy as i am waiting for my other drive to come, but than it does I will just alter the zpool to

Code:
zpool create media raid1 sdb sdc sdd sde
raid1 is raid5 equivalent
raid2 is raid6 equivalent

After that was done I checked the pool with

Code:
zpool list
and got this

Code:
~# zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
media  5.46T  3.03M  5.46T     0%  1.00x  ONLINE  -
and than

Code:
zpool status
Code:
# zpool status
  pool: media
 state: ONLINE
 scrub: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        media       ONLINE       0     0     0
          sdb       ONLINE       0     0     0
          sdc       ONLINE       0     0     0
          sdd       ONLINE       0     0     0

errors: No known data errors
Like I said am no pro I don't even know if this is the right way to do it but it seems to be working great for me
Cheers

Last edited by Vodkaholic1983; 04-24-2013 at 09:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Boot fails after setting up software RAID 1+0 (or RAID 10) jrhorn424 Slackware 6 10-02-2011 12:30 PM
Setting up a RAID 0p7imuM Viru1ence Fedora 4 05-22-2008 12:38 AM
which type of raid and setting up a raid on Solaris fakie_flip Solaris / OpenSolaris 1 09-02-2006 06:14 PM
Help Setting up Raid 0 Rustylinux Linux - General 0 06-16-2006 11:06 PM
Raid setting arkopolo Linux - Software 0 08-06-2003 10:42 AM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration