Allan Fields | 2 Apr 03:09 2005
Picon

Re: gbde init -f

On Mon, Mar 28, 2005 at 08:43:25PM -0600, Dave . wrote:
> Greetings,
> 
> i am trying to setup GBDE to use a file for decryption and i am running 
> into some problems. i think i have the syntax down correctly [...]

no.. since: -f <parameter file>

Not the option to use passphrase material from file.
Patches are available to do this previously posted to list.

it would be -k <passphrase material> and -K <passphrase material>

> this is my input, and it'll crash just after i enter this:
> gbde init /dev/ad0s3d -i -f /file/namehere

Probably gdbe(8) tries to parse for key=value pairs in /file/namehere
and a bug causes random data to crash it.

--

-- 
 Allan Fields, AFRSL - http://afields.ca
 2D4F 6806 D307 0889 6125  C31D F745 0D72 39B4 5541
Jeremy Claeson | 2 Apr 19:09 2005
Picon

Fwd: Newbie help on geom mirror setup

Hello? Anyone out there? Can anyone help me out here? Thanks!

---------- Forwarded message ----------
From: Jeremy Claeson <jclaeson <at> gmail.com>
Date: Mar 27, 2005 10:04 PM
Subject: Newbie help on geom mirror setup
To: freebsd-geom <at> freebsd.org

I've not yet figured out how to set up even on instance of the geom
mirror using either procedure found at:
http://people.freebsd.org/~rse/mirror/.

Here's what I'm trying to do:
I'm upgrading my Samba server by adding some storage. I've got two
250GB drives that I'd like to software raid and one 40 GB system drive
that I'm leaving alone.

When it comes to working with disks, I've always been a sysinstall
kinda guy. Until I started this project o' mine, I'd never even heard
of bsdlabel, geom, etc.

What I'm looking for is some very basic understanding of what steps to
take for a non-system disk geom mirror; what shape my disks need to be
in at the start; what I need to do with bsdlabel, etc.

Here's where I keep failing:
the step where I use bsdlabel. If I do "bsdlabel -w -B
/dev/mirror/gm0s1", I get an error "Geom not found". What should I do
in "bsdlabel -e /dev/mirror/gm0s1"? My other disk looks like this:
# /dev/ad4s1:
(Continue reading)

Pawel Malachowski | 3 Apr 15:06 2005
Picon

Processess running on gconcat lock in kserel or ufs state

Hello,

Processess runing on gconcat drive frequently lock on my machine
in kserele/ufs state. Could you try giving some hints/patches?
Details below.

Machine:

FreeBSD x.pl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Mon Mar 28
21:35:57 CEST 2005     root <at> x.pl:/usr/obj/usr/src/sys/x  i386

(previously 5.3-RELEASE, same problem).

gconcat drive build on top of 6 GBDE drives. GBDE drives are on physical
ATA drives (usually adXs1e slice), reported by S.M.A.R.T. as OK.

This gconcat volume receives many concurrent read/write sessions
(about 30-50 all the time, constant network traffic, about 10-15Mbit/s
od reading and 2-4Mbit/s of writing activity).

/dev/concat/c1    624G    143G    474G    23%    1445 84503129    0%   /x
/dev/concat/c1 on /x (ufs, local, soft-updates)

tunefs -m was used on /x filesystem to reduce minfree to 1%.

