:: Re: [DNG] Names of logical volumes
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Hendrik Boom
Datum:  
To: dng
Betreff: Re: [DNG] Names of logical volumes
On Sun, Aug 20, 2017 at 02:08:23PM +0200, Tomasz Torcz wrote:
> On Sun, Aug 20, 2017 at 07:38:30AM -0400, Hendrik Boom wrote:
> > I'm trying to make sure I don't do something catastrophic by
> > misunderstanding.
> >
> > I do
> >
> > lvcreate --name ascii-root --size 3G jessie
> >
> > to create a logical volume called "ascii-root" within the volume
> > group "jessie".
> >
> > Then I look at the result by
> >
> > ls /dev/mapper
> >
> > and get:
> >
> > root@notlookedfor:/# lvcreate --name ascii-root --size 3G jessie
> >   Logical volume "ascii-root" created
> > root@notlookedfor:/# ls /dev/mapper
> > control            jessie-devuan--home  jessie-devuan--usr  jessie-tmp
> > jessie-ascii--root  jessie-devuan--root  jessie-devuan--var
> > root@notlookedfor:/# 

> >
> > Now I get it that it concatenates the folume group name, a hyphen,
> > and the logical volume name.
> >
> > But why does it stick an extra hyphen in the logical volume name?
>
> To “escape” the hyphen in name, in order to differentiate between
> concatenation hyphen and in-the-name hyphen.
>
> BTW, check ls /dev/jessie/


Thanks. I can stop worrying I've done something hoplessly and
incomprehensibly wrong.

-- hendrik

>
>
> -- 
> Tomasz Torcz                        To co nierealne -- tutaj jest normalne.
> xmpp: zdzichubg@???          Ziomale na życie mają tu patenty specjalne.

>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng