All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvm HA problem with  file descriptor left open
@ 2007-09-10  7:24 hans
  2007-09-17 21:33 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: hans @ 2007-09-10  7:24 UTC (permalink / raw)
  To: linux-lvm

Hi!
I'm trying to use Openfiler with setup LVM+ DRBD+failover.
I have problem with LVM error when server shutdown and another should
take over.

1. If I will shutdown main, Secondary start up with no problem.
2. But when I shutdown Secondary (now Master), main (now backup) cannot
start up and shows errors with descriptor.
LVM[8796]:      2007/09/10_14:55:26 INFO: Deactivating volume group
vg0_sites
LVM[8796]:      2007/09/10_14:55:26 INFO: File descriptor 3 left open
File descriptor 5 left open File descriptor 6 left open File descriptor
7 left open File descriptor 8 left open File descriptor 9 left open File
descriptor 10 left open File descriptor 11 left open File descriptor 12
left open 0 logical volume(s) in volume group "vg0_sites" now active

Later if I will manually take over drbd I cannot see files created on
another machine.

Does anybody know solution for this problem? Is it possible to force LVM
to close descriptors?

Regards,
Hans

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] lvm HA problem with  file descriptor left open
  2007-09-10  7:24 [linux-lvm] lvm HA problem with file descriptor left open hans
@ 2007-09-17 21:33 ` Alasdair G Kergon
  2007-09-19 15:27   ` Hans
  0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2007-09-17 21:33 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Sep 10, 2007 at 03:24:00PM +0800, hans wrote:
> File descriptor 5 left open File descriptor 6 left open File descriptor
> 7 left open File descriptor 8 left open File descriptor 9 left open File
> descriptor 10 left open File descriptor 11 left open File descriptor 12
> left open 0 logical volume(s) in volume group "vg0_sites" now active
> Is it possible to force LVM
> to close descriptors?
 
Those are only harmless warnings - LVM2 does close the file descriptors.
It is only fatal under some selinux configurations.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] lvm HA problem with  file descriptor left open
  2007-09-17 21:33 ` Alasdair G Kergon
@ 2007-09-19 15:27   ` Hans
  2007-09-20  6:57     ` Luca Berra
  0 siblings, 1 reply; 4+ messages in thread
From: Hans @ 2007-09-19 15:27 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]

Alasdair G Kergon wrote:
> On Mon, Sep 10, 2007 at 03:24:00PM +0800, hans wrote:
>   
>> File descriptor 5 left open File descriptor 6 left open File descriptor
>> 7 left open File descriptor 8 left open File descriptor 9 left open File
>> descriptor 10 left open File descriptor 11 left open File descriptor 12
>> left open 0 logical volume(s) in volume group "vg0_sites" now active
>> Is it possible to force LVM
>> to close descriptors?
>>     
>  
> Those are only harmless warnings - LVM2 does close the file descriptors.
> It is only fatal under some selinux configurations.
>
> Alasdair
>   

Thanks for answer.
But I don't think it is harmless. When my server shutdown , and my 
backup is up high availability doesn't work.
DRBD  doesn't start because of this error.
After I manual set up drbd active, I can not see files created on main 
machine .
After I again start main machine and start DRBD I can see all files.
I think it is problem with descriptors which cause errors in my HA.
I heard that I can use CLVM, but I don't know how it is compatible with LVM.

Regards,
Hans

[-- Attachment #2: Type: text/html, Size: 1524 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] lvm HA problem with  file descriptor left open
  2007-09-19 15:27   ` Hans
@ 2007-09-20  6:57     ` Luca Berra
  0 siblings, 0 replies; 4+ messages in thread
From: Luca Berra @ 2007-09-20  6:57 UTC (permalink / raw)
  To: linux-lvm

On Wed, Sep 19, 2007 at 11:27:33PM +0800, Hans wrote:
>Alasdair G Kergon wrote:
>>On Mon, Sep 10, 2007 at 03:24:00PM +0800, hans wrote:
>>   
>>>File descriptor 5 left open File descriptor 6 left open File descriptor
>>>7 left open File descriptor 8 left open File descriptor 9 left open File
>>>descriptor 10 left open File descriptor 11 left open File descriptor 12
>>>left open 0 logical volume(s) in volume group "vg0_sites" now active
>>>Is it possible to force LVM
>>>to close descriptors?
>>>     
>>  
>>Those are only harmless warnings - LVM2 does close the file descriptors.
>>It is only fatal under some selinux configurations.
>>
>>Alasdair
>>   
>
>Thanks for answer.
>But I don't think it is harmless. When my server shutdown , and my 
>backup is up high availability doesn't work.
>DRBD  doesn't start because of this error.
>After I manual set up drbd active, I can not see files created on main 
>machine .
>After I again start main machine and start DRBD I can see all files.
>I think it is problem with descriptors which cause errors in my HA.
>I heard that I can use CLVM, but I don't know how it is compatible with LVM.

I feel difficult to believe it is file descriptors that cause you
problems. That debug message is only annoying and i don't see why it is
there at all.

what i see from the scarce info you posted is:
>> LVM[8796]:      2007/09/10_14:55:26 INFO: Deactivating volume group
>> vg0_sites
>> LVM[8796]:      2007/09/10_14:55:26 INFO: File descriptor 3 left open
>> File descriptor 5 left open File descriptor 6 left open File descriptor
>> 7 left open File descriptor 8 left open File descriptor 9 left open File
>> descriptor 10 left open File descriptor 11 left open File descriptor 12
>> left open 0 logical volume(s) in volume group "vg0_sites" now active
so lvm is asked to deactivate vg vg0_sites and it does it, this appears
to be normal.
maybe _reading_ the log file of which you graciously let us know only
two lines will give you more hints about what is going on.
also if you are asking for help, detailing your configuration will
usually result in people being able to understand what you are talking
about.


finally if you suspect an issue with lvm you could configure debug
options under the "log" section of /etc/lvm/lvm.conf and analyze the
resulting logs.

L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-20  6:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10  7:24 [linux-lvm] lvm HA problem with file descriptor left open hans
2007-09-17 21:33 ` Alasdair G Kergon
2007-09-19 15:27   ` Hans
2007-09-20  6:57     ` Luca Berra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.