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 - Learning about Partitions and How to Create Them for Fedora xSicKxBot 0 0 1 hour ago
Last Post: xSicKxBot
  Fedora - Fedora CoreOS out of preview xSicKxBot 0 13 01-18-2020, 09:40 AM
Last Post: xSicKxBot
  Fedora - Develop GUI apps using Flutter on Fedora xSicKxBot 0 20 01-16-2020, 03:08 PM
Last Post: xSicKxBot
  Fedora - How to setup a DNS server with bind xSicKxBot 0 37 01-14-2020, 09:50 AM
Last Post: xSicKxBot
  Fedora - How to setup multiple monitors in sway xSicKxBot 0 24 01-09-2020, 08:29 AM
Last Post: xSicKxBot
  Fedora - Most read articles in 2019 not from 2019 xSicKxBot 0 25 01-07-2020, 10:37 AM
Last Post: xSicKxBot
  Fedora - Tracking Translations with Transtats xSicKxBot 0 30 01-04-2020, 06:23 AM
Last Post: xSicKxBot
  Fedora - Top articles of 2019: Editors’ choice xSicKxBot 0 33 12-31-2019, 06:22 AM
Last Post: xSicKxBot
  Fedora - Top articles of 2019: For desktop users xSicKxBot 0 33 12-28-2019, 03:31 AM
Last Post: xSicKxBot
  Fedora - Best of 2019: Fedora for developers xSicKxBot 0 43 12-26-2019, 02:34 AM
Last Post: xSicKxBot

Forum Jump:


Users browsing this thread:
1 Guest(s)

[-]
Welcome
You have to register before you can post on our site.

Username:


Password:





[-]
Statistics
» Members: 12,001
» Latest member: chalkypink
» Forum threads: 11,107
» Forum posts: 11,497

Full Statistics

[-]
Online Staff
There are no staff members currently online.

[-]
Discord

[-]
Latest Threads
Mobile - Carcassonne is Dead, Long Live ...
Last Post: xSicKxBot
Today 06:58 AM
» Replies: 0
» Views: 0
AppleInsider - Apple working on preventa...
Last Post: xSicKxBot
Today 06:57 AM
» Replies: 0
» Views: 0
Fedora - Learning about Partitions and H...
Last Post: xSicKxBot
Today 06:57 AM
» Replies: 0
» Views: 0
Steam - Pre-Purchase Now – ONE PUNCH MAN...
Last Post: xSicKxBot
Today 06:57 AM
» Replies: 0
» Views: 0
Xbox Wire - This Week on Xbox: January 1...
Last Post: xSicKxBot
Today 06:57 AM
» Replies: 0
» Views: 0
News - Get a job: Be a Principal Writer ...
Last Post: xSicKxBot
Today 06:57 AM
» Replies: 0
» Views: 0
News - Don’t Miss: Making Horizon Zero D...
Last Post: xSicKxBot
Today 06:57 AM
» Replies: 0
» Views: 0
Decoupling microservices with Apache Cam...
Last Post: xSicKxBot
Today 03:50 AM
» Replies: 0
» Views: 0
[Tut] Python Regex Compile
Last Post: xSicKxBot
Today 03:50 AM
» Replies: 0
» Views: 0
[Oracle Blog] Updates to the Java SE Pla...
Last Post: xSicKxBot
Today 03:50 AM
» Replies: 0
» Views: 0

[-]
Twitter

[-]
Recent Posts
Mobile - Carcassonne is Dead, Long Live ...
Carcassonne is Dead,...xSicKxBot — 06:58 AM
AppleInsider - Apple working on preventa...
Apple working on pre...xSicKxBot — 06:57 AM
Fedora - Learning about Partitions and H...
Learning about Parti...xSicKxBot — 06:57 AM
Steam - Pre-Purchase Now – ONE PUNCH MAN...
Pre-Purchase Now – O...xSicKxBot — 06:57 AM
Xbox Wire - This Week on Xbox: January 1...
This Week on Xbox: J...xSicKxBot — 06:57 AM

[-]
Top Poster
no avatar Congratulations to xSicKxBot, our current top poster for the last day with 16 posts!

Copyright © SickGaming.net 2012-2019