Re: fsck -C -p: NO WRITE ACCESS

2022-02-17 Thread John-Mark Gurney
Andriy Gapon wrote this message on Tue, Feb 15, 2022 at 08:44 +0200: > On 15/02/2022 01:17, John-Mark Gurney wrote: > > Andriy Gapon wrote this message on Mon, Feb 07, 2022 at 14:15 +0200: > >> I've got a problem where fsck behaves differently from my expectations. > >

Re: bio re-ordering

2022-02-17 Thread John-Mark Gurney
t now, the ggate protocol (from what I remember) doesn't have a way to know when the remote kernel has received notification that an IO is complete. I guess this situation isn't any worse than it is right now w/o passing the _ORDERED flag down though. > I've done some exp

Re: fsck -C -p: NO WRITE ACCESS

2022-02-14 Thread John-Mark Gurney
. I'm not sure how to do this though, as tunefs and fsdb don't seem to have options to do this, and likely you'll want to update all the superblocks w/ this new value. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."

Re: RFC reviews for ggate and hastd

2021-09-20 Thread John-Mark Gurney
Johannes Totz wrote this message on Sun, Sep 19, 2021 at 17:27 +0100: > On 14/09/2021 22:21, John-Mark Gurney wrote: > > Johannes Totz wrote this message on Mon, Sep 13, 2021 at 02:00 +0100: > >> On 09/09/2021 23:33, John-Mark Gurney wrote: > >>> Johannes Totz via f

Re: RFC reviews for ggate and hastd

2021-09-14 Thread John-Mark Gurney
Johannes Totz wrote this message on Mon, Sep 13, 2021 at 02:00 +0100: > On 09/09/2021 23:33, John-Mark Gurney wrote: > > Johannes Totz via freebsd-geom wrote this message on Thu, Sep 02, 2021 at > > 21:55 +0100: > >> (looks like gmane swallowed my 1st message, trying ag

Re: RFC reviews for ggate and hastd

2021-09-09 Thread John-Mark Gurney
d security) allowing for better security.. The ssh branch does have an rc.d script for that. I'll look at which one should be used, and adapting the man page that I've written for that one as well. Thanks for the help/work! -- John-Mark Gurney Voice: +1 41

Re: Updating 'bio_completed' field in case of unwritten LBA

