Article 6KYTJ How do I add a new hard disk to LVM?

How do I add a new hard disk to LVM?

by
Jason.nix
from LinuxQuestions.org on (#6KYTJ)
Hello,
The LVM configuration is as follows:
Code:# df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 1967448 0 1967448 0% /dev
tmpfs 398368 556 397812 1% /run
/dev/mapper/Docker--vg-root 17172304 8163408 8111260 51% /
tmpfs 1991840 0 1991840 0% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
/dev/xvda1 465124 108733 331457 25% /boot
/dev/mapper/Docker--vg-home 32596756 7656 30907692 1% /home
tmpfs 398368 0 398368 0% /run/user/1000I added a new hard drive (xvdb) to the system:
Code:# /sbin/fdisk --list
Disk /dev/xvdb: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Ignoring extra data in partition table 5.

Disk /dev/xvda: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa42d4daf

Device Boot Start End Sectors Size Id Type
/dev/xvda1 2048 999423 997376 487M 83 Linux
/dev/xvda2 1001470 104855551 103854082 49.5G 5 Extended
/dev/xvda5 1001472 104855551 103854080 49.5G 8e Linux LVM
...How can I use it as another partition?

Thank you.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments