Skip to contentSkip to conversation

Archive Question

linux-lvm John DeFranco 2 participants 5 messages Aug 11, 2006

lore
Share & tools
lore
#0 lore raw

Hi All,

I am getting a lot of the following messages:

/etc/lvm/archive/.lvm_ny476.cup.hp.com_24035_984827937: rename to /etc/lvm/archive/vgsb1_01871.vg failed: File exists

I don't know is how this happens. I cannot find any documentation on this message. Any pointers?

Signature · 5 lines
===========
John DeFranco                  Hewlett Packard Company
[email protected]           Availability Clusters Solution Lab
phone: 408 447-7543            19111 Pruneridge Ave., M/S 4101
fax:   408 447-0056            Cupertino, CA 95014
#1 lore raw
Quoted 5 lines · John DeFranco

/etc/lvm/archive/.lvm_ny476.cup.hp.com_24035_984827937: rename to /etc/lvm/archive/vgsb1_01871.vg failed: File exists

I don't know is how this happens. I cannot find any documentation on this message. Any pointers?

Exactly what version of LVM is this?
(And does the file exist? Is /etc a local, writeable filesystem?)

Alasdair

Signature · 1 line
[email protected]
#2 lore raw

Hi,

[root@ny176 log]# lvm version
LVM version: 2.01.14 (2005-08-04)
Library version: 1.01.04 (2005-08-02)
Driver version: 4.4.0

/etc/ is a local writeable filesystem. I believe this occurs when I'm issuing a vgchange --addtag and/or vgchange -a y. I have scripts scripts that are executing these commands but nothing that should be done in parallel.

Quoted 9 lines · Alasdair G Kergon
Quoted 3 lines · John DeFranco

/etc/lvm/archive/.lvm_ny476.cup.hp.com_24035_984827937: rename to /etc/lvm/archive/vgsb1_01871.vg failed: File exists

I don't know is how this happens. I cannot find any documentation on this message. Any pointers?

Exactly what version of LVM is this?
(And does the file exist? Is /etc a local, writeable filesystem?)

Alasdair

Signature · 3 lines
===========
Cheers
-jd
#3 lore raw
Quoted 4 lines · John DeFranco

/etc/ is a local writeable filesystem. I believe this occurs when I'm issuing a vgchange --addtag and/or vgchange -a y. I have scripts scripts that are executing these commands but nothing that should be done in parallel.

And you have default locking enabled?
locking_type = 1 locking_dir = "/var/lock/lvm"
in lvm.conf with /var also local

Perhaps there's some race in the backup file code:
It would be useful to have a list of all the lvm commands that might possibly be executing against each other.

Alasdair

Signature · 1 line
[email protected]
#4 lore raw
Quoted 8 lines · Alasdair G Kergon
Quoted 2 lines · John DeFranco

/etc/ is a local writeable filesystem. I believe this occurs when I'm issuing a vgchange --addtag and/or vgchange -a y. I have scripts scripts that are executing these commands but nothing that should be done in parallel.

And you have default locking enabled?
locking_type = 1 locking_dir = "/var/lock/lvm"
in lvm.conf with /var also local

Yes to all.

Quoted 3 lines

Perhaps there's some race in the backup file code:
It would be useful to have a list of all the lvm commands that might possibly be executing against each other.

I'm trying to assemble that list.

Thanks.

Signature · 3 lines
===========
Cheers
-jd