Solaris system administration tutorials

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

Contributed by qmchenry on June 6, 2006 under Solaris system administration

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.

Comments
 

ZFS: reserve space for filesystem

Contributed by qmchenry on June 5, 2006 under Solaris system administration

Descendent (child) filesystems in ZFS take on the carachteristics of the parent filesystem (compression, quotas, and available disk space). The pool concept in ZFS is fitting – a hard drive (or several) becomes a pool. We no longer have to define the exact size of a filesystem when we create it. Each filesystem has access to the same pool of space. However, if is simple to reserve a minimum amount of space for a filesystem and its decendents.

Comments
 

ZFS: Set or change the mount point of a filesystem

Contributed by qmchenry on under Solaris system administration

Creating new ZFS filesystems may seem strange at first since they are initially mounted under their parent filesystem. This is no problem since ZFS provides a simple and powerful mechanism for setting the mount point for a filesystem.

Comments
 

ZFS: List or view filesystems

Contributed by qmchenry on under Solaris system administration

It is worth repeating the distinction between ZFS pools and filesystems. A ZFS filesystem cannot exist outside of a ZFS pool. Creating a ZFS pool also creates a ZFS filesystem of the same name. Understanding the second part can help avoid confusion. This recipe describes the simple step to list the ZFS filesystems configured on the system.

Comments
 

Login to Solaris desktop from Windows using Cygwin

Contributed by qmchenry on June 4, 2006 under Solaris system administration

Cygwin is a great tool for UNIX people stuck in a Windows world as it provides a vast assortment of UNIX tools in a Windows command prompt. One of the most powerful uses of Cygwin is as an X server. While it may be useful occasionally to run a single X application in its own window, that can be boring. As a more exciting option, it is simple (one command!) to launch a full Solaris desktop session complete with login screen.

Comments
 

ZFS: Create a mirrored storage pool

Contributed by qmchenry on June 3, 2006 under Solaris system administration

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.

Comments
 

ZFS: Unmount or take a filesystem offline

Contributed by qmchenry on under Solaris system administration

The mount and unmount commands are not used with ZFS filesystems. The filesystem concept has changed with ZFS in which we are likely to see many more filesystems created per host. A ZFS pool can be taken offline using the zpool command and a ZFS filesystem can be unmounted using the zfs command as described in this recipe.

Comments
 

ZFS: How to fsck or check filesystem integrity with scrub

Contributed by qmchenry on under Solaris system administration

ZFS will change the way UNIX people think about filesystems. How do you use fsck with a ZFS filesystem? You don’t. ZFS filesystems are always clean so even in the worst case of a power outage bringing a system down, you’ll never be asked to give the root password for system maintenance again. With ZFS, data are always consistent on disk. For you worriers, there is a command you can use to make sure everything is okay with your filesystems.

Comments