ZFS: Grow or add more disk space to pool or filesystem

Home -> UNIX -> Solaris -> System administration

14304 views

From the computer of: qmchenry (338 recipes)
Created: Jun 06, 2006


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Run out of disk space on your production server? Cringe at the downtime required to bring filesystems offline, backup, create bigger filesystems, and restore all the while typing with crossed fingers? Dread deciding the disk layout for your new server? Don't panic! ZFS has you covered. In one simple command, you can add space to a ZFS pool without taking it offline.

Given a ZFS pool techrx and an unused disk denoted by c1t0d0, you can add the disk to the pool (a non-mirrored pool -- that's another recipe) with this command:

zpool add techrx c1t0d0


Before, the output of zfs list showed:

NAME                   USED  AVAIL  REFER  MOUNTPOINT
techrx                 295K  19.2G  25.5K  /techrx


After the zpool command, the same command shows:

NAME                   USED  AVAIL  REFER  MOUNTPOINT
techrx                 296K  38.4G  25.5K  /techrx


It's worth pointing out again that this command works on a live, mounted filesystem. All of the filesystems in the techrx pool benefit from this increase in space (unless they have a quota).

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  ZFS: Create a basic filesystem or pool using zpool
  ZFS: Create a new filesystem from an existing pool
  ZFS: reserve space for filesystem
  ZFS: Set or create a filesystem quota
  ZFS: Create a raidz filesystem
  ZFS: Create a snapshot of a filesystem
  ZFS: List or view filesystems
  ZFS: How to fsck or check filesystem integrity with scrub
  ZFS: Unmount or take a filesystem offline
  ZFS: Set or change the mount point of a filesystem

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.