From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 12:48:37 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7EFC92AD; Wed, 11 Jun 2014 12:48:37 +0000 (UTC) Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 330032358; Wed, 11 Jun 2014 12:48:37 +0000 (UTC) Received: by mail-yh0-f52.google.com with SMTP id a41so2785190yho.11 for ; Wed, 11 Jun 2014 05:48:36 -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:content-type; bh=+uEUv5NaY3NKo9x5LUXLIwqhToboaugSLliw7/X5eGg=; b=gow9qrW/gXmdgmgSAxnfcb0F+kpFa6JPkpdlCe/2uy5IXrwFUofxd6Wgf8R+rAb2AL 0G8E5Zfz/kF1DV4Qcljvo3b6zZPM0y990CstQdvl7zZZgGrzlDI6CJiWWTZm8XBCnU6g zK7ajGiHOA8/acsxgAxLRPrZeDl4OvDlU2vtkFvfvJ7JEOr8hcGN66Cr5WM14a2iSGOG JE4XqonC9sBhYWv/kY+GlDPB+5lCPIqTXR7aZSSdBjA6sztw4Y/oop4KNmFMzdjvM0BT 8r50kuQtW/ZTNm7Nj9CbF4dVIUKm2uHXq/ScxCEXR0el5weu0vblwfzgOJt+3wSczR5R bb9A== MIME-Version: 1.0 X-Received: by 10.236.180.169 with SMTP id j29mr5406277yhm.47.1402490916415; Wed, 11 Jun 2014 05:48:36 -0700 (PDT) Received: by 10.170.54.8 with HTTP; Wed, 11 Jun 2014 05:48:36 -0700 (PDT) In-Reply-To: <9957bd5a6d6a0ebbe0c0c3300a4737ea@dweimer.net> References: <9957bd5a6d6a0ebbe0c0c3300a4737ea@dweimer.net> Date: Wed, 11 Jun 2014 13:48:36 +0100 Message-ID: Subject: Re: beadm basics From: krad To: dweimer@dweimer.net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: questions@freebsd.org, freebsd@fongaboo.com, owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 12:48:37 -0000 I just create the be, mount it to /mnt, then set DESTDIR=/mnt, and do a make installkernel && make installworld && mergemaster. On 11 June 2014 03:59, dweimer wrote: > On 06/10/2014 6:42 pm, freebsd@fongaboo.com wrote: > >> Nevermind I realized there needs to be a reboot between the first >> creation/activation and the installation/upgrade you are performing. >> >> >> On Tue, 10 Jun 2014, freebsd@fongaboo.com wrote: >> >> >>> I'm trying to learn ZFS and beadm. I wanted to do a proof-of-concept, so >>> I ran 'beadm create ', then ran 'beadm activate '. >>> >>> I then installed something from ports (in this case, zfs-stats). I >>> reactivated the default instance in beadm and rebooted. BUt I am still >>> seeing zfs-stats installed. >>> >>> In my understanding of beadm, shouldn't the machine be in the state it >>> was prior to the zfs-stats install? >>> >>> >>> >>> ------------------------------------------------------------ >>> ------------- >>> shot through the heart ooh baby do you know what that's >>> worth >>> and you're to blame ooh heaven is a place on >>> earth >>> darling you give love they say in heaven love comes >>> first >>> a bad name we'll make heaven a place on >>> earth >>> ORBITAL "Halcyon >>> Live" >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to "freebsd-questions- >>> unsubscribe@freebsd.org" >>> >>> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions- >> unsubscribe@freebsd.org" >> > > I have been using this quite extensively since I learned it, the shorter > down times with updates, and the ability to go back if something went wrong > quickly has been a huge sleep saver, as I can all the work with the server > live during normal work hours. Then just reboot then test applications at > night time from home after hours. > > > ### method 1, installing ports or port updates > beadm create > beadm mount /jails/devel/ROOT > ## Have a jail configured with /jails/devel/ROOT as its ROOT > ## With scripts that mount /usr/ports & distfiles under jail > jail -c devel > jexec tcsh > install new ports or updates etc... > exit jail > jail -r devel > > beadm umount > beadm activate > reboot > > ### Method 2, building world, installing ports and updates. > ### Note: works great from P1, P2... but if going from say 9.2 to 10, > gets a little tricky > beadm create > beadm mount /jails/devel/ROOT > > setenv MAKEOBJDIRPREFIX /jails/devel/ROOT/usr/obj > setenv DESTDIR /jails/devel/ROOT > setenv __MAKE_CONF /jails/devel/ROOT/etc/make.conf > setenv SRCCONF /jails/devel/ROOT/etc/src.conf > mount -t nullfs -o ro /usr/src /jails/devel/ROOT/usr/src > > cd /jails/devel/ROOT/usr/src > Do buildworld/install/mergemaster > > ## IF port updates are also necessary see steps above to start jail & > update ports > > unsetenv MAKEOBJDIRPREFIX > unsetenv DESTDIR > unsetenv __MAKE_CONF > unsetenv SRCCONF > umount /jails/devel/ROOT/usr/src > > beadm umount > beadm activate > reboot > > I can provide more detailed jail configurations, and some scripts I have > setup to simplify the process if your interested. > > -- > Thanks, > Dean E. Weimer > http://www.dweimer.net/ > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >