SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


redhatlvm
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
redhatlvm [2014/03/18 22:41]
sjoerd [Red Hat - Resize LVM Disk]
redhatlvm [2014/03/18 22:46] (current)
sjoerd
Line 302: Line 302:
 fdisk -cu /dev/sda fdisk -cu /dev/sda
  - use fdisk to create a LVM (type 8e) partition on /dev/sda3  - use fdisk to create a LVM (type 8e) partition on /dev/sda3
 +xpart -a /dev/sda
 vgcreate vg0 /dev/sda3 vgcreate vg0 /dev/sda3
 lvcreate -n data -L 1GB vg0 lvcreate -n data -L 1GB vg0
Line 310: Line 311:
    /​dev/​mapper/​rootvg-rootlv /   ​ext4 ​   defaults ​   1 2    /​dev/​mapper/​rootvg-rootlv /   ​ext4 ​   defaults ​   1 2
 mount -a mount -a
 +</​code>​
 +
 += Add Second Disk to Volume Group =
 +
 +If you added a second disk to the system to extend the volume group with, you could issue this command:
 +<​code>​
 +fdisk -cu /dev/sdc
 + - use fdisk to create a LVM (type 8e) partition on /dev/sdc1
 +xpart -a /dev/sdc
 +vgextend vg0 /dev/sdc1
 </​code>​ </​code>​
  
redhatlvm.txt ยท Last modified: 2014/03/18 22:46 by sjoerd