Skip to content

Commit

Permalink
Update lvm-extend.md
Browse files Browse the repository at this point in the history
Spelling (again...)
  • Loading branch information
dkington-ans authored Oct 18, 2024
1 parent 27cece6 commit 111f5eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/operatingsystems/linux/basics/lvm-extend.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,17 @@ We've identified that one of the disks has been resized - ```sdb``` in this case

## Expand the partition if necessary

If the LVM PV refers to a partition on a disk (e.g. /dev/sdb3) rather than a complete disk (/dev/sdb), you'll first need to expand the partition to use the new space. Use the ```growpart``` command to do this:
If the LVM PV refers to a partition on a disk (e.g. ```/dev/sdb3```) rather than a complete disk (```/dev/sdb```), you'll first need to expand the partition to use the new space. Use the ```growpart``` command to do this:

```growpart <disk> <partition number>```

for example

```growpart /dev/sdb 3```

Note that it is intentional that there is a space between the '/dev/sdb' and '3'. It's also important to note that this will only work if the partition number is the highest numbered on on the disk. For example, if you had /dev/sdb1, /dev/sdb2, /dev/sdb3, /dev/sdb4, and your PV was /dev/sdb3, you couldn't expand /dev/sdb3 because /dev/sdb4 would be in the way. Contact support for advice if you find yourself in this situation.
Note that it is intentional that there is a space between the ```/dev/sdb``` and ```3```. It's also important to note that this will only work if the partition number is the highest numbered on on the disk. For example, if you had ```/dev/sdb1```, ```/dev/sdb2```, ```/dev/sdb3```, ```/dev/sdb4```, and your PV was ```/dev/sdb3```, you couldn't expand ```/dev/sdb3``` because ```/dev/sdb4``` would be in the way. Contact support for advice if you find yourself in this situation.

The ```growpart``` command isn't always installed by default on a server, you may need to install it first using yum / apt / dnf as appropriate.
The ```growpart``` command isn't always installed by default on a server, you may need to install it first using ```yum``` / ```apt``` / ```dnf``` as appropriate.

## Resize the physical volume to use the new space

Expand Down

0 comments on commit 111f5eb

Please sign in to comment.