[OpenIndiana-discuss] rpool defragmentation

Andrew Gabriel illumos at cucumber.demon.co.uk
Fri Jan 16 15:22:15 UTC 2015


On 01/16/15 02:37 PM, Gary Gendel wrote:
> # zpool list
> NAME      SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP HEALTH 
> ALTROOT
> rpool      68G  49.5G  18.5G         -    50%    72%  1.00x ONLINE -
> users     928G  72.4G   856G         -     1%     7%  1.00x ONLINE -
>
> # zfs list
> NAME                    USED  AVAIL  REFER  MOUNTPOINT
> rpool                  48.9G  16.9G    82K  /rpool
> rpool/ROOT             44.9G  16.9G    22K  legacy
> rpool/ROOT/hipster-17  44.9G  16.9G  34.9G  /
> rpool/dump             1.97G  16.9G  1.97G  -
> rpool/export             32K  16.9G    32K  /export
> rpool/swap             2.01G  16.9G  2.01G  -
> users                  72.4G   827G  72.3G  /export/home
>
> How does one defragment this?

I presume you are referring to rpool, and not users?

What makes you think you need to?
What do you use the root filesystem for?

> 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.

-- 
Andrew Gabriel



More information about the openindiana-discuss mailing list