Re: geom not clearing metadata labels

2009-09-30 Thread Ross

R I've got a geom based file system that is running under 2 geom
R modules: multipath and journal.

Solved the problem, so here's some notes for the archive:

- the answers were hiding throughout in the freebsd-geom mailing list
archives, I just forgot to look there initially.

- this was a single data disk that was improperly partitioned/sliced
in the beginning, therefore the metadata information was being picked
up twice and auto creating the journal device under each device.

- if the journal is being picked up multiple times (ie slice +
partition), then remove one of the formatting options (via dd
if=/dev/zero of=/dev/x bs=512 count=32) so only 1 journal is
picked up.  Then do gjournal clear /dev/x to properly remove the
metadata.

- hardcode the gjournal labels for situations like this, as it'll
stop it being autoloaded under multiple devices.

- gjournal hardcoded provider labels are up to 15 characters long, so
long device names can be a pain (like multipath/0s1a is too
long).

Probably a few other notes that I've forgotten, but that'll get you on
the right path.

R.


-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


geom not clearing metadata labels

2009-09-28 Thread Ross

I've got a geom based file system that is running under 2 geom
modules: multipath and journal.

I'm looking to increase the journal size on the disk, but when it
comes to re-creating the journal geom metadata, it refuses to do so
sighting the errno 1: Operation not permitted.  I get the same error
with trying to redo the multipath metadata as well.  (The command I'm
executing is gjournal clear -v /dev/multipath/xyz2.journal)

Permissions all look correct on the /dev devices, and I'm executing as
root/uid 0, and normal disk access is fine - so I'm a little stumped.

Executing gjournal list gets the following, which seems correct
(mode is r0w0e0 due to being umounted, otherwise r1w1e1 in normal
operation)

-=
Geom name: gjournal 1011364901
ID: 1011364901
Providers:
1. Name: multipath/xyz2.journal
   Mediasize: 1072668081152 (999G)
   Sectorsize: 512
   Mode: r0w0e0
Consumers:
1. Name: multipath/xyz2
   Mediasize: 1073741823488 (1000)
   Sectorsize: 512
   Mode: r1w1e1
   Jend: 1073741822976
   Jstart: 1072668081152
   Role: Data,Journal
-=

Obviously, I can just reformat/dd the raw disk to get rid of the
label, but I'd like to know the better way.  :-)


Thanks.

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org