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