Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2007 10:18:39 -0500
From:      "illoai@gmail.com" <illoai@gmail.com>
To:        freebsd-chat@freebsd.org
Subject:   geom, lies, and video tape
Message-ID:  <d7195cff0703300818i925284bh6e0e8b6d162ad7a9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
# bsdlabel -e da0s1
. . .
Such that:

da0s1a => /
da1s1a => /tmp
da[0-3]s1b => swap
da[23]s1a, da[0-3]s1d, da[01]s1e => unused

# gstripe label -s 65536 var da0s1d da1s1d
Similarly for stripe/home, stripe/ports, and stripe/usr

# newfs -U /dev/stripe/var
. . .

ffwd a couple of months:

% bsdlabel stripe/var
bsdlabel: /dev/stripe/var: no valid label found
% ls -l /dev/stripe/
total 0
crw-r-----  1 root  operator    0, 134 Mar 24 09:09 home
crw-r-----  1 root  operator    0, 135 Mar 24 09:09 ports
crw-r-----  1 root  operator    0, 133 Mar 24 09:09 usr
crw-r-----  1 root  operator    0, 132 Mar 24 09:09 var
% bsdlabel da0s1
# /dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   730360       16    4.2BSD     2048  8192 42388
  b:   605492   730376      swap
  c:  8321607        0    unused        0     0         # "raw" part, don't edit
  d:   605492  1335868    unused        0     0
  e:  6380247  1941360    unused        0     0
% gstripe list var
Geom name: var
State: UP
Status: Total=2, Online=2
Type: AUTOMATIC
Stripesize: 65536
ID: 3018421848
Providers:
1. Name: stripe/var
   Mediasize: 619970560 (591M)
   Sectorsize: 512
   Mode: r1w1e1
Consumers:
1. Name: da0s1d
   Mediasize: 310011904 (296M)
   Sectorsize: 512
   Mode: r1w1e2
   Number: 0
2. Name: da1s1d
   Mediasize: 310011904 (296M)
   Sectorsize: 512
   Mode: r1w1e2
   Number: 1

Oddly*, it all works perfectly.

My curiousity is about whether this is, not so much
expected, but proper** behaviour.  I have also done
gstripe the canonical way, with striping the daN or
daNsN, bsdlabel the stripe, newfs the resulting
partitions.  But doing it wrong way 'round seems
to do no (particular) harm.


* Or not-so-oddly, as you wish.
** Demure: "Trousers were meant for women, as women have
belatedly discovered." (Anthony Burgess)

-- 
--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d7195cff0703300818i925284bh6e0e8b6d162ad7a9>