Disk Arrays
cancel
Showing results for 
Search instead for 
Did you mean: 

vgscan - rebuild lvmtab

SOLVED
Go to solution
Sergio_83
Occasional Visitor

vgscan - rebuild lvmtab

I must to recreate the /etc/lvmtab, but when I run vgscan the devices order is changed.

Original lvmtab:

/dev/vgRAID9
/dev/dsk/c7t1d1
/dev/dsk/c4t1d1

lvmtab after vgscan -a -p -v :

/dev/vgRAID9
/dev/dsk/c4t1d1
/dev/dsk/c7t1d1

This change in the devices order can cause loss of data? or this order doesnt matters?
2 REPLIES
Bernhard Mueller
Honored Contributor
Solution

Re: vgscan - rebuild lvmtab

Sergio,

most likely c7t1d1 is an alternate link to the same LUN. You can verify by running
vgdisplay -v vgRAID9

If c7t1d1 is an alternate link, LVM will use it only if the primary link fails. You can make it the primary by removing the current primary link and re-adding it:

vgreduce vgRAID9 /dev/dsk/c4t1d1
vgextend vgRAID9 /dev/dsk/c4t1d1

the subsequent vgdisplay -v vgRADI9 would display c4t1d1 as an alternate link to c7t1d1.

Regards
Bernhard
Sergio_83
Occasional Visitor

Re: vgscan - rebuild lvmtab

The devices order doesnt matter and dont cause any loss of data, it's just an alternate link name.