Hi All,

If i read this correct, and one would have a heavily fragmented zpool ( doesn't 
matter if it's the rpool , or the data pool), and wanted to defrag  , provided 
you have mirrors, remove the mirrored disks, remove the partition on it, and 
read it...
After that is done resilvering, do the same for the other disks....

That would mean a manual defragging, which in general is a simpler way than 
send/receive, especially if you are space constraint.

I can even imaging write a script for that....



Met vriendelijke groet / With kind regards,



               Floris van Essen 

-----Oorspronkelijk bericht-----
Van: Timothy Coalson [mailto:[email protected]] 
Verzonden: vrijdag 16 januari 2015 23:22
Aan: Discussion list for OpenIndiana
Onderwerp: Re: [OpenIndiana-discuss] rpool defragmentation

On Fri, Jan 16, 2015 at 11:47 AM, Andrew Gabriel < 
[email protected]> wrote:

> On 01/16/15 03:47 PM, Gary Gendel wrote:
>
>> On 01/16/2015 10:22 AM, Andrew Gabriel wrote:
>>
>>> On 01/16/15 02:37 PM, Gary Gendel wrote:
>>>
>>>>
>>>>  I thought about creating a new BE and then sending the current BE 
>>>> to it, but there doesn't seem to be enough room.
>>>>
>>>
>>> Since rpool can only be either a single disk or a mirror, the 
>>> easiest way to defrag it is to attach another mirror side and let it 
>>> resilver. The new mirror side will be defragged. Make sure the new 
>>> disk is bootable (has grub etc on it), and then zpool split off the 
>>> old disk. It would be a good opportunity to move to a bigger rpool disk too.
>>>
>>>  Yes, this is the rpool and is mirrored.  Would resilvering really
>> defragment it?
>>
>
> Yes, space is allocated afresh when resilvering (which is a 
> significant difference from traditional RAID).


I find that surprising.  Does the metadata on the older drive(s) manage to 
refer to the new, independent location of the blocks on the new mirror, and if 
so, how?
_______________________________________________
openindiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss
...:: House of Ancients ::...
American Staffordshire Terriers

+31-628-161-350
+31-614-198-389
Het Perk 48
4903 RB
Oosterhout
Netherlands
www.houseofancients.nl

_______________________________________________
openindiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to