Skip to main content

Resize the Redhat XFS LVM partition

To resize a Redhat XFS LVM partition, you will need to follow these steps:

Backup your data to a safe location. Resizing a partition always carries the risk of data loss, so it is important to have a backup before proceeding.

Check if the partition is mounted. You cannot resize a mounted partition, so you will need to unmount it first. To do this, run the following command:

umount /path/to/partition

Check if the partition is part of an LVM. If it is, you will need to deactivate the volume group (VG) before you can resize the partition. To do this, run the following command:

vgchange -an /dev/vg_name

Use the fdisk command to delete the existing partition and recreate it with the new size. Make sure to specify the correct device name for your partition (e.g. /dev/sda1).

Create a new physical volume (PV) on the resized partition:

pvcreate /dev/sda1

Add the PV to the VG:

vgextend /dev/vg_name /dev/sda1

Use the lvextend command to extend the logical volume (LV) to the desired size:

lvextend -L +size /dev/vg_name/lv_name

Finally, resize the XFS filesystem on the LV to fill the new space:

xfs_growfs /path/to/lv

That's it! You have successfully resized your Redhat XFS LVM partition.




Comments

Popular posts from this blog

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.

Audiobooks and its Benefits

 What is Audiobook? An audiobook is a recorded reading of a book or other written work, typically on a CD or as a digital download. Audiobooks can be listened to on a variety of devices, such as smartphones, tablets, and laptops, and are often narrated by professional voice actors. They can be a convenient and accessible way to enjoy literature, and have been shown to improve vocabulary and comprehension, especially in children. Audiobooks can be a great option for people who have difficulty reading traditional print books, or who want to make the most of their time by multitasking while listening to a book. There are several benefits to listening to an audiobook summary:     Time-saving: Audiobook summaries are typically shorter than the original audiobook, allowing you to get a general understanding of the book's content in less time.     Convenience: Many audiobook summary services offer summaries in a variety of formats, such as audio or written, m...

Decentralized DNS Explanation

 Distributed DNS (Domain Name System) is a system designed to distribute domain name resolution services across a distributed network of computers, rather than relying on a central authority or single point of failure. Traditional DNS systems rely on centralized organizations to manage and maintain records of domain names and their corresponding IP addresses. In a distributed DNS system, the responsibility for maintaining records is distributed across a network of nodes, with each node maintaining a copy of the entire domain name database. This improves security, resilience, and resistance to censorship as the system is not controlled by a single entity. Distributed DNS can be achieved using a variety of technologies, including blockchain, peer-to-peer networks, distributed hash tables, and more. These technologies allow users to register and manage domain names in a decentralized manner, ensuring the robustness and security of the system.