From owner-freebsd-questions@freebsd.org Sun Apr 17 00:05:33 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 27143B0A0BE for ; Sun, 17 Apr 2016 00:05:33 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: from mail-wm0-x22e.google.com (mail-wm0-x22e.google.com [IPv6:2a00:1450:400c:c09::22e]) (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 AB15C104D for ; Sun, 17 Apr 2016 00:05:32 +0000 (UTC) (envelope-from vsasjason@gmail.com) Received: by mail-wm0-x22e.google.com with SMTP id a140so74989288wma.0 for ; Sat, 16 Apr 2016 17:05:32 -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=yMdHnATzSNPWBwsPzzMfZSB4K14nkQMI9l2bbTXFZMY=; b=o3yxv6B+tA6/U0rfaK0WiST/JV3OJCoOWUQj9NSbG6/PdlZKj5cqrB9VwTJKAo/T9q o27cs7AiYcMJD6EyzUToRzWsc7E1VOd96THdAZZmOoA6UGrdH6lv/Kyoz6/AONMPiA4N ZxrFFMXdi0z+yVUiZMzRoKlx6jqDVIABGHMBqaKrPugcfO8JGxqhTjAuZKxz1zJx1tCf cY5+Xz4AheqnOqiPETepiQFHEMk73HgttJFWMkqOXfYSUbHpP7bhWuKZDtWtoXK+LzNF ZBQ9VgPuBTf+z74a4TAZTlJNLnl3iR26IJXBdGjBEPE7kTbPI55Pn5LwS5t3xKIrdKGJ FwYw== 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=yMdHnATzSNPWBwsPzzMfZSB4K14nkQMI9l2bbTXFZMY=; b=Sp2jENVEi+L7d8+RmjjN+BpRX5wNxS8DaHOIidfDe5MIxAqoMgzCoNaEkWHIXXElnF iGnlT1uL6kv9ozL5NGk7pWCjkIRS++1ABJ5abFruFWWPAPBe5G6FDbq8JH15zTU/6yGT h9EHzF/XCZoBzrLEwlpX16PSqnaE/fsx2ZPA1cuCQU8kJN3ouOpiAb0Q6h5dFvzQggeM mILM1/7MyZIsxOGuDIgxzfFp6r+iV+iPE2s9qiUdvDZpXJWd8KtKkt2wnmnMbBW4MejF s8wtE70IdrIDG1FKEvmyz/AbRgsU0H2ZuZxWdi5vGt6oKy7LALFt+qySLgkgAF7WAxUR F65g== X-Gm-Message-State: AOPr4FVg2E8Vsoo0aceBHBINPrwG0EA1G6oUp7smenL7BtQCCejGG+Z0Z+H0eRuBy5ZMl7lhyU6BbPP5jwrqOw== MIME-Version: 1.0 X-Received: by 10.194.175.168 with SMTP id cb8mr28725132wjc.56.1460851530336; Sat, 16 Apr 2016 17:05:30 -0700 (PDT) Received: by 10.194.33.164 with HTTP; Sat, 16 Apr 2016 17:05:30 -0700 (PDT) Received: by 10.194.33.164 with HTTP; Sat, 16 Apr 2016 17:05:30 -0700 (PDT) In-Reply-To: References: <57125647.9050805@bananmonarki.se> <57126AFB.9060303@bananmonarki.se> Date: Sun, 17 Apr 2016 03:05:30 +0300 Message-ID: Subject: Re: Geli and glabel ? From: Anton Sayetsky To: Warren Block Cc: FreeBSD Questions , Bernt Hansson 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:05:33 -0000 17 =D0=B0=D0=BF=D1=80. 2016 =D0=B3. 1:58 =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 Sat, 16 Apr 2016, Bernt Hansson wrote: > >> >> >> On 2016-04-16 18:08, Warren Block wrote: >>> >>> On Sat, 16 Apr 2016, Bernt Hansson wrote: >>> >>>> Hello list. >>>> >>>> I'm wondering about glabel and geli. It seems that one can not have them on the same disc. >>>> >>>> On swap it works nice but not on my home directory. Glabel overwrites the meta data from geli >>>> so the disc can not be mounted. >>>> >>>> Can this scenario work? How? >>> >>> >>> One must be inside the other. Create a glabel device in the GELI one, then refer to the glabel device with /dev/label/xyz. >> >> >> Along this line? >> >> geli attach disc >> password: >> >> glabel label 1213 /dev/disc >> >> Is that correct? > > > 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. > > Maybe some ASCII art will help: > > ,-disc--------------. > | | > | ,-disc.eli----. | > | | | | > | | ,-1213--. | | > | | | | | | > | | | | | | > | | `-------' | | > | | | | > | `-------------' | > | | > `-------------------' > > ...well, maybe not.