From owner-freebsd-questions@freebsd.org Sun Apr 17 00:15:29 2016 Return-Path: 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 D2475B0A469 for ; Sun, 17 Apr 2016 00:15:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B15213CD for ; Sun, 17 Apr 2016 00:15:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u3H0DCFl092989 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 16 Apr 2016 18:13:12 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u3H0DCww092986; Sat, 16 Apr 2016 18:13:12 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sat, 16 Apr 2016 18:13:12 -0600 (MDT) From: Warren Block To: Anton Sayetsky cc: FreeBSD Questions , Bernt Hansson Subject: Re: Geli and glabel ? In-Reply-To: Message-ID: References: <57125647.9050805@bananmonarki.se> <57126AFB.9060303@bananmonarki.se> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Sat, 16 Apr 2016 18:13:12 -0600 (MDT) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2016 00:15:29 -0000 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: 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 ; 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 ; 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 ; 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: References: <57125647.9050805@bananmonarki.se> <57126AFB.9060303@bananmonarki.se> Date: Sun, 17 Apr 2016 03:21:18 +0300 Message-ID: Subject: Re: Geli and glabel ? From: Anton Sayetsky To: Warren Block Cc: Bernt Hansson , FreeBSD Questions 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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" =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.