The ‘Solaris system administration’ Archives
Posted July 29, 2008 by

begin_script to mirror two drives on a Netra T2000

This is a quick script to configure mirroring of two drives in a Netra T2000 under Solaris. You may need to alter the device settings for your system, but once you have a script like this that works, it can save lots of time when rolling out multiple servers and serves as a mental backup […]

Posted February 15, 2008 by

Solaris: Delete ZFS slices from a disk

You know ZFS, it is really cool, you can have tons of filesystems in a zpool, you can create raidz/mirror/stripes with just one command, it has compression, quotas and every other cool feature that you can thought about. But what happens if you have to move a ZFS disk to a Solaris 8/9 system?

Posted June 16, 2006 by

ZFS: Ten reasons to reformat your hard drives

The much anticipated release of the new ZFS filesystem in Solaris 10 will revolutionize the way system administrators (and executives) think about and work with filesystems. Breaking free of the traditional volume or partition architecture, ZFS combines scalability and flexibility while providing a simple command interface. Coined by Sun as the “last word in filesystems,” […]

Posted June 14, 2006 by

ZFS: Create a Writable Clone of a Filesystem

A ZFS clone is a writable copy of a snapshot of a filesystem. Fortunately, a ZFS clone is much simpler than its definition sounds. While a filesystem snapshot is read-only, a writable version can be created through cloning. Just like snapshots, clones are quick to create and use no additional space when they are created.

Posted June 14, 2006 by

ZFS: Restore a Filesystem from a Snapshot Backup

ZFS snapshots provide point-in-time backups of filesystems which utilize minimal disk space and CPU load. This, combined with the fact that you can make billions of billions of snapshots, makes taking frequent backups of filesystems a realistic possibility. This tech-recipe describes restoring a filesystem from a snapshot.

Posted June 14, 2006 by

ZFS: Create a Snapshot of a Filesystem

Of the many cool features of the new ZFS filesystems, one of the coolest is taking snapshots of a live filesystem. This provides a read-only, point-in-time copy of the whole filesystem. While this sounds slow and expensive in disk usage, ZFS makes snapshots efficient in time and space.

Posted June 6, 2006 by

ZFS: Create a raidz Filesystem

ZFS supports a type of RAID-5 redundancy called raidz. This redundancy works at the ZFS pool level and affects all created filesystems in that pool. According to the Sun docs, raidz offers “better distribution of parity [than RAID-5] and eliminates the ‘RAID-5 write hole’ (in which data and parity become inconsistent after a power loss).” […]

Posted June 6, 2006 by

ZFS: Destroy or Remove One or More Filesystems

If you no longer want a filesystem or hierarchy of filesystems, ZFS offers an easy mechanism for removing them that is possibly too simple. The destroy option of the zfs command unshares, unmounts, and obliterates filesystems.

Posted June 6, 2006 by

ZFS: Grow or Add More Disk Space to Pool or Filesystem

Have you ever run out of disk space on your production server? Do you cringe at the downtime required to bring filesystems offline, backup, create bigger filesystems, and restore, all the while typing with crossed fingers? Do you dread deciding the disk layout for your new server? You do not need to panic! ZFS has […]

Posted June 5, 2006 by

ZFS: Reserve Space for Filesystem

Descendent (child) filesystems in ZFS take on the characteristics 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 […]

Posted June 5, 2006 by

ZFS: Set or Change the Mount Point of a Filesystem

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.

Posted June 5, 2006 by

ZFS: List or View Filesystems

The distinction between ZFS pools and filesystems is worth repeating. 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 tech-recipe describes the simple step to list the ZFS filesystems configured on the […]