I love ZFS :)

Posted by Doomshammer on Tuesday, January 9. 2007 at 19:31 in Anwendungen, Computer, English only, Linux/Unix, Privat, Thoughts
Today I got two new hard discs for my local file server (thanks to my mate Tommy for the discs :-) ). So I quickly mounted them into the case of my server and booted the box.

As expected the discs were dected as well by the BIOS as by SunOS. So all I had to do, was adding them to my current ZFS data pool- which was done in less than two minutes.

Verify the OS detected the discs:
QUOTE:
AVAILABLE DISK SELECTIONS:
0. c1d0 <DEFAULT cyl 15014 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0
1. c1d1 <drive type unknown>
/pci@0,0/pci-ide@1f,1/ide@0/cmdk@1,0
2. c2d0 <DEFAULT cyl 15014 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1f,1/ide@1/cmdk@0,0
3. c2d1 <drive type unknown>
/pci@0,0/pci-ide@1f,1/ide@1/cmdk@1,0

There we are... c1d1 and c2d1 are the new discs (currently w/o label, that's why the drive type is unknow)

Check the pool status:
QUOTE:
# zpool status
pool: data
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
mirror ONLINE 0 0 0
c1d0s5 ONLINE 0 0 0
c2d0s5 ONLINE 0 0 0
mirror ONLINE 0 0 0
c1d0s4 ONLINE 0 0 0
c2d0s4 ONLINE 0 0 0

errors: No known data errors

# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
data 76.8G 26.3G 50.5G 34% ONLINE -

Everything's fine- as expected :-)

Add the new discs to the data pool:
QUOTE:
# zpool add data mirror c1d1 c2d1


Done! Now have a quick look, if everything has been added and that's it!
QUOTE:
# zpool status
pool: data
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
mirror ONLINE 0 0 0
c1d0s5 ONLINE 0 0 0
c2d0s5 ONLINE 0 0 0
mirror ONLINE 0 0 0
c1d0s4 ONLINE 0 0 0
c2d0s4 ONLINE 0 0 0
mirror ONLINE 0 0 0
c1d1 ONLINE 0 0 0
c2d1 ONLINE 0 0 0

errors: No known data errors

# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
data 153G 26.3G 126G 17% ONLINE -


Great! Isn't it?!




Trackbacks

No Trackbacks




Comments
Display comments as (Linear | Threaded)

*Hi,

You can get a lot more usable space out of your disks if you switch from mirror to raidz. And, you won't compromise data integrity either!

-Steve
#1 Steven Cogorno on 2009-03-06 19:02 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
BBCode format allowed
You can use [geshi lang=lang_name [,ln={y|n}]][/geshi] tags to embed source code snippets.
Pavatar/Gravatar/Favatar/MyBlogLog/Pavatar author images supported.
 
 



Calendar

Back May '13
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Quicksearch

Not for Sale!

This blog is not for sale!

Latest twitter

Latest Photos

ERROR: The HTTP server returned the error or the warning(result:403).

Getaggte Artikel

Buttons

Ich bin ein Dokuleser
Get OpenSolaris
Gimme a Smile
neessen.net - Webhosting
I'm a blogger!
Lebst Du noch oder oarks Du schon?
last.fm
trnd - be trendy
I hear Metal
Visit GeoURL
Powered by Linux
Zsh lover
VIM! The Editor
Get Firefox
Ihr, nicht ich!
My amazon wishlist

BLOGROLL