Solaris tutorials

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.

 

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.

 

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.

 

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.

 

ZFS: Set or create a filesystem quota

contributed by qmchenry on under Solaris system administration

Quotas limit the amount of disk space a filesystem can use. The traditional model of filesystems has changed with ZFS because of the introduction of pools. Each pool (which can be made up of a disk slice, a whole disk, or several disks) can have a jaw-dropping big number of filesystems created in a hierarchial manner. This recipe describes the use of quotas with ZFS.

 

ZFS: Enable filesystem compression

contributed by qmchenry on under Solaris system administration

ZFS can compress data on filesystems. Some folks adamantly refuse to compress mounted filesystems citing performance issues. While not every situation is appropriate, compression can increase system performance by improving IO at the cost of CPU. In most cases, disk IO, more than CPU, is rate determining. This recipe descibes turning on ZFS compressionand checking its compression ratio status.

 

ZFS: Display information about pools using zpool

contributed by qmchenry on under Solaris system administration

The zpool command manages ZFS pools as shown in previous recipes. Once a pool is created, its properties can been viewed with the list option of the zpool command.

 

ZFS: Create a new filesystem from an existing pool

contributed by qmchenry on under Solaris system administration

A previous recipe showed the command to create a ZFS pool using zpool. While this created a mounted filesystem, the fun doesn’t stop there. The pool can be used in additional ways. This recipe shows how to create more filesystems out of an existing pool.