Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently moved an LVM array from one server to another. When I tried to recreate the lvmtab with pvscan/vgscan, it successfully found my 3 disks, but do not recreate lvm tab.

# pvscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
PV /dev/sdb1   VG vg0   lvm2 [4.00 GiB / 0    free]
PV /dev/sdc1   VG vg0   lvm2 [4.00 GiB / 0    free]
PV /dev/sdd1   VG vg0   lvm2 [4.00 GiB / 0    free]
Total: 3 [11.99 GiB] / in use: 3 [11.99 GiB] / in no VG: 0 [0   ]


# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes.  This may take a while...
Finding all volume groups
Finding volume group "vg0"
Found volume group "vg0" using metadata type lvm2


# lvscan -v
Finding all logical volumes
inactive          '/dev/vg0/opt' [11.99 GiB] inherit

At the end, I have no /dev/vg0 and no /etc/lvmtab.

Any ideas?

share|improve this question
    
I have no lvmtab on my system and the man page for vgscan doesn't mention this file. Why do you think it is needed? –  Mark Wagner Sep 10 '10 at 17:07

1 Answer 1

up vote 3 down vote accepted
lvchange -ay /dev/vg0/opt

The volume is not activeated, with this command you actually activate it.

share|improve this answer
    
Thanks. This solve my problem. –  Jr. Hames Sep 10 '10 at 15:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.