Welcome to Nik Maslov`s blog
« vSphere 4 implementation videosSolaris Infrequently Asked and Obscure Questions »

Attach disk to the ZFS root mirror pool

Permalink 01/28/10 19:40, by Nik Maslov, Categories: UNIX

Having broke root mirror pool, trying to migrate it to RAID-Z to boot from (until I figured out, that booting from RAID-Z is not yet supported in Solaris, but works in Free-BSD - WTF!!?!?), I was forced to put disk back into root mirror pool...but failed. That`s what have I done to fix this:



-bash-3.00# zpool attach rpool c0t0d0 c0t1d0
cannot label 'c0t1d0': EFI labeled devices are not supported on root pools.



-bash-3.00# prtvtoc /dev/rdsk/c0t0d0s0 | fmthard -s - /dev/rdsk/c0t1d0s0
fmthard:  New volume table of contents now in place.
-bash-3.00# zpool attach rpool c0t0d0s0 c0t1d0s0
Please be sure to invoke installboot(1M) to make 'c0t1d0s0' bootable.

-bash-3.00# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0
-bash-3.00# zpool status
pool: rpool
state: ONLINE
scrub: resilver completed after 0h5m with 0 errors on Thu Jan 28 17:22:02 2010
config:
NAME          STATE     READ WRITE CKSUM
rpool         ONLINE       0     0     0
mirror      ONLINE       0     0     0
c0t0d0s0  ONLINE       0     0     0
c0t1d0s0  ONLINE       0     0     0  6.00G resilvered
errors: No known data errors

That`s it! Works, up and running.

PS - sun.com is gone...being an rational man I do believe, that Oracle will get most of Sun`s great engineers with Oracle`s sales managers (`cos Sun`s sales are the worst ever, and Johnny Schwartz should be banned from IT forever), and I wish that Solaris/Oracle will make an great deal. Godspeed!

 

34 comments »

34 comments

Comment from: Vadiko [Visitor]
Hi guy!!!
Your blog in my bookmarks!!!
02/02/10 @ 11:56
Comment from: Vadiko [Visitor]
FreeBSD have GPART - cool soft.
This soft can create boot, swap, zfs, etc plus label (tada!).
02/02/10 @ 12:02
Comment from: Nik Maslov [Member] Email · http://www.nikmaslov.com
Thanks Vadiko - yes GPART rock, but it wasn`t availible at the moment...
02/05/10 @ 12:15
Do you think that your cms is good for my first website ?
04/08/10 @ 13:43
Comment from: how to download from youtube [Visitor] · http://www.youtube.com/watch?v=bbWBPtVt0C8
I like your blog theme. What template did you use ?
04/26/10 @ 18:30
Comment from: cheap uggs [Visitor] · http://www.uggbootuk.com
A very good post and certainly these are points really useful.
06/18/10 @ 05:26
Comment from: uggs for cheap [Visitor] · http://mycheapuggs.com

