Re: Need hlep with LVM -

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If I understand you correctly you will need to do something along these lines...
You need to know the names of your volume groups and logical volumes.

use pvscan, vgscan & lvscan to display what you have. eg
root@MythTV:/etc# pvscan
  PV /dev/sdc2   VG vg_tv   lvm2 [1.82 TiB / 59.31 GiB free]
  Total: 1 [1.82 TiB] / in use: 1 [1.82 TiB] / in no VG: 0 [0   ]
root@MythTV:/etc# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "vg_tv" using metadata type lvm2
root@MythTV:/etc# lvscan
  ACTIVE            '/dev/vg_tv/lv_photo' [292.97 GiB] inherit
  ACTIVE            '/dev/vg_tv/lv_music' [195.31 GiB] inherit
  ACTIVE            '/dev/vg_tv/lv_video' [1.19 TiB] inherit
  ACTIVE            '/dev/vg_tv/lv_backup' [97.66 GiB] inherit


ensure that /dev/sdb5 is partition type LVM

# fdisk /dev/sdb
use p command to display partitions
use t command to change type to 8e

Add the partition to you volume group

# pvcreate /dev/sdb5

Add the new partition to your volume group

# vgextend vg_name /dev/sdb5

Extend the root logical volume

# lvextend -l +100%FREE /dev/vg_name/lv_root /dev/sdb5

Resize the volume to match

# resize2fs /dev/vg_name/lv_root
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux