Tuesday, July 24, 2007

Introduce LMV drives to Linux OS

Introducing LVM drives (storage) to new operating system.
====================================

When lvm drives are introducted to a new operating system. They will not be detected logical volumes.

vgscan - Will detect all the available logical volumes and make necessary enteries in the lvm configuation.

# vgscan Reading all physical volumes. This may take a while... Found volume group "lvm_data3" using metadata type lvm2
Found volume group "lvm_data2" using metadata type lvm2
Found volume group "lvm_data1" using metadata type lvm2

# lvscan
inactive '/dev/lvm_data3/lvm_bkp' [271.00 GB] inherit
inactive '/dev/lvm_data2/lvm_stores' [169.00 GB] inherit
inactive '/dev/lvm_data1/lvm_redo' [60.00 GB] inherit
inactive '/dev/lvm_data1/lvm_log' [30.00 GB] inherit
inactive '/dev/lvm_data1/lvm_conf' [20.00 GB] inherit
inactive '/dev/lvm_data1/lvm_mysql' [50.00 GB] inherit
inactive '/dev/lvm_data1/lvm_index' [25.00 GB] inherit
inactive '/dev/lvm_data1/lvm_lgr' [35.00 GB] inherit

The devices are detected as inactive to make the devices active

vgchange -ay lvm_data3
vgchange -ay lvm_data2
vgchange -ay lvm_data1

lvscan will show all the drives as active.
#lvscan
ACTIVE '/dev/lvm_data3/lvm_bkp' [271.00 GB] inherit
ACTIVE '/dev/lvm_data2/lvm_stores' [169.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_redo' [60.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_log' [30.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_conf' [20.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_mysql' [50.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_index' [25.00 GB] inherit
ACTIVE '/dev/lvm_data1/lvm_lgr' [35.00 GB] inherit

you should be able to mount the filesystem now

1 comment:

Anonymous said...

Thanks :)