From: Alasdair G Kergon <agk@redhat.com>
To: George Brian <biangw@gmail.com>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] How to place LVM2 metadata to other disks which don't belong to any volume group?
Date: Wed, 11 Dec 2013 14:19:11 +0000 [thread overview]
Message-ID: <20131211141911.GF4894@agk-dp.fab.redhat.com> (raw)
In-Reply-To: <CA+Q0qhddVT+JH9__r7cnONZmr7EE9mFnV8ax-e=ObyNc8hAong@mail.gmail.com>
On Wed, Dec 11, 2013 at 03:06:13PM +0800, George Brian wrote:
> Instead of storing metadata on PV metadata areas, now I want to store it to
> other disks which don't belong to any volume group, just common disk.
This can indeed be done but because it is not a configuration that receives
much testing you should check the things you want to do work for you in
your particular circumstances.
LVM needs to use one 512-byte sector on the device to label it as a PV
and store its UUID. By default the 2nd sector is used as this is normally
free. Read about --labelsector in 'man pvcreate' and use --pvmetadatacopies 0.
Then read about the 'dirs' setting in the 'metadata' section in 'man lvm.conf':
dirs — List of directories holding live copies of LVM2 metadata
as text files. These directories must not be on logical vol‐
umes. It is possible to use LVM2 with a couple of directories
here, preferably on different (non-logical-volume) filesystems
and with no other on-disk metadata, pvmetadatacopies = 0.
Alternatively these directories can be in addition to the on-
disk metadata areas. This feature was created during the devel‐
opment of the LVM2 metadata before the new on-disk metadata
areas were designed and no longer gets tested. It is not sup‐
ported under low-memory conditions, and it is important never to
edit these metadata files unless you fully understand how things
work: to make changes you should always use the tools as normal,
or else vgcfgbackup, edit backup, vgcfgrestore.
Alasdair
next prev parent reply other threads:[~2013-12-11 14:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-11 7:06 [linux-lvm] How to place LVM2 metadata to other disks which don't belong to any volume group? George Brian
2013-12-11 14:19 ` Alasdair G Kergon [this message]
2013-12-13 7:15 ` George Brian
2013-12-13 13:50 ` Peter Rajnoha
2013-12-13 14:31 ` Peter Rajnoha
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=20131211141911.GF4894@agk-dp.fab.redhat.com \
--to=agk@redhat.com \
--cc=biangw@gmail.com \
--cc=linux-lvm@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).