From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11952 invoked by alias); 20 Mar 2008 18:34:30 -0000 Received: (qmail 11933 invoked by uid 9657); 20 Mar 2008 18:34:29 -0000 Date: Thu, 20 Mar 2008 18:34:00 -0000 Message-ID: <20080320183429.11931.qmail@sourceware.org> From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/man lvm.8 Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00011.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2008-03-20 18:34:29 Modified files: man : lvm.8 Log message: Add LV and VG name restrictions to the lvm man page. Original patch by: Gerrard Geldenhuis Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/lvm.8.diff?cvsroot=lvm2&r1=1.12&r2=1.13 --- LVM2/man/lvm.8 2008/01/11 20:24:25 1.12 +++ LVM2/man/lvm.8 2008/03/20 18:34:29 1.13 @@ -257,6 +257,16 @@ The volume group name that is assumed for any reference to a logical volume that doesn't specify a path. Not set by default. +.SH VALID NAMES +The following characters are valid for VG and LV names: +\fBa-z A-Z 0-9 + _ . -\fP +.LP +VG and LV names cannot begin with a hyphen. +There are also various reserved names that are used internally by lvm that can not be used as LV or VG names. +A VG cannot be called anything that exists in /dev/ at the time of creation, nor can it be called '.' or '..'. +A LV cannot be called '.' '..' 'snapshot' or 'pvmove'. The LV name may also not contain the strings '_mlog' or '_mimage' + + .SH DIAGNOSTICS All tools return a status code of zero on success or non-zero on failure. .SH FILES