In the previous part of this article, we had a look at how to
configure LVM, and we had successfully setup a Volume Group and
two Logical Volumes. Now we are going to have a look at extending
the group and volumes.
So let’s start the story from the previous part of this
article!
Because, the mysql
volume was filling up quickly so
I decided to add a new disk of size 10 GB, and I really want to
extend the mysql
volume quickly, before the MySQL
server stalls. With LVM, thats no longer an issue.
Partitioning the new diskFirst let’s have a look at the partition
table,
$ fdisk -l
The new disk is /dev/sdb
, but its not partitioned,
so lets create a single partition spanning the whole disk.
We will do so using the fdisk utility,
$ fdisk /dev/sdb
which will provide you with an interactive console, that you will use to create the …
[さらに読む]