Skip to main content

Add additional space to ext4 filesystem in RHEL

 To add additional space to an ext4 filesystem on a Red Hat Enterprise Linux (RHEL) system, you can use the following steps:

  1. Use the command df -h to check the current usage and available space on the filesystem.
  2. Use the command fdisk -l to check the available disk space on the system.
  3. If there is free space on the disk, you can use the command fdisk /dev/sda (replacing /dev/sda with the appropriate device name) to create a new partition with the free space.
  4. Use the command mkfs.ext4 /dev/sdaX (replacing /dev/sdaX with the appropriate device name) to create a new ext4 filesystem on the new partition.
  5. Use the command mount /dev/sdaX /mnt (replacing /dev/sdaX and /mnt with the appropriate device name and mount point) to mount the new filesystem.
  6. Use the command df -h again to check the new available space on the filesystem.
  7. If you want to mount this filesystem automatically during boot, you should add an entry in the /etc/fstab file.

Please, be aware that this is a dangerous operation, if any mistake happens, it can cause data lost. It's strongly recommended to backup your data before doing this operation.




Comments

Popular posts from this blog

Kerberos Authentication Protocol

  Kerberos Authentication Protocols is a network authentication protocol that provides secure communication over an insecure network by using secret-key cryptography. It was originally developed at MIT and is now widely used in many different organizations, including Microsoft Windows. Kerberos authentication works by using a third-party authentication server to verify the identities of users and services. When a user requests access to a resource, such as a file server, the user's computer sends a request to the Kerberos authentication server. The authentication server verifies the user's identity and issues a ticket-granting ticket (TGT) that the user can use to request access to other resources on the network. The user then presents the TGT to a ticket-granting server (TGS), which issues a service ticket for the requested resource. The user presents this service ticket to the resource server, which grants access if the ticket is valid. Kerberos authentication is widely used ...

Upskilling is Survival

Upskilling is no longer a “nice to have” for leaders. It's " SURVIVAL " The unpleasant reality? The moment they begin managing, most leaders stop learning. While the world moves more quickly than their perspective, they rely on prior experiences. Technology evolves. Teams evolve. Expectations change throughout time. You become the bottleneck if you don't. Today, being a leader isn't about knowing everything. It's about remaining current enough to pose pertinent queries. The most effective leaders I've encountered: Acquire knowledge more quickly than their teams Continue to be involved in change Invest in your abilities before they become essential. If you’re not actively upskilling, you’re not leading you’re just holding position. And in today’s market, that’s a risk you can’t afford.

Extend the BTRFS volume on Azure

To extend a BTRFS volume on Azure, you'll need to follow these steps: 1. Identify the name of the BTRFS volume that you want to extend. You can do this by running the following command: sudo btrfs filesystem show This will show you a list of all the BTRFS volumes on your system, along with their names and sizes. 2. Stop any services or applications that are using the BTRFS volume that you want to extend. 3. Use the Azure portal or Azure CLI to extend the size of the Azure disk that the BTRFS volume is on. This will increase the available space on the disk, but not yet on the BTRFS volume itself. 4. Use the following command to resize the BTRFS volume to use the new space: sudo btrfs filesystem resize max /path/to/mount/point Replace "/path/to/mount/point" with the actual path to the mount point of the BTRFS volume that you want to extend. 5. Verify that the BTRFS volume has been extended by running the following command: sudo btrfs filesystem show This should show that th...