ZFS: Create a mirrored storage pool

Home -> UNIX -> Solaris -> System administration

14215 views

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


Add a comment

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

Anyone who has used DiskSuite to mirror drives in Solaris knows that, while not difficult, the multiple steps involved are fertile ground for (potentially devastating) heartache. Not so with ZFS. Creating a mirrored pool with ZFS makes DiskSuite look like rocket surgery.

To create a mirrored pool 'stuff' out of the disks c0t0d0 and c0t1d0, use the command:

zpool create stuff mirror c0t0d0 c0t1d0


Done. Who needs GUIs? The filesystem mounted as /stuff is mirrored and ready for use. A mirrored ZFS filesystem can be used exactly like other ZFS filesystems.

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: Grow or add more disk space to pool or filesystem
  ZFS: Create a basic filesystem or pool using zpool
  ZFS: Create a new filesystem from an existing pool
  ZFS: Create a raidz filesystem
  ZFS: Unmount or take a filesystem offline
  ZFS: Ten reasons to reformat your hard drives
  ZFS: Display information about pools using zpool
  ZFS: reserve space for filesystem
  ZFS: Set or change the mount point of a filesystem
  ZFS: How to fsck or check filesystem integrity with scrub

 

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.