Ora9 mounting LVM format Partitioning Method

Source: Internet
Author: User
Try to mount another hard disk in Fedora9, one of which is in LVM2 format and cannot be directly: "mount/dev/sdb3/mnt/sdb3 ", A weekly discount was made to find the Mount method. The record is as follows for emergency purposes. 1. pvs [root @ localhostyuanbor] #/sbin/pvsWARNING: DuplicateVGnameVolGroup00: ExistingtWwhxK-0M8r

Try to mount another hard disk in Fedora 9. One of the partitions is in LVM2 format and cannot be directly: "mount/dev/sdb3/mnt/sdb3 ", A weekly discount was made to find the Mount method. The record is as follows for emergency purposes.

1. pvs

[Root @ localhost yuanbor] #/sbin/pvs
WARNING: Duplicate VG name VolGroup00: Existing tWwhxK-0M8r-sqhQ-VW7m-0BYv-BPkO-pgBRM8 (created here) takes precedence over 7kU450-LaPn-afEa-iWGw-xiqD-Tmwe-ohpL3f
Pv vg Fmt Attr PSize PFree
/Dev/sda2 VolGroup00 lvm2 a-33.97G 32.00 M
/Dev/sdb3 VolGroup00 lvm2 a-36.78G 32.00 M

This is miserable. The two VG names are duplicated. Modify the name of the second VG.

2. vgrename

[Root @ localhost yuanbor] #/sbin/vgrename 7kU450-LaPn-afEa-iWGw-xiqD-Tmwe-ohpL3f/dev/VolGroup01
WARNING: Duplicate VG name VolGroup00: Existing tWwhxK-0M8r-sqhQ-VW7m-0BYv-BPkO-pgBRM8 (created here) takes precedence over 7kU450-LaPn-afEa-iWGw-xiqD-Tmwe-ohpL3f
Volume group "VolGroup00" successfully renamed to "VolGroup01"

[Root @ localhost yuanbor] #/sbin/pvs
Pv vg Fmt Attr PSize PFree
/Dev/sda2 VolGroup00 lvm2 a-33.97G 32.00 M
/Dev/sdb3 VolGroup01 lvm2. a-36.78G 32.00 M

3. lvscan

[Root @ localhost sdb3] #/sbin/lvscan
Inactive '/dev/VolGroup01/logvol00' [34.81 GB] inherit
Inactive '/dev/VolGroup01/LogVol01' [1.94 GB] inherit
ACTIVE '/dev/VolGroup00/logvol00' [32.00 GB] inherit
ACTIVE '/dev/VolGroup00/logvol01' [1.94 GB] inherit

The modified VolGroup01 is inactive.

4. vgchange

[Root @ localhost sdb3] #/sbin/vgchange-ay/dev/VolGroup01
2 logical volume (s) in volume group "VolGroup01" now active

[Root @ localhost mnt] #/sbin/lvscan
ACTIVE '/dev/VolGroup01/logvol00' [34.81 GB] inherit
ACTIVE '/dev/VolGroup01/logvol01' [1.94 GB] inherit
ACTIVE '/dev/VolGroup00/logvol00' [32.00 GB] inherit
ACTIVE '/dev/VolGroup00/logvol01' [1.94 GB] inherit

Now you can mount it.

5. mount

[Root @ localhost mnt] # mount/dev/VolGroup01/LogVol00/mnt/sdb3

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.