Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2016 18:13:12 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Anton Sayetsky <vsasjason@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>, Bernt Hansson <bah@bananmonarki.se>
Subject:   Re: Geli and glabel ?
Message-ID:  <alpine.BSF.2.20.1604161811310.97849@wonkity.com>
In-Reply-To: <CAA2O=b86-kutq2aQbHVLn42AMT=vur5%2BgfHrpv7=ji%2BqnV-rkQ@mail.gmail.com>
References:  <57125647.9050805@bananmonarki.se> <alpine.BSF.2.20.1604161007190.46192@wonkity.com> <57126AFB.9060303@bananmonarki.se> <alpine.BSF.2.20.1604161651091.97849@wonkity.com> <CAA2O=b86-kutq2aQbHVLn42AMT=vur5%2BgfHrpv7=ji%2BqnV-rkQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 Apr 2016, Anton Sayetsky wrote:

> > No, the /dev/disc device is being used both times.
> >
> >   geli attach disc
> >
> > creates a disc.eli device.  Now create the label on *that*:
> >
> >   glabel label 1213 /dev/disc.eli
> This just doesn't make any sense bc if device name will change - geli name will change too. So it's really necessary to build reverse - geli on top of glabel.

The label is only created once.  After that, it will be present when the 
.eli device is created.

It's possible there is a misunderstanding about what exactly is going on 
here, and a concrete example would help.
From owner-freebsd-questions@freebsd.org  Sun Apr 17 00:21:20 2016
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6905FB0A7A5
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Sun, 17 Apr 2016 00:21:20 +0000 (UTC)
 (envelope-from vsasjason@gmail.com)
Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com
 [IPv6:2a00:1450:400c:c09::22a])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id F028816DA
 for <freebsd-questions@freebsd.org>; Sun, 17 Apr 2016 00:21:19 +0000 (UTC)
 (envelope-from vsasjason@gmail.com)
Received: by mail-wm0-x22a.google.com with SMTP id n3so78045125wmn.0
 for <freebsd-questions@freebsd.org>; Sat, 16 Apr 2016 17:21:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc; bh=TNl/oC8jG3NT3vJra68UJRnrjlVYFX+KKmVTPDUugZg=;
 b=Zt6qwUQqanJPYFqBReoGp6HNrzUgkoLf5g/fp7J3w13SYT+CsKYglNEdCqVNNWLB69
 ljLr+zWbTCoGGlB5743UEH+wstZd6iTAyIOYOmXccLYNjBG2gY2+TX8QEukgoZ7Tjf6U
 4kL5P2rzelOotPdk4Jh1a+Suls9gAatVkv/bGFtnwymaYm6z6c3KRG/0YLA5JNbfh5MW
 0w8UnNS9AUAUjNdgJb5Xp2oPzc4voD+b4B7qjRr1iH8ZjAKmVq55QdAlaRwZvGHbtviO
 +dzB9gpxwXroFa7hzSJsunnA/dm5JlVOs/FW1avmz6n2hP6D5OSmPARB665UL4Aa43Ov
 DlpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:in-reply-to:references:date
 :message-id:subject:from:to:cc;
 bh=TNl/oC8jG3NT3vJra68UJRnrjlVYFX+KKmVTPDUugZg=;
 b=JRnI5w8ahhnn8k3zhQdZwYr0nmU7sjM423IcVjeGL2TGhlgLdlwNV02v+jTGWPR4h1
 4V1PUba7zgz6LutOGsaDfjN7YfsoscRaxkGo99/j6NaWcdsKylHOqyjYJJeQl2vbPcac
 qdDBp4Z6xqjH2BDJQZoHrlU96fNT4WKqypjj9Q9qxdRy36eQCzy1KoDlXD2MIej6gpmI
 1QRYA7nnYzLto/G4j43WtdUcIDO5LZfI9XbYyEkgozpIl0+squu3zgfpyYqSh4Jv1hrV
 riqbPZym2UR4gout0QcZmIM46BHeuhyjEmaX4wRR1hQT2m/sVTIntGJ7PzHYWjQevkJM
 YYYQ==
X-Gm-Message-State: AOPr4FWiZ8xLbf+BpLH22CFe6R4eyXT2GNfMWbHUKdmCrw3WxP1uKzeLImpsVIbt0Mvhe4U2XaW/bTObGd+fcQ==
MIME-Version: 1.0
X-Received: by 10.28.232.140 with SMTP id f12mr11343775wmi.6.1460852478587;
 Sat, 16 Apr 2016 17:21:18 -0700 (PDT)
Received: by 10.194.33.164 with HTTP; Sat, 16 Apr 2016 17:21:18 -0700 (PDT)
Received: by 10.194.33.164 with HTTP; Sat, 16 Apr 2016 17:21:18 -0700 (PDT)
In-Reply-To: <alpine.BSF.2.20.1604161811310.97849@wonkity.com>
References: <57125647.9050805@bananmonarki.se>
 <alpine.BSF.2.20.1604161007190.46192@wonkity.com>
 <57126AFB.9060303@bananmonarki.se>
 <alpine.BSF.2.20.1604161651091.97849@wonkity.com>
 <CAA2O=b86-kutq2aQbHVLn42AMT=vur5+gfHrpv7=ji+qnV-rkQ@mail.gmail.com>
 <alpine.BSF.2.20.1604161811310.97849@wonkity.com>
Date: Sun, 17 Apr 2016 03:21:18 +0300
Message-ID: <CAA2O=b9drkMuL06BPBkgHG6t4Sycb2KcwOqV3SapPLaLWjaP8g@mail.gmail.com>
Subject: Re: Geli and glabel ?
From: Anton Sayetsky <vsasjason@gmail.com>
To: Warren Block <wblock@wonkity.com>
Cc: Bernt Hansson <bah@bananmonarki.se>,
 FreeBSD Questions <freebsd-questions@freebsd.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 17 Apr 2016 00:21:20 -0000

17 =D0=B0=D0=BF=D1=80. 2016 =D0=B3. 3:15 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=
=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C "Warren Block" <wblock@wonkity.com>
=D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB:
>
> On Sun, 17 Apr 2016, Anton Sayetsky wrote:
>
>> > No, the /dev/disc device is being used both times.
>> >
>> >   geli attach disc
>> >
>> > creates a disc.eli device.  Now create the label on *that*:
>> >
>> >   glabel label 1213 /dev/disc.eli
>> This just doesn't make any sense bc if device name will change - geli
name will change too. So it's really necessary to build reverse - geli on
top of glabel.
>
>
> The label is only created once.  After that, it will be present when the
.eli device is created.
I know. But here an example:
1. Insert one disk
2. Create geli and glabel there
3. Pull out that disk and insert it again in random order with hundred of
other disks
4. Try to find where geli is located
So I can say again - glabel inside geli doesn't make any sense in any
situation. But geli inside glabel makes sense almost always.
>
> It's possible there is a misunderstanding about what exactly is going on
here, and a concrete example would help.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1604161811310.97849>