Chapter 29. Removing Stratis file systems
Chapter 29. Removing Stratis file systems You can remove an existing Stratis file system, or a Stratis pool, by destroying data on them. 29.1. Removing a Stratis file system You can remove an existing Stratis file system. Data stored on it are lost. Prerequisites Stratis is installed. See Installing Stratis . The stratisd service is running. You have created a Stratis file system. See Creating a Stratis file system . Procedure Unmount the file system: Destroy the file system: Verification Verify that the file system no longer exists: Additional resources stratis(8) man page on your system 29.2. Deleting a file system from a Stratis pool by using the web console You can use the web console to delete a file system from an existing Stratis pool. Note Deleting a Stratis pool file system erases all the data it contains. Prerequisites You have installed the RHEL 9 web console. You have enabled the cockpit service. Your user account is allowed to log in to the web console. For instructions, see Installing and enabling the web console . Stratis is installed. The web console detects and installs Stratis by default. However, for manually installing Stratis, see Installing Stratis . The stratisd service is running. You have an existing Stratis pool. You have created a file system on the Stratis pool. Procedure Log in to the RHEL 9 web console. For details, see Logging in to the web console . Click Storage . In the Storage table, click the Stratis pool from which you want to delete a file system. On the Stratis pool page, scroll to the Stratis filesystems section and click the menu button ... for the file system you want to delete. From the drop-down menu, select Delete . In the Confirm deletion dialog box, click Delete . 29.3. Removing a Stratis pool You can remove an existing Stratis pool. Data stored on it are lost. Prerequisites Stratis is installed. See Installing Stratis . The stratisd service is running. You have created a Stratis pool: To create an unencrypted pool, see Creating an unencrypted Stratis pool . To create an encrypted pool, see Creating an encrypted Stratis pool . Procedure List file systems on the pool: Unmount all file systems on the pool: Destroy the file systems: Destroy the pool: Verification Verify that the pool no longer exists: Additional resources stratis(8) man page on your system 29.4. Deleting a Stratis pool by using the web console You can use the web console to delete an existing Stratis pool. Note Deleting a Stratis pool erases all the data it contains. Prerequisites You have installed the RHEL 9 web console. You have enabled the cockpit service. Your user account is allowed to log in to the web console. For instructions, see Installing and enabling the web console . The stratisd service is running. You have an existing Stratis pool. Procedure Log in to the RHEL 9 web console. For details, see Logging in to the web console . Click Storage . In the Storage table, click the menu button ... for the Stratis pool you want to delete. From the drop-down menu, select Delete pool . In the Permanently delete pool dialog box, click Delete .
umount /dev/stratis/ my-pool / my-fs stratis filesystem destroy my-pool my-fs stratis filesystem list my-pool stratis filesystem list my-pool umount /dev/stratis/ my-pool / my-fs-1 /dev/stratis/ my-pool / my-fs-2 /dev/stratis/ my-pool / my-fs-n stratis filesystem destroy my-pool my-fs-1 my-fs-2 stratis pool destroy my-pool stratis pool list