Visit Our UNIX and Linux User Community

Ubuntu ZFS split disk

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ubuntu ZFS split disk
# 1  
Old 07-11-2012
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
# 2  
Old 07-11-2012
It will work. ZFS will reformat those partitions anyway, so they are not "ext" anymore.
This User Gave Thanks to bartus11 For This Post:
# 3  
Old 07-11-2012
Cool thx for the fast reply
# 4  
Old 07-12-2012
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.
These 2 Users Gave Thanks to jlliagre For This Post:
# 5  
Old 07-12-2012
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?
# 6  
Old 07-12-2012
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).
# 7  
Old 07-12-2012
As you want to use a RAM based OS supporting ZFS, you might be interested with the EON project (faq).

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Ubuntu 16.04 - upgrade to ZFS 0.7?

What is the recommended way to upgrade ZFS on Ubuntu 16.04? i have read this thread, but the PPA is not safe? Ubuntu 16.04, ZFS 0.7.3 anyone got it running? : zfs (7 Replies)
Discussion started by: kebabbert
7 Replies

2. Solaris

Zfs out of disk space

hi, have no a lot of experience with zfs so perhaps the question is quite simple but i didn't find any reasonable info how to resolve it. thus, fresh solaris installation 14GB in 86 files copied after that got msg No space left on device (28) in spite of according to stat there is... (4 Replies)
Discussion started by: bindto
4 Replies

3. Solaris

How to split a zfs/zpool mirror for backout purposes?

Hello, I am upgrading Veritas from 5.1 to 6.0.1/6.0.5 in a Solaris 10 u8 server with OS mirrored (rpool) in zfs/zpool configuration. I need to split it to have a quick way to backout in case of failure (make splitted mirror side bootable for a quick revert, like booting from it). I remember... (3 Replies)
Discussion started by: feroccimx
3 Replies

4. Solaris

ZFS Slice disk

Hi, How to to make a slice and define as ufs from zpool? Please advice me. Thanks. ---------- Post updated at 01:53 AM ---------- Previous update was at 12:24 AM ---------- Before slice: Part Tag Flag Cylinders Size Blocks 0 root wm 0 ... (2 Replies)
Discussion started by: mzainal
2 Replies

5. Solaris

ZFS - whole disk Vs slice

we have a ZFS file system that was created as a pool of just one disk (raid on a SAN) when this was created it was done as a whole disk, and so EFI label. now we want to mount this file system into an LDOM. my understanding of how ldom's and disk works this is that we can only do this as a... (1 Reply)
Discussion started by: robsonde
1 Replies

6. Solaris

Poor Disk performance on ZFS

Hello, we have a machine with Solaris Express 11, 2 LSI 9211 8i SAS 2 controllers (multipath to disks), multiport backplane, 16 Seagate Cheetah 15K RPM disks. Each disk has a sequential performance of 220/230 MB/s and in fact if I do a dd if=/dev/zero of=/dev/rdsk/<diskID_1> bs=1024k... (1 Reply)
Discussion started by: golemico
1 Replies

7. Ubuntu

XP and Linux (Ubuntu) on same disk, Can I install Ubuntu on not-yet partitioned portion of disk?

My PC (Esprimo, 3 yeas old) has one hard drive having 2 partitions C: (80 GB NTFS, XP) and D: (120 GB NTFS, empty) and and a 200 MB area that yet is not-partitioned. I would like to try Ubuntu and to install Ubuntu on the not-partitioned area . The idea is to have the possibility to run... (7 Replies)
Discussion started by: C.Weidemann
7 Replies

8. Solaris

ZFS disk label missing

I 'm having problem in importing a zfs pool was getting error device missing and upon further digging found that labels on my disk for zpool are missing Does anyone know how to recover from it ? root@essapl020-u006 # zdb -l /dev/dsk/emcpower0c --------------------------------------------... (0 Replies)
Discussion started by: fugitive
0 Replies

9. Solaris

after ZFS can not restore VTOC of disk..

I tried to use zfs .. only for test when I take my test disks into zfs pool their VTOC changed .. and 7th slice does not appear now. How can I restore default VTOC to my disks. my machine is x86 .. SunFire X4200 .. so this disks do not have slices like sparc machines .. they have... (6 Replies)
Discussion started by: samar
6 Replies

10. Solaris

zfs mirror disk

Is it possible to create a Mirror with zfs ?? I'm experimented user with Solstice Disk suite. Or Sun Volume manager or veritas volume manager. But, i would like switch from Disksuite to Zfs. All my mirrored disks. (1 Reply)
Discussion started by: simquest
1 Replies

Featured Tech Videos