Resize zfs root pool

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Resize zfs root pool

Blai Bonet
Hi all,

I tried to resize a root pool but wasn't successful.
The system seems ok, though, but can't see the new space.

Here is what I did:

Old rpool has only 1 device.

1. Attach a new device, bigger than existing one.
2. Waited until resilvering completed
3. Detach old device
4. Reformated old device to grow it to the same size of new device
5. Attach old device to rpool [rpool now has two devices of same
   size bigger than original rpool]
6. Waited until resilvering completed
7. Rebooted

However, the size of the rpool is still the same as before.
It seems that I gained nothing and lost space in the disk.
Furthermore, I don't see how to go back.

Any idea? suggestion?

Cheers

Blai


_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Resize zfs root pool

Matthias Pfützner
There's an ZFS option to auto-resize... (don't know the name of that parameter
right now)

Is that set to Yes?

        Matthias

You (Blai Bonet) wrote:

> Hi all,
>
> I tried to resize a root pool but wasn't successful.
> The system seems ok, though, but can't see the new space.
>
> Here is what I did:
>
> Old rpool has only 1 device.
>
> 1. Attach a new device, bigger than existing one.
> 2. Waited until resilvering completed
> 3. Detach old device
> 4. Reformated old device to grow it to the same size of new device
> 5. Attach old device to rpool [rpool now has two devices of same
>    size bigger than original rpool]
> 6. Waited until resilvering completed
> 7. Rebooted
>
> However, the size of the rpool is still the same as before.
> It seems that I gained nothing and lost space in the disk.
> Furthermore, I don't see how to go back.
>
> Any idea? suggestion?
>
> Cheers
>
> Blai
>
>
> _______________________________________________
> opensolaris-discuss mailing list
> [hidden email]
>

--
Matthias Pfützner | Tel.: +49 700 PFUETZNER      | Alles Wichtige lernt man
Lichtenbergstr.73 | mailto:[hidden email] | durch Osmose.
D-64289 Darmstadt | AIM: pfuetz, ICQ: 300967487  |
Germany      | http://www.pfuetzner.de/matthias/ | Woody Allen
_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Resize zfs root pool

Matthias Pfützner
root@Rostropowitsch:~# zpool get all rpool
NAME   PROPERTY       VALUE              SOURCE
rpool  size           18.5G              -
rpool  used           12.3G              -
rpool  available      6.19G              -
rpool  capacity       66%                -
rpool  altroot        -                  default
rpool  health         ONLINE             -
rpool  guid           5328726753404609397  local
rpool  version        14                 local
rpool  bootfs         rpool/ROOT/OSb124  local
rpool  delegation     on                 default
rpool  autoreplace    off                default
rpool  cachefile      -                  default
rpool  failmode       wait               default
rpool  listsnapshots  off                default
rpool  autoexpand     off                default
root@Rostropowitsch:~#

It's the "autoexpand" option...

     Matthias

I (Matthias Pfützner) wrote:

> There's an ZFS option to auto-resize... (don't know the name of that parameter
> right now)
>
> Is that set to Yes?
>
>         Matthias
>
> You (Blai Bonet) wrote:
> > Hi all,
> >
> > I tried to resize a root pool but wasn't successful.
> > The system seems ok, though, but can't see the new space.
> >
> > Here is what I did:
> >
> > Old rpool has only 1 device.
> >
> > 1. Attach a new device, bigger than existing one.
> > 2. Waited until resilvering completed
> > 3. Detach old device
> > 4. Reformated old device to grow it to the same size of new device
> > 5. Attach old device to rpool [rpool now has two devices of same
> >    size bigger than original rpool]
> > 6. Waited until resilvering completed
> > 7. Rebooted
> >
> > However, the size of the rpool is still the same as before.
> > It seems that I gained nothing and lost space in the disk.
> > Furthermore, I don't see how to go back.
> >
> > Any idea? suggestion?
> >
> > Cheers
> >
> > Blai
> >
> >
> > _______________________________________________
> > opensolaris-discuss mailing list
> > [hidden email]
> >
>
> --
> Matthias Pfützner | Tel.: +49 700 PFUETZNER      | Alles Wichtige lernt man
> Lichtenbergstr.73 | mailto:[hidden email] | durch Osmose.
> D-64289 Darmstadt | AIM: pfuetz, ICQ: 300967487  |
> Germany      | http://www.pfuetzner.de/matthias/ | Woody Allen
> _______________________________________________
> opensolaris-discuss mailing list
> [hidden email]
>

--
Matthias Pfützner | Tel.: +49 700 PFUETZNER      | Alles Wichtige lernt man
Lichtenbergstr.73 | mailto:[hidden email] | durch Osmose.
D-64289 Darmstadt | AIM: pfuetz, ICQ: 300967487  |
Germany      | http://www.pfuetzner.de/matthias/ | Woody Allen
_______________________________________________
opensolaris-discuss mailing list
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: Resize zfs root pool

Blai Bonet
In reply to this post by Matthias Pfützner

Matthias Pfützner <Matthias@...> writes:

>
> There's an ZFS option to auto-resize... (don't know the name of that parameter
> right now)
>
> Is that set to Yes?
>
>         Matthias
>
> You (Blai Bonet) wrote:
> > Hi all,
> >
> > I tried to resize a root pool but wasn't successful.
> > The system seems ok, though, but can't see the new space.
> >


Matthias,

Thanks for the help. I changed the property and the pool
resized immediately filling up the whole device.

Cheers,

Blai





_______________________________________________
opensolaris-discuss mailing list
[hidden email]