Bug on md + geli + jail !?

Anderson J. de Souza anjoel.s at gmail.com
Fri Nov 2 04:13:39 PDT 2007


Hello people !

    Well,... I have an  good system with Jails over Partitioned Encrypted
Memory Disc, initialized with rc system, but if I does one jail stop
[jailname], geli don't remove partition mdX.elia, and I can't use this
device again.

I try use rm on device file, then I when restart geli over mdX, its dont
make mdX.elia ,..
i try show it with "devfs rule apply path md6.elia hide" but then show 2
devices: like this:
crw-r-----  1 root  operator    0, 160 Nov  1 09:45 /dev/md6.elia
crw-r-----  1 root  operator    0, 160 Nov  1 09:45 /dev/md6.elia

if I try mount the device the system show:
mount: /dev/md6.elia: Device not configured


My partition scheme: (BEFORE BUG)
/dev/md6.elia on /jails/revproxy (ufs, local, read-only, acls)
/dev/md6.elib on /jails/revproxy/var (ufs, local, soft-updates, acls)
/dev/md6.elid on /jails/revproxy/tmp (ufs, local, nosuid, soft-updates,
acls)
/dev/md6.elie on /jails/revproxy/usr (ufs, local, soft-updates, acls)
/dev/md6.elia on /jails/revproxy/data (ufs, local, nosuid, soft-updates,
acls)


TUNEFS AFTER BUG:
free05-meta# tunefs -p /dev/md6.elia
tunefs: /dev/md6.elia: could not open special device

TUNEFS BEFORE BUG:
# tunefs -p /dev/md6.elia
tunefs: ACLs: (-a)                                         disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)
# tunefs -p /dev/md6.elib
tunefs: ACLs: (-a)                                         disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)
# tunefs -p /dev/md6.elid
tunefs: ACLs: (-a)                                         disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)
# tunefs -p /dev/md6.elie
tunefs: ACLs: (-a)                                         disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)


My Devices before stop jail:
crw-r-----  1 root  operator    0, 101 Nov  1 09:45 /dev/md6
crw-r-----  1 root  operator    0, 122 Nov  1 09:45 /dev/md6.eli
crw-r-----  1 root  operator    0, 123 Nov  1 09:45 /dev/md6.elia
crw-r-----  1 root  operator    0, 124 Nov  1 09:45 /dev/md6.elib
crw-r-----  1 root  operator    0, 125 Nov  1 09:45 /dev/md6.elic
crw-r-----  1 root  operator    0, 126 Nov  1 09:45 /dev/md6.elid
crw-r-----  1 root  operator    0, 127 Nov  1 09:45 /dev/md6.elie


MY BSDLABELS:
# /dev/md6.eli:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   262144       16    4.2BSD     2048 16384 16392
  b:  2097152   262160    4.2BSD     2048 16384 28552
  c:  6291455        0    unused        0     0         # "raw" part, don't
edit
  d:   524288  2359312    4.2BSD     2048 16384 32776
  e:  3407855  2883600    4.2BSD     2048 16384 28552






-- 
___________________
Anderson J. de Souza
- Networking and Security -

[ - Professional Consulting - The best firewall - ]
http://anjoel.s.googlepages.com - anjoel.s at gmail.com
Phone: +55 (54) 9115.13.15 - Sip: 1-747-006-0374


More information about the freebsd-geom mailing list