Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fedora - Performing storage management tasks in Cockpit

#1
Performing storage management tasks in Cockpit

In the previous article we touched upon some of the new features introduced to Cockpit over the years. This article will look into some of the tools within the UI to perform everyday storage management tasks. To access these functionalities, install the cockpit-storaged package:

 sudo dnf install cockpit-storaged

From the main screen, click the Storage menu option in the left column. Everything needed to observe and manage disks is available on the main Storage screen. Also, the top of the page displays two graphs for the disk’s reading and writing performance with the local filesystem’s information below. In addition, the options to add or modify RAID devices, volume groups, iSCSI devices, and drives are available as well. In addition, scrolling down will reveal a summary of recent logs. This allows admins to catch any errors that require immediate attention.

Cockpit storage main screen

Filesystems


This section lists the system’s mounted partitions. Clicking on a partition will display information and options for that mounted drive. Growing and shrinking partitions are available in the Volume sub-section. There’s also a filesystem subsection that allows you to change the label and configure the mount.

If it’s part of a volume group, other logical volumes in that group will also be available. Each standard partition has the option to delete and format. Also, logical volumes have an added option to deactivate the partition.

Example screenshot of the /boot filesystem in Cockpit

RAID devices


Cockpit makes it super-easy to manage RAID drives. With a few simple clicks the RAID drive is created, formatted, encrypted, and mounted. For details, or a how-to on creating a RAID device from the CLI check out the article Managing RAID arrays with mdadm.

To create a RAID device, start by clicking the add (+) button. Enter a name, select the type of RAID level and the available drives, then click Create. The RAID section will show the newly created device. Select it to create the partition table and format the drive(s). You can always remove the device by clicking the Stop and Delete buttons in the top-right corner.

Creating a RAID device in Cockpit

Logical volumes


By default, the Fedora installation uses LVM when creating the partition scheme. This allows users to create groups, and add volumes from different disks to those groups. The article, Use LVM to Upgrade Fedora, has some great tips and explanations on how it works in the command-line.

Start by clicking the add (+) button next to “Volume Groups”. Give the group a name, select the disk(s) for the volume group, and click Create. The new group is available in the Volume Groups section. The example below demonstrates a new group named “vgraiddemo”.

Now, click the newly made group then select the option to Create a New Logical Volume. Give the LV a name and select the purpose: Block device for filesystems, or pool for thinly provisioning volumes. Adjust the amount of storage, if necessary, and click the Format button to finalize the creation.

Creating a volume group and assigning disks to that volume group.

Cockpit can also configure current volume groups. To add a drive to an existing group, click the name of the volume group, then click the add (+) button next to “Physical Volumes”. Select the disk from the list and click the Add button. In one shot, not only has a new PV, been created, but it’s also added to the group. From here, we can add the available storage to a partition, or create a new LV. The example below demonstrates how the additional space is used to grow the root filesystem.


iSCSI targets


Connecting to an iSCSI server is a quick process and requires two things, the initiator’s name, which is assigned to the client, and the name or IP of the server, or target. Therefore we will need to change the initiator’s name on the system to match the configurations on the target server.

To change the initiator’s name, click the button with the pencil icon, enter the name, and click Change.

To add the iSCSI target, click the add (+) button, enter the server’s address, the username and password, if required, and click Next. Select the target — verify the name, address, and port, — and click Add to finalize the process.

To remove a target, click the “checkmark” button. A red trashcan will appear beside the target(s). Click it to remove the target from the setup list.

Adding an iSCSI target in Cockpit

NFS mount


Cockpit even allows sysadmins to configure NFS shares within the UI. To add NFS shares, click the add (+) button in the NFS mounts section. Enter the server’s address, the path of the share on the server, and a location on the local machine to mount the share. Adjust the mount options if needed and click Add to view information about the share. We also have the options to unmount, edit, and remove the share. The example below demonstrates how the NFS share on SERVER02 is mounted to the /mnt directory.


Conclusion


As we’ve seen in this article, a lot of the storage-related tasks that require lengthy, and multiple, lines of commands can be easily done within the web UI with just a few clicks. Cockpit is continuously evolving and every new feature makes the project better and better. In the next article we’ll explore the features and components on the networking side of things.



https://www.sickgaming.net/blog/2019/09/...n-cockpit/
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Fedora - Fedora Silverblue, an introduction for developers xSicKxBot 0 21 05-21-2020, 04:56 AM
Last Post: xSicKxBot
  Fedora - Using Fedora to implement REST API in JavaScript: part 2 xSicKxBot 0 28 05-19-2020, 12:23 AM
Last Post: xSicKxBot
  Fedora - The pieces of Fedora Silverblue xSicKxBot 0 31 05-16-2020, 02:08 AM
Last Post: xSicKxBot
  Fedora - How to rebase to Fedora 32 on Silverblue xSicKxBot 0 42 05-09-2020, 03:58 AM
Last Post: xSicKxBot
  Fedora - Fedora Classroom Session: IRC 101 xSicKxBot 0 40 05-08-2020, 02:41 AM
Last Post: xSicKxBot
  Fedora - Using mergerfs to increase your virtual storage xSicKxBot 0 49 05-02-2020, 02:37 AM
Last Post: xSicKxBot
  Fedora - What’s new in Fedora 32 Workstation xSicKxBot 0 44 05-01-2020, 04:42 AM
Last Post: xSicKxBot
  Fedora - Fedora 32 is officially here! xSicKxBot 0 58 04-29-2020, 11:44 PM
Last Post: xSicKxBot
  Fedora - Upgrading Fedora 31 to Fedora 32 xSicKxBot 0 43 04-29-2020, 03:22 AM
Last Post: xSicKxBot
  Fedora - Coming soon: Fedora on Lenovo laptops! xSicKxBot 0 63 04-25-2020, 06:13 AM
Last Post: xSicKxBot

Forum Jump:

[-]
Upcoming Events

[-]
Discord

[-]
Latest Threads
News - Poll: Box Art Brawl #45 – Phalanx
Last Post: xSicKxBot
Today 07:27 PM
» Replies: 0
» Views: 1
News - Pokemon Go Is Going Down For Main...
Last Post: xSicKxBot
Today 07:26 PM
» Replies: 0
» Views: 1
News - Nintendo’s Latest Patent Protects...
Last Post: xSicKxBot
Today 01:16 PM
» Replies: 0
» Views: 1
News - Fortnite Doomsday Event Start Dat...
Last Post: xSicKxBot
Today 01:16 PM
» Replies: 0
» Views: 1
[Tut] Python Join List [Ultimate Guide]
Last Post: xSicKxBot
Today 12:43 PM
» Replies: 0
» Views: 1
(Indie Deal) Tricky Traps Bundle, No Man...
Last Post: xSicKxBot
Today 12:43 PM
» Replies: 0
» Views: 1
News - New Amazon Listing Teases Second ...
Last Post: xSicKxBot
Today 06:56 AM
» Replies: 0
» Views: 3
News - Xenoblade Chronicles: Definitive ...
Last Post: xSicKxBot
Today 06:56 AM
» Replies: 0
» Views: 3
News - Minecraft Studio Gets Updated Nam...
Last Post: xSicKxBot
Today 06:56 AM
» Replies: 0
» Views: 3
News - Sony says after July 13th, new PS...
Last Post: xSicKxBot
Today 05:50 AM
» Replies: 0
» Views: 5

[-]
Twitter

[-]
Sponsored
Get the Deal of the Week at RefurBees.com

Copyright © SickGaming.net 2012-2019