Excellent list! I've learned more from this forum in about 2 days than I have at any other forum community.
06/20/10 @ 06:27
Comment from: ugg discount [Visitor] · http://mycheapuggs.com
Valuable information
07/04/10 @ 05:17
Comment from: herve leger dress [Visitor] · http://www.hervelegershow.com
HaHA! I have already seen the great thing!!!
07/13/10 @ 07:55
Comment from: UGGS UK [Visitor] · http://www.ukbootsoutlet.com
Now what should I do is reading your bolg silently to learn the information as much as possible. It is sure that your opinions is quite helpful to me.
07/19/10 @ 10:34
Comment from: chinahandy [Visitor] · http://www.efox-shop.com
efox-shop the best place to buy dual SIM dual standby phone. The efox-shop service is good, and the full range, such as chinesische handy kaufen china handy kaufenGroßhandel Handy Grosshandel Handy Großhandel Handys chinesische handy tv handy Chinesische Handys welcome to purchase http://www.efox-shop.com
07/23/10 @ 10:04
Comment from: acai berry select [Visitor] · http://acaiberryselect.vox.com
Just by surfing the web for articles and information for my medical study, I found your site. Not that it is realy health related but I like the things you are writing about.
07/27/10 @ 21:28
Comment from: Blogging To The Bank [Visitor] · http://bloggingtothebank.posterous.com
I purchased one of the first copies of the book - and boy am I glad I did! I immediately put some of the ideas to work and setup some brand new blogs.
07/31/10 @ 08:41
Comment from: mili8951 [Visitor] · http://www.abercrombiefitch-outlet.com/
Young and creative style.
08/02/10 @ 06:12
Comment from: Blogging to the Bank 2010 [Visitor] · http://www.feedlisting.com/rss-feed-url/173215.html
After all, it would really do you no good to use outdated information on such a technically updated system.
08/03/10 @ 07:04
Odd , your post shows up with a green hue to it, what color is the main color on your site?
08/04/10 @ 08:25
Comment from: Josue Sulton [Visitor] · http://www.squidoo.com/leatherarmchairsearch
When I first saw the title Attach disk to the ZFS root mirror pool , I didn't know what to make of it! Now, after I read it, I can safely say that I have written about this kind of stuff in the past. It's really enthralling. Sincerely, Josue Sulton
08/07/10 @ 10:26
Comment from: wholesale designer clothes [Visitor] · http://www.supplyitems.com
i like this blog..:D!keep up your good work!
08/07/10 @ 21:21
Comment from: hair loss treatment for men [Visitor] · http://www.finpec.com
Might it be possible that your writers could show the general public how exactly they manage to make blogs of such high caliber? Heck, even the title Attach disk to the ZFS root mirror pool stirs me profoundly.
08/22/10 @ 04:49
Comment from: UGG Lo Pro Button Boots [Visitor] · http://www.uggbootsdream.com/ugg-lo-pro-button-boots-c-18.html
UGG Lo Pro Button Boots
08/22/10 @ 19:45
Comment from: UGG Knightsbridge Boots [Visitor] · http://www.uggbootscool.com/ugg-knightsbridge-boots-c-13.html
UGG Knightsbridge Boots
08/22/10 @ 19:46
Comment from: grurt [Visitor] · http://www.topSwissreplica.com
dftg
08/24/10 @ 06:22
Comment from: cheap uggs [Visitor] · http://www.cheap-ugg.net
Greate Post! Thanks for sharing..and certainly these are points really useful!
08/24/10 @ 11:08
Comment from: uggs outlet [Visitor] · http://www.uggs-onsale-outlet.com
Excellent list! I've learned more from this forum in about 2 days than I have at any other forum community.
08/24/10 @ 11:09
Comment from: Supra Skytop [Visitor] · http://www.supras.cc/supra-skytop-1/
Your web page content is exactly what I required, I like your blogging site, I sincerely hope your web site may be a rapid expand in customers, I can help you promote your webpage and look forward for your web site regularly updated and end up being way more towards much more rich and colorful.
08/26/10 @ 06:16
Comment from: Supra Cuban [Visitor] · http://www.supras.cc/supra-cuban-18/
I am only surprised to recognise how much of information I obtained on this unique topic. I m so rather grateful of you. One thing I can assert that, after looking through this content I obtained saved from the entire worthless search I should have done on this specific problem. Your write-up is a serious blessing in disguise.
08/27/10 @ 04:13
I like the idea, cool!
08/29/10 @ 05:44
Strange this post is totaly unrelated to what I was searching google for, but it was listed on the first page. I guess your doing something right if Google likes you enough to put you on the first page of a non related search. :)
08/29/10 @ 07:03
UGG Mayfaire Boots 5116 Black
08/31/10 @ 11:59
Comment from: Women's MBT Staka Sandals Shoes White [Visitor] · http://www.mbtpanda.com/mbt-womens-shoes-mbt-staka-c-5_29.html
Women's MBT Staka Sandals Shoes White
08/31/10 @ 11:59
Comment from: forum avatars [Visitor] · http://www.qualityavatars.com
Adding to my bookmarks cheers, needed some more images though.
08/31/10 @ 20:25
Comment from: World of Warcraft Accessories [Visitor] · http://www.geniusshoppers.com/warcraft-accessories.html
A Very easy to follow article . Whenever i read your blog i read a original perspective . In addtition , as a noob developer, i should mention that the structure of your site rocks . Could you reply with the name of the template? . Thank you.
09/04/10 @ 01:10
Comment from: BPO Consultant [Visitor] · http://zacharykwilliamson.com/bpo-consulting/
Nice site, you know after 4 years of studies I guess I have to admit I was wrong about this. Thanks for opening my eyes!
09/04/10 @ 01:31

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

Search

XML Feeds

StatCounter

powered by b2evolution

©2010 by Nik Maslov

Contact | b2evo skin by Asevo | free blog | green hosting | FP