1753797 Members
8164 Online
108805 Solutions
New Discussion юеВ

vgscan slow

 
SOLVED
Go to solution
Heiko_7
Advisor

vgscan slow

we are trying to recreate the lvmtab

when we perform a vgscan -p -v

we can see that vgscan tries to connect to disks that do no longer exist on the system
So it takes vgscan a long time to finish

can some one tell me what i am missing here.

info :

disk 325 5/0/12/1/0/4/0.16.194.0.0.1.2 sdisk NO_HW DEVICE HP HSV210
/dev/dsk/c2t1d2 /dev/rdsk/c2t1d2



root@system$ diskinfo /dev/rdsk/c2t1d2
SCSI describe of /dev/rdsk/c2t1d2:
vendor: HP
product id: HSV210
type: no device type
size: 419430400 Kbytes
bytes per sector: 512


output from : #truss -p


read(5, 0x7ffec480, 1024) [running]
read(5, 0x7ffec480, 1024) ERR#16 EBUSY
close(5) = 0
stat("/dev/rdsk/c2t1d2", 0x7ffee3a0) = 0
stat("/dev/dsk/c2t1d2", 0x7ffee410) = 0
open("/dev/rdsk/c2t1d2", O_RDWR|O_NDELAY, 03020) = 5
ioctl(5, 0x40304467, 0x7ffee450) = 0
lseek(5, 8192, SEEK_SET) = 8192
read(5, 0x7ffec480, 1024) [running]
read(5, 0x7ffec480, 1024) ERR#16 EBUSY
lseek(5, 73728, SEEK_SET) = 73728
-------------

With kind regards,

Heiko

4 REPLIES 4
Ivan Krastev
Honored Contributor
Solution

Re: vgscan slow

Try to remove device files for unpresented disks with rmsf:

#rmsf -H path
for example
#rmsf -H 5/0/12/1/0/4/0.16.194.0.0.1.2

and after that run vgscan again.

regards,
ivan
Heiko_7
Advisor

Re: vgscan slow

vgscan is ow progressing much faster, looks like i'm gonna have a lot of work to do, cleaning op the messon this system



Heiko_7
Advisor

Re: vgscan slow

thanks Ivan,

for you quick response, we got things up and running down here

kind regards

Heiko
Heiko_7
Advisor

Re: vgscan slow

remove the device files for the NO_HW devices

rmsf -H