From owner-freebsd-stable@FreeBSD.ORG Mon Jun 20 10:10:01 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E6AC2106564A for ; Mon, 20 Jun 2011 10:10:01 +0000 (UTC) (envelope-from amarat@ksu.ru) Received: from webmail.hitv.ru (mail.hitv.ru [217.66.16.37]) by mx1.freebsd.org (Postfix) with ESMTP id 232E58FC0A for ; Mon, 20 Jun 2011 10:10:00 +0000 (UTC) Received: from webmail.hitv.ru (localhost [127.0.0.1]) by webmail.hitv.ru (Postfix) with ESMTP id 0EAD74AC120; Mon, 20 Jun 2011 13:51:26 +0400 (MSD) Received: from zealot.ksu.ru (zealot.hitv.ru [83.151.8.230]) by webmail.hitv.ru (Postfix) with ESMTP id C56BE4AC100; Mon, 20 Jun 2011 13:51:25 +0400 (MSD) Received: from zealot.ksu.ru (localhost.lnet [127.0.0.1]) by zealot.ksu.ru (8.14.4/8.14.4) with ESMTP id p5K9qkW5061961; Mon, 20 Jun 2011 13:52:46 +0400 (MSD) (envelope-from amarat@ksu.ru) Message-ID: <4DFF186E.50209@ksu.ru> Date: Mon, 20 Jun 2011 13:52:46 +0400 From: "Marat N.Afanasyev" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:2.0.1) Gecko/20110611 Firefox/4.0.1 SeaMonkey/2.1 MIME-Version: 1.0 To: nickolasbug@gmail.com References: In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms060000030201060005090607" X-Virus-Scanned: ClamAV using ClamSMTP X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: GPT labels and gjournal X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2011 10:10:02 -0000 This is a cryptographically signed message in MIME format. --------------ms060000030201060005090607 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: quoted-printable nickolasbug@gmail.com wrote: > Hello stable. > > > I've tried to make two journaled partitions on new GPT disk. > Partitions have GPT labels storage and backup: > > gpart show -l ada1 > =3D> 34 2930277101 ada1 GPT (1.4T) > 34 8388608 1 (null) (4.0G) > 8388642 2415919104 2 storage (1.1T) > 2424307746 8388608 3 (null) (4.0G) > 2432696354 497580781 4 backup (237G) > > > gjournal label /dev/gpt/storage /dev/gptid/3570dff6-9a73-11e0-ad0e-001e= 8c0ecc19 > gjournal label /dev/gpt/backup /dev/gptid/58db2577-9a73-11e0-ad0e-001e8= c0ecc19 > > newfs -J /dev/gpt/storage.journal > newfs -J /dev/gpt/backup.journal > > Where 3570dff6-9a73-11e0-ad0e-001e8c0ecc19 is GPT UUID of ada1p1 and > 58db2577-9a73-11e0-ad0e-001e8c0ecc19 is GPT UUID of ada1p3 partition. > > > This partitions have been added to fstab: > > /dev/gpt/storage.journal /mnt/storage ufs async,rw 0 0 > /dev/gpt/backup.journal /mnt/backup ufs async,rw 0 0 > > > After reboot system doesn't wanna see gpt-labeled partitions > /dev/gpt/storage.journal and /dev/gpt/backup.journal (so, mount fails) > but has /dev/ada1p2.journal and /dev/ada1p4.journal instead. > > > How can I mount this partitions using GPT labels? > > > uname -a > FreeBSD cloud 8.2-STABLE FreeBSD 8.2-STABLE #37 r223311: Mon Jun 20 > 04:16:22 EEST 2011 root@cloud:/usr/obj/usr/src/sys/CLOUD amd64 > > > Options GEOM_PART_GPT, GEOM_LABEL and GEOM_JOURNAL present in kernel > configuration file. > > > ------- > wbr, > Nickolas > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.or= g" > i think it would be more useful to: add labels into UFS, e.g. #umount /mnt/storage #umount /mnt/backup #tunefs -L storage /dev/ada1p2.journal #tunefs -L backup /dev/ada1p4.journal and mount /dev/ufs/storage and /dev/ufs/backup into /mnt/storage and /mnt/backup respectively --=20 =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD, =ED=C1=D2=C1=D4 =E1=C6=C1=CE=C1=D3=D8=C5= =D7 --------------ms060000030201060005090607--