From owner-freebsd-questions@FreeBSD.ORG Wed Dec 2 04:34:05 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2B721065698 for ; Wed, 2 Dec 2009 04:34:05 +0000 (UTC) (envelope-from sektie@gmail.com) Received: from mail-px0-f200.google.com (mail-px0-f200.google.com [209.85.216.200]) by mx1.freebsd.org (Postfix) with ESMTP id C3DB38FC08 for ; Wed, 2 Dec 2009 04:34:05 +0000 (UTC) Received: by pxi38 with SMTP id 38so432278pxi.28 for ; Tue, 01 Dec 2009 20:34:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=IiWciK7I8tNWuwGRXuDmAN62on07SzCygizrEuQcw5k=; b=Oh/fAQdVSBIavSedl7j+Br2bQzH7O10T6vMjRa5+YVhmrwTGttfaMlWcdtOximJM9i 8AjaPUZxQAmqL9anRuaPeVHl0wYIKj/QhOIbO2GgMjPxiFS/IInPgZC8F412oGz8DVWD vvPHXvSFrIHp+VZjuNjD6N8QoAPKnupaW/1w8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=TGLPa72tPiqg3k/kZVuhjbYmDw1H3OIXqxu9rs/cy+wP727N9Vt8sFuc/VvTejxUu+ +W+wn77J3//6a5VN2d/wSIgoh2zCWstNTDTpdI5TleGAV34dNrERH/O/Fw8bvZJXH1XU VuQdKvrlfXczGPU1V1b9CX/Tr57qnHxcirEQY= MIME-Version: 1.0 Sender: sektie@gmail.com Received: by 10.143.24.41 with SMTP id b41mr741792wfj.238.1259728445341; Tue, 01 Dec 2009 20:34:05 -0800 (PST) In-Reply-To: <20091201210321.GA39958@gizmo.acns.msu.edu> References: <1789c2360911280928t1e6e7b06p707abc1131f82bef@mail.gmail.com> <26ddd1750912010459weda306esbb81d7a2b7025b6e@mail.gmail.com> <20091201210321.GA39958@gizmo.acns.msu.edu> Date: Tue, 1 Dec 2009 20:34:05 -0800 X-Google-Sender-Auth: d46478250613d17a Message-ID: From: Randi Harper To: Jerry McAllister Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Maxim Khitrov , freebsd-questions@freebsd.org, Peggy Wilkins Subject: Re: 8.0-RELEASE and "dangerously dedicated" disks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 04:34:06 -0000 I'm going to just reply to all of these at once. On Tue, Dec 1, 2009 at 1:03 PM, Jerry McAllister wrote: > On Tue, Dec 01, 2009 at 07:59:42AM -0500, Maxim Khitrov wrote: > >> On Sat, Nov 28, 2009 at 12:28 PM, Peggy Wilkins wrot= e: >> > Due to history I won't go into, all my production (currently >> > 7.2-RELEASE) systems are installed onto "dangerously dedicated" disks. >> > =A0What exactly do I need to do to upgrade them to 8.0? =A0(I'm not as= king >> > for an upgrade procedure, I'm familiar with that, but rather, how this >> > change impacts the upgrade.) =A0I think that the suggestion that the >> > disks need to be reformatted is extreme and I hope something less >> > extreme will suffice. Just to point out the obvious, you shouldn't use "dangerous" and "production" in the same sentence. :) >> > Also, just to be clear, does this statement refer to boot disks, data >> > disks, or both? >> > >> > It doesn't make sense to me that "dangerously dedicated" could have an >> > impact on UFS filesystems specifically. =A0A partition table is just a >> > partition table, regardless of what filesystems might be written on >> > disks, yes? =A0Am I misunderstanding something here? > > I don't know why it would have an affect, but they say it does. Did you see all the mailing list chatter about new installations failing due to sysinstall not being able to newfs device names that didn't exist? This is related. Also, a partition table isn't just a partition table. It's a little more complex than that. It has *nothing* to do with the filesystems inside. It has everything to do with the way that FreeBSD looks at the drive to figure out what's on it. See man pages for geom/gpart. There are others that have given a better explanation than I can provide (marcus, juli). Search the archives. Trust me, I didn't remove DD support from sysinstall just to make life more complicated for everyone. I did this because as it stands right now, it doesn't work. > I take this to mean that any disk that is created without slice > and partition within slice needs to be redone. =A0 =A0Probably it can all > be done in sysinstall, but you can do it with fdisk/bsdlabel/newfs. Or sade, although sade hasn't yet been updated to reflect the lack of DD support. Just don't use that option. > It does not matter if it is a boot disk or just a data disk. =A0It > is whether or not it has a (one or more, up to 4) slice defined > and within the slice[s] partitions defined which are turned in to > filesystems. =A0 You can tell by the dev names in /etc/fstab. > > If they have the full device name =A0/dev/da0s1a, ... da0s1h, they > are NOT dangerously dedicated and you should not have to worry. > > If the machine is dual booted with some MS thing as the other OS, then > it is very unlikely that they are dangerously dedicated. > > But, if they are like =A0/dev/da0 =A0or =A0/dev/da0s1 =A0(but with no 'a,= b..h') > then they are dangerously dedicated and you need to convert them. What? No. 's1' refers to slice 1 (or partition 1, as you're referring to it). bsdlabel is used inside this slice to create a partition for each mount point (a,b,c, etc). See http://www.freebsd.org/doc/en/articles/formatting-media/x76.html. This documentation needs to be updated, but at least it'll give you a good explanation of how it used to work. With DD mode, you're creating a label against the drive itself, not a slice within. > First you would have to back up the contents of the disk, partition > by partition (mountable filesystem by mountable filesystem) however > you have it. =A0 Since it is 'dangerously dedicated' it is likely you > have a single filesystem per disk that needs backing up. > Check out that backup to make sure it is readable. =A0 There is no > going back. =A0 The backup can be done to tape or USB external disk > or network or any other media that will not be affected, has room > and can be written and read from the FreeBSD system. I think you're confusing running newfs against an unlabeled slice with DD mode. See above. DD mode means no slices, just a label for partitions. Not 'a single filesystem'. >> > >> > Thanks for helping to clear up my confusion... >> > >> > plw >> >> Peggy, >> >> Were you able to find an answer for this? I also have a number of >> servers and firewalls that use dangerously dedicated disks (boot and >> data). I don't see why UFS would care if it's mounted from ad1a vs. >> ad1s1a. It's not a filesystem thing. See above. -- randi