Attaching an LVM disk to Ubuntu

Source: Internet
Author: User
Today, we use Ubuntu livecd to fix a library file in the RedHat system. Because the redhat system disk is in lvm format, the livecd of Ubuntu11.10 is not activated by default and cannot be mounted. Solution: 1. Install lvm2 software sudoapt-getinstalllvm22. Scan LVM to find VG $ sudovgscanReadingallphysicalvolumes.

Today, we use Ubuntu livecd to fix a library file in the RedHat system. Because the redhat system disk is in lvm format, the livecd of Ubuntu 11.10 is not activated by default and cannot be mounted.

Solution:

1. Install lvm2 Software

Sudo apt-get install lvm2

2. Scan LVM to find VG
$ Sudo vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup01" using metadata type lvm2
3. Activate VG
$ Sudo vgchange-ay VolGroup01
2 logical volume (s) in volume group "VolGroup01" now active
4. Test and list LV
$ Sudo lvs
Lv vg Attr LSize Origin Snap % Move Log Copy % Convert
LogVol00 VolGroup01-wi-a-6.88g
LogVol01 VolGroup01-wi-a-1.00g
5. mount
$ Sudo mount/dev/VolGroup01/LogVol00/mnt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.