This post is to provide steps from changing iSCSI Static Discovery to SendTargets Discovery. If zones are configured, zones need to be halted before changing the iSCSI discovery method then boot afterward. If zpool is configured, zpool needs to be exported before changing the iSCSI discovery method then import afterward. Below are high level steps: […]
ZFS
Howto Verify If a Bootblk is Installed on the Boot Disk (SPARC)
This can be useful in troubleshooting if the system fails to boot with a suspected bootblk issues, or if you suspect something in the OS keeps overwriting the bootblk. For Solaris 10 Below is the output from a Solaris 10u4 with UFS, Solaris 10u6 with UFS, and a Solaris 10u6 with ZFS bootblock. The bootblk […]
How to Configure iSCSI targets on Solaris 10
iSCSI target feature has been available since s10u7. Here is some information for setting up a basic iSCSI target configuration. High level steps to follow are as shown below : create a base directory configure the backing store Creating a target Add ACL to target 1. create a base directory The base directory is used […]
How to Import Zpool and Mount of BE When Booted From Alternate Device in Solaris 11
This post shows how to boot from an alternate device or media to update or fix a Solaris 11 instance. Boot the system from another bootable disk, installation DVD, or over the network. Ensure that the version of Solaris 11 on the alternate media matches the version of the Solaris 11 on the disk. For […]
How to Backup and Restore ZFS root pool in Solaris 10
The following procedure can be used to backup and restore a ZFS root pool (rpool) using the tools that are provided in Solaris 10 and above. It is advised that the system admin becomes comfortable with this procedure and attempts a restore before deploying this into production environments. In this procedure, it is assumed the […]
How to update the boot_archive for ZFS root in Solaris
If a Solaris system fails to boot with messages similar to the following are encountered, the system will need to be booted from alternate Oracle Solaris media ( e.g. the failsafe archive, cd / dvd media, or an install image over the network) in order to update the boot_archive. The file just loaded does not […]
Solaris ZFS : How to replace a failed disk in rpool (x86)
The post describes steps to replace a failed disk in rpool for x86 based systems. Assuming c0t0d0 and c0t1d0 are mirrored in the ZFS rpool, and c0t1d0 need to be replaced. 1. As shown in the output below, c0t1d0 need to be replaced as it is having a lot of errors. # iostat -En … […]
Understanding “Holding a ZFS Snapshot” Feature
What is “Holding a ZFS Snapshot” feature Remote replication of ZFS datasets can result in different automatic snapshot policies on the two sides of a replication pair. For example, the sending side may want to keep five snapshots at one-minute intervals, whereas the receiving side may want to keep 10 snapshots at one-minute intervals. This […]
How to Identify ZFS Snapshot Differences using “zfs diff”
To determine the differences between ZFS snapshots, you can use the zfs diff command. The output of this command provides a high-level description of the differences between a snapshot and a descendant dataset. The descendant can be either a snapshot of the data set or the current data set. For each file that has undergone […]
How to find the space consumed by ZFS snapshots
When a snapshot is created, its space is initially shared between the snapshot and the file system, and possibly with previous snapshots. As the file system changes, space that was previously shared becomes unique to the snapshot, and thus is counted in the snapshot’s used property. Additionally, deleting snapshots can increase the amount of space […]