2020-12-29 Thread John-Mark Gurney
will not handle that gracefully... (Just realized that'd be a useful mode for geli to have, to return zeros for failed authentication.) -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."

Re: Single-threaded bottleneck in geli

2020-07-04 Thread John-Mark Gurney
>> going through that thread. What can I do to improve this situation? > > >> Would > > >>> it make sense to enable direct dispatch for geli? That would hurt > > >>> single-threaded performance, but probably improve performance for > > highly >

Re: GELI without passphrase on ZFS root

2018-10-25 Thread John-Mark Gurney
g from a USB drive which can contain the key file: https://forums.freebsd.org/threads/zfs-boot-from-usb.45880/ I don't think zfsboot (which is needed for ZFS root booting) can handle key files, because it needs to get the key file from somewhere, and it is a very small binary, and so does not have the

Re: GELI strangeness with gstat

2018-01-02 Thread John-Mark Gurney
ich I think only uses a single write thread, so > maybe reducing that would help. But theres still a very large > discrepancy between what all of my other jetricsare showing me and gstat. > > Te underlying discs are SSD's by t

Re: GELI strangeness with gstat

2017-11-27 Thread John-Mark Gurney
u can run top -S to see how much CPU the geli threads are using. Also, how many eli volumes do you have? In my case, I have 13... In order to reduce the load on the scheduler, I have: kern.geom.eli.threads="1" in /boot/loader.conf in order to prevent creating 6 threads (I have a 6

Re: Fwd: EXT2 partitioning in BSD

2017-10-28 Thread John-Mark Gurney
. UFS "knew" about the bsdlabel, and always skipped the first 16 sectors to not overwrite them. If you tried this on pre-geom machines, you would have corrupted your bsdlabel. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, ha

Re: Abysmally slow write to geom class volume over network

2016-10-12 Thread John-Mark Gurney
geom" test is still using geom, just not w/ the graid3 module. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." ___ freebsd-geom@freebsd.org mail

Re: RFC: Pass TRIM through GELI

2015-03-12 Thread John-Mark Gurney
BOOT flag, which makes no sense on > a onetime anyway, so nobody ever bothered trying. But with -[tT], > somebody might try. Evidence: I did, and found the panic :) Oh, it looks like we have a flag to show if a provider can delete, see: svnweb.freebsd.org/changeset/base/r279913

Re: RFC: Pass TRIM through GELI

2015-03-08 Thread John-Mark Gurney
a sector has been deleted, it is possible that the data may still be readable depending upon how the underlying provider implements .Dv BIO_DELETE . BIO_DELETE should be used w/ .Dv. The date is not bumped... Even though it will be incorrect, it's useful to include to remind people that i

Re: ChaCha8/12/20 and GEOM ELI tests

2015-01-30 Thread John-Mark Gurney
any encryption at > > all? > > 100% is not available yet introduced GELI keys / mounted drive. > AES-XTS is good but too slow. You do realize that AES-XTS can get >900MB/sec on md mounted disks when AES-NI is available? and that is single cpu... Make sure you're runnin

Re: ChaCha8/12/20 and GEOM ELI tests

2015-01-12 Thread John-Mark Gurney
; data[i] ^= ((uint8_t*)ctx->tweak)[i]; > } > > if (do_encrypt) > rijndael_encrypt(&ctx->key1, data, data); > else > rijndael_decrypt(&ctx->key1, data, data); > > if (ALIGNED_POINTER(b

Re: ChaCha8/12/20 and GEOM ELI tests

2015-01-11 Thread John-Mark Gurney
= 102841051 bytes/sec > AES-XTS-256 = 80813644 bytes/sec Is this from a different patch or what? Can you talk more about this? Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not.

Re: Converting LBAs to byte offsets through the GEOM stack

2014-12-18 Thread John-Mark Gurney
ive, returned a read error and kicked the drive out of the mirror instead of fixing it (which I would have preferred)... Even having a simple mode that upon read error, would read from the other drive and write back would be good... We'd need to have a way to say that this drive is FAILING, bu

CTF: geom gate network patch

2014-11-03 Thread John-Mark Gurney
John-Mark Gurney wrote this message on Fri, Oct 17, 2014 at 09:58 -0700: > Sourish Mazumder wrote this message on Fri, Oct 17, 2014 at 17:34 +0530: > > I am planning to use geom gate network for accessing remote disks. I set up > > geom gate as per the freebsd handbook. I am us

Re: geom gate network

2014-10-17 Thread John-Mark Gurney
, you'll be limited to 128k / rtt of bandwidth. Second is that ggate isn't issueing multiple IOs at a time. This means that any NCQ or tagging isn't able to be used, where as when running natively they can be used... -- John-Mark Gurney

Re: GELI created on a GPT labelled partition doesn't work 2nd time around...

2014-10-01 Thread John-Mark Gurney
Karl Pielorz wrote this message on Tue, Sep 30, 2014 at 22:20 +0100: > --On 30 September 2014 06:54:45 -0700 John-Mark Gurney > wrote: > > >gpt doesn't let you do gpt in gpt.. which explains why you can't > >create the second level of gpt... > > > >Wh

Re: GELI created on a GPT labelled partition doesn't work 2nd time around...

2014-09-30 Thread John-Mark Gurney
Andrey V. Elsukov wrote this message on Tue, Sep 30, 2014 at 18:22 +0400: > On 30.09.2014 17:54, John-Mark Gurney wrote: > >> If I repeat the above steps without the initial GPT partition (i.e. > >> against > >> /dev/da0) - I end up with '/dev/da0.e

Re: GELI created on a GPT labelled partition doesn't work 2nd time around...

2014-09-30 Thread John-Mark Gurney
partition (i.e. against > /dev/da0) - I end up with '/dev/da0.eli' - which I can then GPT fine etc. gpt doesn't let you do gpt in gpt.. which explains why you can't create the second level of gpt... Why do you want/need to partition again? You could pos

Re: Attempt to add multiple device attachment to "geli attach"

2014-09-03 Thread John-Mark Gurney
> >case. Now I can pass multiple devices to the kernel's geom handler > >and they get passed to the kernel ctl handler. > > > >The following patch should, I believe, work -- but it doesn't. The > >first disk attaches but the second one that was

Re: Geom stripe bottleneck

2014-06-04 Thread John-Mark Gurney
> I do not have a ahci_load=YES in /boot/loader.conf (this is on FreeBSD > 9.2-p6) and I don't know if that's still necessary or not. Searching the > internet turned up mostly rather old (2010,2011) results. > > > Am 2014-06-03 22:48, schrieb John-Mark Gurney: >

Re: Geom stripe bottleneck

2014-06-03 Thread John-Mark Gurney
ther, so again, won't have work to do until another IO is submitted... Try sending more IO at it, like doing 4 or more dd read's such that the between the latency of one IO, there is other IO to server... Also, make sure that you're using NCQ where the OS can submit multiple IO

Re: diskid documentation

2014-06-02 Thread John-Mark Gurney
Pawel Jakub Dawidek wrote this message on Mon, Jun 02, 2014 at 22:26 +0200: > On Mon, Jun 02, 2014 at 11:01:08AM -0700, John-Mark Gurney wrote: > > Michael W. Lucas wrote this message on Mon, Jun 02, 2014 at 11:36 -0400: > > > On Mon, Jun 02, 2014 at 10:45:52AM -0400, Ryan Stone

Re: diskid documentation

2014-06-02 Thread John-Mark Gurney
ot;bind" the two together so that when one opens, the other doesn't disappear... The problem is that geom views them as two separate disks when in fact they are the same... someone who knows geom well should think about how to solve this problem, as diskid isn'

Re: diskid documentation

2014-06-01 Thread John-Mark Gurney
e the glabel man page to document the diskid feature that you added. Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." ___ freebsd-geom@freeb

Re: GEOM_PART: Integrity check failed (ada2, MBR)

2014-05-20 Thread John-Mark Gurney
Ronald F. Guilmette wrote this message on Tue, May 20, 2014 at 13:17 -0700: > > In message <20140520185935.gs43...@funkthat.com>, > John-Mark Gurney wrote: > > >Ronald F. Guilmette wrote this message on Sat, May 17, 2014 at 17:00 -0700: > >> I had forgotten all

Re: GEOM_PART: Integrity check failed (ada2, MBR)

2014-05-20 Thread John-Mark Gurney
Ronald F. Guilmette wrote this message on Sat, May 17, 2014 at 17:00 -0700: > In message <20140517162513.gg43...@funkthat.com>, > John-Mark Gurney wrote: > > >Ronald F. Guilmette wrote this message on Fri, May 16, 2014 at 12:38 -0700: > >> > >> In messa

Re: GEOM_PART: Integrity check failed (ada2, MBR)

2014-05-17 Thread John-Mark Gurney
Ronald F. Guilmette wrote this message on Fri, May 16, 2014 at 12:38 -0700: > > In message <20140516130346.gb43...@funkthat.com>, > John-Mark Gurney wrote: > > >> The result of the above operations is as follows: > >> > >> May 15 21:53:33 segfau

Re: GEOM_PART: Integrity check failed (ada2, MBR)

2014-05-16 Thread John-Mark Gurney
oblem... What do "diskinfo /dev/ada2" and "camcontrol identify ada2" return? If it really does return that the disk is only 31MB, we need to track this down, and this is why we're failing the integrity check of the MBR.. Thanks. -- John-Mark Gurney

Re: Recreating a GPT

2014-05-04 Thread John-Mark Gurney
/resources... > > gpart backup produces plain text that can be manually created. I'd > > still rather let gpart deal with the disk directly by using gpart create > > and add commands. > I'm under the assumption that 'gpart create' will do more than > &

Re: editing geli code to write something in a file

2014-03-02 Thread John-Mark Gurney
D8C.7000605 -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." ___ freebsd-geom@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/free

Re: geom_uzip, panic: bio_length in mdstart_vnode()

2013-12-10 Thread John-Mark Gurney
Konstantin Belousov wrote this message on Thu, Dec 05, 2013 at 10:25 +0200: > On Wed, Dec 04, 2013 at 06:07:43PM -0800, John-Mark Gurney wrote: > > Konstantin Belousov wrote this message on Wed, Dec 04, 2013 at 18:20 +0200: > > > On Wed, Dec 04, 2013 at 01:59:52PM +0100,

Re: geom_uzip, panic: bio_length in mdstart_vnode()

2013-12-04 Thread John-Mark Gurney
d really uses pbuf, and since geom_uzip knows nothing > about unmapped bio, the assertion must not trigger. Ummm... what's the point of MAXPHYS if we allow IO larger than it? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been do

Re: root mount failure in freebsd 9.2 encrypted disk!

2013-11-23 Thread John-Mark Gurney
n gpt partitions(and don't know > why!). After all, I have decided to back to mbr because have not found any > particular reason to stay on gpt scheme and everything is OK with mbr > scheme. > > Thank you for your useful guides :) With out actual information, I can't h

Re: root mount failure in freebsd 9.2 encrypted disk!

2013-11-23 Thread John-Mark Gurney
h bagade wrote this message on Sat, Nov 23, 2013 at 09:14 +0330: > On Thu, Nov 21, 2013 at 11:36 PM, John-Mark Gurney wrote: > > > h bagade wrote this message on Thu, Nov 21, 2013 at 12:24 +0330: > > > On Thu, Nov 21, 2013 at 11:37 AM, John-Mark Gurney > > wrote: &

Re: FreeBSD-10 microdrive seagate ST1AT 4GB (VIA mbo) problem

2013-11-21 Thread John-Mark Gurney
> >> > > >> > > >> http://pastebin.com/x5MinNQz > > >> > > >> why FreeBSD doesn't find microdrive when it has partitions or partition > > >> schemas ? > > >> > > >> Beri > > >> > >

Re: root mount failure in freebsd 9.2 encrypted disk!

2013-11-21 Thread John-Mark Gurney
h bagade wrote this message on Thu, Nov 21, 2013 at 12:24 +0330: > On Thu, Nov 21, 2013 at 11:37 AM, John-Mark Gurney wrote: > > > h bagade wrote this message on Thu, Nov 21, 2013 at 11:16 +0330: > > > I've tried to encrypt my disk in freebsd 9.2 based on the follo

Re: root mount failure in freebsd 9.2 encrypted disk!

2013-11-21 Thread John-Mark Gurney
now, don't be disappointed w/ the performance of geli in 9.2... I plan on back porting the changes I've made to HEAD back to 9 at some point, and then you'll finally get decent performance.. Most of my changes will be in 10.0-R, we'll see if the my l

Re: GELI Passphrase Providers

2013-11-08 Thread John-Mark Gurney
ks, and if it would work well for geli devices that ask for passphrases on boot.. P.S. Apparently a lot more people are using geli that I suspected. I'm happy that this is happening, but we have a lot of work to make it more usable. Thanks! -- John-Mark Gurney

Re: GEOM mentor request

2013-11-01 Thread John-Mark Gurney
er write could come in and complete on the second drive before the first IO completes breaking the assumptions that UFS+S and ZFS about how/when IO gets committed to the disk... Also, depending upon the write load, it could be the HD is faster than the SSD if there was a l

Re: GEOM mentor request

2013-11-01 Thread John-Mark Gurney
wanted to fix. Though I'm volunteering to help, don't forget that most patches should still be reviewed publicly, so you'll want to keep working on the -geom mailing list. Thanks for your interest and work. -- John-Mark Gurney Voice: +1 415 225 5579

Re: keyfile on another HDD.

2012-12-24 Thread John-Mark Gurney
s are similar... > > would like to read key from a file for partition, which holds root file > > system (so you need the key after the kernel is loaded, but before root > > file system is mounted) then no, it is not currently possible. Key can > :-( -- John-Mark Gurney

Re: geli and BIO_FLUSH and/or BIO_ORDERED issue?

2012-09-23 Thread John-Mark Gurney
Pawel Jakub Dawidek wrote this message on Sun, Sep 23, 2012 at 08:43 +0200: > On Sat, Sep 22, 2012 at 09:48:28PM -0700, John-Mark Gurney wrote: > > Pawel Jakub Dawidek wrote this message on Sat, Sep 22, 2012 at 18:20 +0200: > > > On Tue, Sep 18, 2012 at 09:04:30PM -0700, John

Re: geli and BIO_FLUSH and/or BIO_ORDERED issue?

2012-09-22 Thread John-Mark Gurney
Pawel Jakub Dawidek wrote this message on Sat, Sep 22, 2012 at 18:20 +0200: > On Tue, Sep 18, 2012 at 09:04:30PM -0700, John-Mark Gurney wrote: > > I was looking at geli and I'm not sure if it's implementing BIO_FLUSH > > and/or BIO_ORDERED properly... > > &g

geli and BIO_FLUSH and/or BIO_ORDERED issue?

2012-09-18 Thread John-Mark Gurney
n that a _FLUSH is immediately dispatched, even when there may be _WRITEs that haven't been finished encrypting and sent down to the disk to get _FLUSHed... Any comments about this? Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, ha

Re: RFC: GEOM MULTIPATH rewrite

2011-11-01 Thread John-Mark Gurney
the man page if someone comes up w/ a good list of points. Are the ones I listed above enough? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." ___ fr

Re: RFC: Project geom-events

2011-10-05 Thread John-Mark Gurney
n... > But such situations, IMHO, are not very often ones. Won't gmirror still report COMPLETE after a gmirror remove? So the script can look at the gmirror device, and see that it is still complete even though one of the providers were dropped and assume it was an administrative comm