Skip to content

Commit

Permalink
new linux section
Browse files Browse the repository at this point in the history
  • Loading branch information
fire1ce committed Nov 11, 2018
1 parent 73ea2eb commit 1f25b13
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/linux/lvm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
title: Linux - LVM Partition Linux
description: Linux - LVM Partition how to, guides

# Linux LVM Partitions

## Removing LVM Partition and Merging In To / (root partition)

Find out the names of the partition with df

```bash
df
```

You need to unmount the partition before you can delete them and marge __backup the data of the partition you would like to delete__ this exmaple will use "centos-home" as the partition that will be merged to the root partition.

```bash
unmount -a
lvremove /dev/mapper/centos-home
lvextend -l +100%FREE -r /dev/mapper/centos-root
```

After the merging and before mounting you should remove the partition from fastab

```bash
nano /etc/fstab
mount -a
```

<!-- Donation Button -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top" align="center"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="Q94AU5RUD4X6A"><input type="image" src="https://raw.githubusercontent.com/fire1ce/3os.org/gh-pages/assets/images/beerDonation.png" width="150px" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></form>
<!-- Donation Button -->

0 comments on commit 1f25b13

Please sign in to comment.