After day or two processes trying to read /x are locking.
First (most active process) locks in kserel state, every next process
(for example shell trying `cd /x') locks in ufs state.
There are ongoing writing processes and it seems these are not locked
(upload is proceeding). They will lock after upload is finished and read
(Continue reading)

Pawel Jakub Dawidek | 3 Apr 16:48 2005
Picon

Re: Processess running on gconcat lock in kserel or ufs state

On Sun, Apr 03, 2005 at 03:06:02PM +0200, Pawel Malachowski wrote:
+> Hello,
+> 
+> Processess runing on gconcat drive frequently lock on my machine
+> in kserele/ufs state. Could you try giving some hints/patches?

I think I found the problem. Could you try this patch:

	http://people.freebsd.org/~pjd/patches/g_concat.c.patch

There was missing g_io_deliver() in case of insufficient memory.
I also add a fix for very rare case - when we need two I/O operations
and allocation of the second bio will fail, we leaked memory.
Thanks for the report.

--

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd <at> FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
Pawel Jakub Dawidek | 3 Apr 18:02 2005
Picon

Re: Newbie help on geom mirror setup

On Sun, Mar 27, 2005 at 10:04:15PM -0500, Jeremy Claeson wrote:
+> Here's where I keep failing:
+> the step where I use bsdlabel. If I do "bsdlabel -w -B
+> /dev/mirror/gm0s1", I get an error "Geom not found". What should I do
+> in "bsdlabel -e /dev/mirror/gm0s1"? My other disk looks like this:
+> # /dev/ad4s1:
+> 8 partitions:
+> #        size   offset    fstype   [fsize bsize bps/cpg]
+>   c: 488392002        0    unused        0     0         # "raw" part,
+> don't edit
+>   d: 488392002        0    4.2BSD     2048 16384 28552

Which FreeBSD version are you using?
When you get "Geom not found" error geom_mirror.ko module is loaded?
Does /dev/mirror/gm0s1 file exist?

You should not use offset 0 for 'd' partition - user 16 instead and
decrease its size.

Also remember that gm0s1 is one sector smaller than its smallest
component.

--

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd <at> FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
Pawel Malachowski | 3 Apr 20:42 2005
Picon

Re: Processess running on gconcat lock in kserel or ufs state

On Sun, Apr 03, 2005 at 04:48:13PM +0200, Pawel Jakub Dawidek wrote:

> I think I found the problem. Could you try this patch:
> 	http://people.freebsd.org/~pjd/patches/g_concat.c.patch

I will give it a try ASAP.

> There was missing g_io_deliver() in case of insufficient memory.
> I also add a fix for very rare case - when we need two I/O operations
> and allocation of the second bio will fail, we leaked memory.

--

-- 
Paweł Małachowski
Christian Caron | 4 Apr 04:18 2005
Picon

mirroring two data disks (no system files on them)

Hi,

my setup is:

- one disk ad0 (15GB) with FreeBSD 5.3 installed
- two identical disks ad2 and ad3 (15GB) with no data on it

I just want to have a mirrored data disk (consisting of two identical 
disks).

I found http://people.freebsd.org/~rse/mirror/, but it applies for 
mirroring a system disk.

I went through:

gmirror label -v -n -b round-robin gm0s1 /dev/ad3s1
gmirror load
gmirror configure -a gm0s1
gmirror insert gm0s1 /dev/ad2s1
add 'geom_mirror_load="YES"' in /boot/loader.conf

It loads ok and if I type:

"gmirror list"

I get the "Providers" and "Consumers" list which all looks ok.

But how do I access the mirror? Where can I put my data?

I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading...
(Continue reading)

Pawel Jakub Dawidek | 4 Apr 08:38 2005
Picon

Re: mirroring two data disks (no system files on them)

On Sun, Apr 03, 2005 at 10:18:40PM -0400, Christian Caron wrote:
+> Hi,
+> 
+> my setup is:
+> 
+> - one disk ad0 (15GB) with FreeBSD 5.3 installed
+> - two identical disks ad2 and ad3 (15GB) with no data on it
+> 
+> I just want to have a mirrored data disk (consisting of two identical 
+> disks).
+> 
+> I found http://people.freebsd.org/~rse/mirror/, but it applies for 
+> mirroring a system disk.
+> 
+> I went through:
+> 
+> gmirror label -v -n -b round-robin gm0s1 /dev/ad3s1
+> gmirror load
+> gmirror configure -a gm0s1
+> gmirror insert gm0s1 /dev/ad2s1
+> add 'geom_mirror_load="YES"' in /boot/loader.conf
+> 
+> It loads ok and if I type:
+> 
+> "gmirror list"
+> 
+> I get the "Providers" and "Consumers" list which all looks ok.
+> 
+> But how do I access the mirror? Where can I put my data?
+> 
(Continue reading)

Wojciech A. Koszek | 4 Apr 21:58 2005
Picon

Panic while loading GEOM BSD class (KASSERTions)

Hello GEOM hackers,

5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Mon Mar 14 21:35:40 CET 2005     

FreeBSD dunstan.freebsd.czest.pl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #5:
Mon Apr  4 16:54:55 CEST 2005 root <at> dunstan.freebsd.czest.pl:/usr/obj/usr/src/sys/HOME8  i386

My current kernel configuration:

dunstan <at> dunstan:(~)$ grep -i geom /usr/src/sys/i386/conf/HOME8
options         GEOM_GPT                # GUID Partition Tables.

# Debugging for use in -current
options	KDB 
options	DDB 
options	GDB
options	INVARIANTS
options	INVARIANT_SUPPORT
options	WITNESS
options	WITNESS_SKIPSPIN
[..]
options	WITNESS_KDB
options	KDB_TRACE
options	KDB_UNATTENDED
options	DDB
options	GDB
[..]
options	MUTEX_DEBUG
options	ALT_BREAK_TO_DEBUGGER
options	KTR
(Continue reading)

Christian Caron | 5 Apr 03:11 2005
Picon

Re: mirroring two data disks (no system files on them)

> +> 
> +> I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading...
> +> 
> +> Any hints?
> 
> Just to be sure: did you create file system on it?
> 

Sorry about the lack of details. I should have take more time to describe.

By following the guidelines, I indeed use sysinstall (fdisk and label) 
to create c partitions on ad2 and ad3 (I hope I did it right).

The error showing at boot time is:

====
Cannot find file system superblock
/dev/mirror/gm0s1c: CAN'T CHECK FILE SYSTEM.
/dev/mirror/gm0s1c: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
/dev/mirror/gm0s1c: CANNOT SEEK BLK: -1
/dev/mirror/gm0s1c: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(...)
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
	ufs: /dev/mirror/gm0s1c (/mirror)
Automatic file system check failed; help!
Mar 29 18:28:15 init: /bin/sh on /etc/rc terminated abnormally, going to 
single user mode
Enter full pathname of shell or RETURN for /bin/sh:
====

(Continue reading)


Gmane