Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2012 10:00:40 +0300
From:      Daniel Kalchev <daniel@digsys.bg>
To:        freebsd-fs@freebsd.org
Subject:   Re: Increasing ZFS Disk Sizes
Message-ID:  <4F964F98.7070107@digsys.bg>
In-Reply-To: <4F964429.5060607@infracaninophile.co.uk>
References:  <CACMcHMdCaJjE1Ao7jN156tK%2ByNHDCyEZ-wam489jq2JhCJd%2BnA@mail.gmail.com> <4F964429.5060607@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help


On 24.04.12 09:11, Matthew Seaman wrote:
> One thing I'd certainly recommend your doing here is to set up a gmirror
> across your swap partitions.  As it is, despite having your filesystems
> mirrored using ZFS, you are still vulnerable to system crash should one
> of your drives fail.  To do that:
>
> Halt the system and reboot into single user mode (ie shutdown -r).  You
> want this so that your current swap partitions are not enabled, as
> you'll need to modify their configuration.

This can be done while the system is running, as long as swapping is 
disabled (swapoff -a) and of course there is sufficient RAM to support 
all running processes.

With regards to expanding the zpool, make sure you have autoexpand=on 
property set on your zpool before you start doing any of this, or at 
least before replacing the last drive in the vdev. This way, you will be 
able to resize your zpool while the system is running, no downtime. 
Otherwise, you may have to reboot and export/import the pool, something 
not very trivial to do for an root on ZFS pool.

Daniel



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F964F98.7070107>