From: "Богун Дмитрий" <vugluskr@vugluskr.org.ua>
To: gentoo-user-ru@lists.gentoo.org
Subject: Re: [gentoo-user-ru] LVM snapshot
Date: Fri, 28 Jan 2011 15:47:55 +0200 [thread overview]
Message-ID: <1296222475.9035.20.camel@shana.home.lan> (raw)
In-Reply-To: <4D42C1AD.3010506@mail.ru>
В Птн, 28/01/2011 в 15:16 +0200, Sergey Kobzar пишет:
> >> Пишу скрипт для бэкапа mysql базы с пом. lvm snapshot. Кусок кода:
> >>
> >> mysql --user=$MYSQL_USER --password=$MYSQL_PASS<< EOF
> >> FLUSH TABLES WITH READ LOCK;
> >> system sync;
> >> system lvcreate --snapshot --name $SNAP --size $SNAP_SIZE
> >> /dev/${VG}/${LV}> /dev/null 2>&1;
> >> UNLOCK TABLES;
> >> EOF
> >>
> >> При создании снэпшота (system lvcreate --snapshot) вываливается ошибка:
> >> File descriptor 3 (socket:[265123]) leaked on lvcreate invocation.
> >> Parent PID 29203: sh
> >>
> >> но вроде бы все работает.
> >> Google ничего внятного не выдал.
> >>
> >> Кто-ть может объяснить что это такое?
> > Вероятно ему не нравится унасленованный от мускуля файловый дескриптор.
> > Вот и ругается.
> Т.е. можно тупо игнорировать?
А Вам обязательно выполнять его из-под мухуля?
> Плохо то, что если:
> 1. перенапривать stderr в /dev/null, но если будет другая ошибка можно
> не увидеть
> 2. забить, но ошибка примелькается и другую тоже можно не заметить
> 3. Нельзя обработь ошибки (exit code) при выполнении lvcreate --snapsho
> корректно.
Если вылезти из-под мускуля и выполнять все из sh, то все эти проблемы
исчезнут.
next prev parent reply other threads:[~2011-01-28 13:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 12:39 [gentoo-user-ru] LVM snapshot Sergey Kobzar
2011-01-28 13:09 ` Богун Дмитрий
2011-01-28 13:16 ` Sergey Kobzar
2011-01-28 13:47 ` Богун Дмитрий [this message]
2011-01-28 14:12 ` Edward Hades
2011-01-28 16:50 ` Alex Efros
2011-01-28 19:43 ` Sergey Kobzar
2011-02-04 21:30 ` Sergiy Borodych
2011-01-28 19:38 ` Sergey Kobzar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296222475.9035.20.camel@shana.home.lan \
--to=vugluskr@vugluskr.org.ua \
--cc=gentoo-user-ru@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox