- Installing and Configuring an Oracle Solaris Cluster 4.4 Environment
- Creating a Cluster File System
- Creating Cluster File Systems
- Creating ZFS Cluster File Systems
- Configuring Encryption for a Globally Mounted ZFS File System
- How to Remove an Encrypted ZFS Cluster File System and Its Encryption Key
How to Remove an Encrypted ZFS Cluster File System and Its Encryption Key
- Identify the encryption key that is associated with the file system that you want to remove.
phys-schost# zfs get -r keysource zpoolname/fsname
The following example command shows the
keysourceproperty value of thegpool/fs1file system:phys-schost# zfs get -r keysource gpool/fs1 NAME PROPERTY VALUE SOURCE gpool keysource hex,cluster:gpool-key local - Remove the file system.
Use the
zfs destroyor thezfs -rcommand to remove all the child file systems of the specified file system.phys-schost# zfs destroy zpoolname/fsname
The following example command removes the
gpool/fs1file system:phys-schost# zfs destroy gpool/fs1 - Remove the encryption key.
Use the
cldevicegroup key-removecommand to remove the specified encryption key. Specify the key name of the encryption key that you identified in Step 1.phys-schost# cldevicegroup key-remove -k key-nameThe following example command removes the
gpool-keyencryption key:phys-schost# cldevicegroup key-remove -k gpool-key WARNING: Please ensure keyname 'gpool-key' is not being used in any offlined Device Group. Are you sure you want to remove keyname 'gpool-key' (y/n) [n]? y