Questo contenuto non è disponibile nella lingua selezionata.

Chapter 3. Managing partitions using the web console


Learn how to manage file systems on RHEL 9 using the web console.

3.1. Displaying partitions formatted with file systems in the web console

The Storage section in the web console displays all available file systems in the Filesystems table.

Besides the list of partitions formatted with file systems, you can also use the page for creating new storage.

Prerequisites

  • The cockpit-storaged package is installed on your system.

Procedure

  1. Log in to the RHEL 9 web console.

    For details, see Logging in to the web console.

  2. Click the Storage tab.

    In the Storage table, you can see all available partitions formatted with file systems, their ID, types, locations, sizes, and how much space is available on each partition.

    Image displaying the Storage table available in the cockpit Storage tab.

    You can also use the drop-down menu in the top-right corner to create new local or networked storage.

    Image displaying the drop-down menu available in the Storage table.

3.2. Creating partitions in the web console

To create a new partition:

  • Use an existing partition table
  • Create a partition

Prerequisites

  • The cockpit-storaged package is installed on your system.
  • The web console must be installed and accessible. For details, see Installing the web console.
  • An unformatted volume connected to the system is visible in the Storage table of the Storage tab.

Procedure

  1. Log in to the RHEL 9 web console.

    For details, see Logging in to the web console.

  2. Click the Storage tab.
  3. In the Storage table, click the device which you want to partition to open the page and options for that device.
  4. On the device page, click the menu button, , and select Create partition table.
  5. In the Initialize disk dialog box, select the following:

    1. Partitioning:

      • Compatible with all systems and devices (MBR)
      • Compatible with modern system and hard disks > 2TB (GPT)
      • No partitioning
    2. Overwrite:

      • Select the Overwrite existing data with zeros checkbox if you want the RHEL web console to rewrite the whole disk with zeros. This option is slower because the program has to go through the whole disk, but it is more secure. Use this option if the disk includes any data and you need to overwrite it.

        If you do not select the Overwrite existing data with zeros checkbox, the RHEL web console rewrites only the disk header. This increases the speed of formatting.

  6. Click Initialize.
  7. Click the menu button, , next to the partition table you created. It is named Free space by default.
  8. Click Create partition.
  9. In the Create partition dialog box, enter a Name for the file system.
  10. Add a Mount point.
  11. In the Type drop-down menu, select a file system:

    • XFS file system supports large logical volumes, switching physical drives online without outage, and growing an existing file system. Leave this file system selected if you do not have a different strong preference.
    • ext4 file system supports:

      • Logical volumes
      • Switching physical drives online without outage
      • Growing a file system
      • Shrinking a file system

    Additional option is to enable encryption of partition done by LUKS (Linux Unified Key Setup), which allows you to encrypt the volume with a passphrase.

  12. Enter the Size of the volume you want to create.
  13. Select the Overwrite existing data with zeros checkbox if you want the RHEL web console to rewrite the whole disk with zeros. This option is slower because the program has to go through the whole disk, but it is more secure. Use this option if the disk includes any data and you need to overwrite it.

    If you do not select the Overwrite existing data with zeros checkbox, the RHEL web console rewrites only the disk header. This increases the speed of formatting.

  14. If you want to encrypt the volume, select the type of encryption in the Encryption drop-down menu.

    If you do not want to encrypt the volume, select No encryption.

  15. In the At boot drop-down menu, select when you want to mount the volume.
  16. In Mount options section:

    1. Select the Mount read only checkbox if you want the to mount the volume as a read-only logical volume.
    2. Select the Custom mount options checkbox and add the mount options if you want to change the default mount option.
  17. Create the partition:

    • If you want to create and mount the partition, click the Create and mount button.
    • If you want to only create the partition, click the Create only button.

      Formatting can take several minutes depending on the volume size and which formatting options are selected.

Verification

  • To verify that the partition has been successfully added, switch to the Storage tab and check the Storage table and verify whether the new partition is listed.

3.3. Deleting partitions in the web console

You can remove partitions in the web console interface.

Prerequisites

  • The cockpit-storaged package is installed on your system.

Procedure

  1. Log in to the RHEL 9 web console.

    For details, see Logging in to the web console.

  2. Click the Storage tab.
  3. Click the device from which you want to delete a partition.
  4. On the device page and in the GPT partitions section, click the menu button, next to the partition you want to delete.
  5. From the drop-down menu, select Delete.

    The RHEL web console terminates all processes that are currently using the partition and unmount the partition before deleting it.

Verification

  • To verify that the partition has been successfully removed, switch to the Storage tab and check the Storage table.
Red Hat logoGithubRedditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita ilBlog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

© 2024 Red Hat, Inc.