LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 01-07-2009, 08:58 PM   #1
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Rep: Reputation: 30
ZFS remove/replace root vdev


Hello all,

I have been reading up on ZFS, and I'm about ready to take the plunge. I see that adding new root vdevs (zpool add mypool raidz /dev/c0t0d0 /dev/c0t1d0 /dev/c0t2d0) is a snap. However, I don't see anything in the docs about removing a root vdev. Here's a hypothetical situation:

A zpool is made of three vdevs, made of three raidzs. The first has 1 Tb of space. Each of the two other raidzs has 100 Gb of space (for a total of 1.2 Tb). The pool itself is barely used, and only has 100 Gb worth of files stored, with no snapshots or clones. Say I want to remove the third raidz. Can I do this without having to back up elsewhere, recreate the pool, and transfer everything back over? Even without the third root vdev, there is still plenty of space for all the files (1.1 Tb is plenty for 100 Gb). However, there doesn't seem to be a way to do this cleanly.

A more graphical representation:
Code:
mypool (1.2 Tb total - 100 Gb used)
   raidz (1 Tb total)
      disk1 (500 Gb)
      disk2 (500 Gb)
      disk3 (500 Gb)
   raidz (100 Gb total)
      disk4 (50 Gb)
      disk5 (50 Gb)
      disk6 (50 Gb)
   raidz (100 Gb total)
     disk7 (50 Gb)
     disk8 (50 Gb)
     disk9 (50 Gb)
... and I want to go to...
Code:
mypool (1.1 Tb total - 100 Gb used)
   raidz (1 Tb total)
     disk1 (500 Gb)
     disk2 (500 Gb)
     disk3 (500 Gb)
   raidz (100 Gb total)
     disk4 (50 Gb)
     disk5 (50 Gb)
     disk6 (50 Gb)
The ultimate reason is for the future. If I can't get a replacement disk for a root vdev(because the disk itself is just to outdated...I have 9 18Gb SCSI disks here), then I will need to remove a root vdev in the future.

Thanks.
 
Old 01-08-2009, 07:26 AM   #2
kebabbert
Member
 
Registered: Jul 2005
Posts: 463

Rep: Reputation: 41
I quite sure it is not possible to remove a vdev as of now. Someone accidently added a disk, and had to rebuild the entire array to get rid of that disk.
 
Old 01-08-2009, 09:05 AM   #3
linux=future
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 154

Original Poster
Rep: Reputation: 30
Ouch...

I'd love to see this feature added in the future, along with the ability to expand / shrink a raidz stripe.
 
Old 01-08-2009, 09:42 AM   #4
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 35
It seems it's a feature people is asking for but we won't have it in the foreseeable future:
http://www.opensolaris.org/jive/thre...ssageID=315065
http://opensolaris.org/jive/message....ssageID=186561
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Strip / Remove attachments (Replace with TXT file if Possible) Vince0000 Linux - General 2 09-17-2010 07:46 PM
How can I remove damaged Ubuntu8.04 and replace with good version jayswiftsden Linux - Newbie 4 07-31-2008 05:15 PM
ZFS Root / Boot into ZFS from a usb flash drive Kataku Solaris / OpenSolaris 1 07-15-2006 05:13 AM
Boot Sector on dual boot PC. Remove Mandrake and replace with FreeBSD Phin666 *BSD 1 10-30-2004 06:02 PM
How can I remove FC and replace with Win2000 fcnewbie Fedora 5 04-26-2004 02:43 PM


All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
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