From owner-freebsd-questions@FreeBSD.ORG Wed Jun 10 12:29:50 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 EBE59106566B for ; Wed, 10 Jun 2009 12:29:50 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: from mail-bw0-f214.google.com (mail-bw0-f214.google.com [209.85.218.214]) by mx1.freebsd.org (Postfix) with ESMTP id 63FE98FC19 for ; Wed, 10 Jun 2009 12:29:50 +0000 (UTC) (envelope-from valentin.bud@gmail.com) Received: by bwz10 with SMTP id 10so69883bwz.43 for ; Wed, 10 Jun 2009 05:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=UoAMqdmGCMc+1m9OwZQ0Xhd0c3pOn+iUf0Ob30sE0cs=; b=P10sJMCcrnRm0pVRYEtbFh3YqNP2beJK2hcxTBae6JZXsPFI0VsOnG3fU6clvuTi38 NUYvga0t1786S3wP37qOKi3zRikiOZJW7TQyPq3hv9pp9pG+09oMZpF+KQIRgc+Q0YUk FR7HYCHnhB/BGbSzsOvbgmfGLfZSYQPBthq60= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=pMN7GjTCk865LG0eIe27PRwBam9RIre8jpC4HPTqSgTtcz8LyAkNt5m7l/PhQllFDk I25mR/c+iODWzolkx+WoTXIpT748hLNjlsrm1E1Nv451SCJ8GXrpmi/k3ZLbm6Et3Img 2XxexE7r7pXAuzpgfwLkZ2d97jQmFZE/uJS5M= MIME-Version: 1.0 Received: by 10.103.192.2 with SMTP id u2mr690485mup.31.1244636989190; Wed, 10 Jun 2009 05:29:49 -0700 (PDT) In-Reply-To: References: <139b44430906092312y2a16cb58o3248c1ac9c3f497d@mail.gmail.com> From: Valentin Bud Date: Wed, 10 Jun 2009 15:29:29 +0300 Message-ID: <139b44430906100529n3d7e93e2kd209731b2da498e0@mail.gmail.com> To: dhaneshk k Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: glabel(8) a gmirror(8) doesn't work 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, 10 Jun 2009 12:29:51 -0000 On Wed, Jun 10, 2009 at 3:20 PM, dhaneshk k wrote: > List members; > > http://www.freebsd.org/doc/en/books/handbook/geom-glabel.html > > Starting with FreeBSD 7.2, the glabel(8)class supports a new label type for > UFS file systems, based on the unique file system id, ufsid. > > Is the above clause applicable in this case ? instead of using tunefs -L > > > can we use# glabel status ? > > and can use the ufsid labels of /dev/ufsid/ and edit /etc/fstab > entries for the partitions? > Well yes you are right. The point of labeling the partitions was/is to make the names more easier to remember IMO. Remembering a string (the ufsid) is not quite my specialty. Anyway thanks for the heads up. v > > > > > > > From: valentin.bud@gmail.com > > Date: Wed, 10 Jun 2009 09:12:47 +0300 > > To: freebsd-questions@freebsd.org > > Subject: glabel(8) a gmirror(8) doesn't work > > > > > Hello community, > > > > Yesterday I have installed FBSD 7.2-RELEASE. I have installed on a mirror > > created with gmirror(8). All I have modified on this system is that I > have > > updated the sources, rebuild the world and kernel and of course install. > > > > I have named the mirror system0 and all worked well. Now the problem > > is that i want to glabel the partitions on the mirror so i have followed > the > > following > > procedure: > > 1. reboot to single user > > 2. mount -a > > 3. tunefs -L var /dev/mirror/system0s1d > > This commands exits with "Failed to write superblock". > > > > After reading the man of gmirrror(8) and glabel(8) i have noticed that > both > > of them > > store metadata on the last sector of the provider. From this results that > > what I want > > to do is not possible, at least my logic tells me that. Since gmirror > wrote > > metadata > > to the last sector of the provider, glabel tries to rewrite it and the > > system stops the > > process to protect the filesystem. But then again for gmirror the > providers > > are > > the two hdd i use for mirroring and for glabel the provider is the mirror > > itself. That's > > again what my logic tells me. So i think there is some kind of separation > > between the > > two modules and things should work. > > > > I have searched a bit but couldn't find any relevant info on labeling a > > mirror. I just > > want to know if this is possible and if it's not I'd like to understand > why. > > > > Labeling a partition is not a must-have but it's sure nice :). > > > > thanks, > > v > > > > -- > > network warrior since 2005 > > _______________________________________________ > > 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" > > ------------------------------ > Get easy photo sharing with Windows LiveT Photos. Drag n' drop > -- network warrior since 2005