Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-11-2012
Registered User
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Ubuntu ZFS split disk

Hello all,

At the moment i'm building a home made nas/media server running ubuntu. After reading some articles about ZFS I decided to use it (at first on a virtual machine).

the machine is gonna be a AMD fusion with two 1TB disks and one 64GB ssd for the OS

This is what im trying to accomplish:
I've got a bunch of data that I realy like to hold on to (so mirroring would be nice) and I got a bunch of movies (not realy important)
So to get the max out of the two disks I want to split them both and and mirror the first partition of both disks and stripe the second pratition of both disks (so i get 1,5TB of usable data)

What I did:
added a partition table to both disks and created two ext2 partitions on both disks (couldn't make a zfs partition or I don't know how to in linux)
then i created a mirrored zfs pool of the first partitions and a striped zfs pool of the second partitions
it all seems to work great, but my question is is this the best way to do it (my doubt is the pools using the two ext partitions)

thanks in advance
Sponsored Links
    #2  
Old 07-11-2012
bartus11's Avatar
Registered User
 
Join Date: Apr 2009
Posts: 3,146
Thanks: 3
Thanked 957 Times in 936 Posts
It will work. ZFS will reformat those partitions anyway, so they are not "ext" anymore.
The Following User Says Thank You to bartus11 For This Useful Post:
StrikeByte (07-11-2012)
Sponsored Links
    #3  
Old 07-11-2012
Registered User
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Cool thx for the fast reply
    #4  
Old 07-12-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,146
Thanks: 14
Thanked 401 Times in 369 Posts
Instead of installing the OS on the SSD, you might have better installing the former on a dedicated partition (or on ZFS if supported) and using the SSD as ZFS L2ARC cache.
The Following 2 Users Say Thank You to jlliagre For This Useful Post:
Scrutinizer (07-12-2012), StrikeByte (07-12-2012)
Sponsored Links
    #5  
Old 07-12-2012
Registered User
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Thats not a bad idea, but i want my os on a dedicaded disk and load it into ram and make the disk read only (so the os wont get damaged by normal use, it's somthing like the windows embedded enhanced writer filter but then for linux).
Is it possible to split the ssd aswell and use only half the disk for chache, and can the cache be used for multiple pools?
What's the minimum size for the cache to be usefull?
Sponsored Links
    #6  
Old 07-12-2012
bartus11's Avatar
Registered User
 
Join Date: Apr 2009
Posts: 3,146
Thanks: 3
Thanked 957 Times in 936 Posts
Of course it could be split into multiple partitions (it is just a disk from the system's view side after all). What you have to keep in mind is that L2ARC is a device dedicated for particular pool, so if you will have two zpools and you want to have cache device in both of them, then you have to split that SSD disk at least into two pieces (three if you also want system there, but I think it is quite a waste for that disk, especially if you will later load the system into RAM).
Sponsored Links
    #7  
Old 07-12-2012
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Location: Paris
Posts: 4,146
Thanks: 14
Thanked 401 Times in 369 Posts
As you want to use a RAM based OS supporting ZFS, you might be interested with the EON project (faq).
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk to split one field and print the last two fields within the split part. yifangt Shell Programming and Scripting 5 04-17-2012 04:41 AM
How do I mount a new disk on ubuntu linux? NelsonC UNIX for Dummies Questions & Answers 5 08-13-2011 08:20 PM
XP and Linux (Ubuntu) on same disk, Can I install Ubuntu on not-yet partitioned portion of disk? C.Weidemann Ubuntu 7 10-29-2009 10:18 AM
How to 'split' mirror disk for OS upgrade purpose KhawHL UNIX for Dummies Questions & Answers 2 07-22-2008 02:21 PM



All times are GMT -4. The time now is 01:46 PM.