-
darwin
perhaps you can automatically generate 'bloody releases' (for OmniOS CE or others with teams) daily, weekly, or monthly? At times I've seen them older than the current stable (as now) or even LTS releases...
-
darwin
or even let people get it from a version control system (VCS) and make their own .IMG/.ISO?
-
twobitsahead
Is it preferable to ask questions about dtrace on illumos in this channel, or in the #dtrace channel?
-
geekosaur
I'm trying to help someone port ghc 9.12.1 to OI, and because of limitations in a build tool I need to capture the stderr of gcc (I can't get it from the build tool, it's discarded if gcc exits nonzero and fixing that in the build tool will be fairly involved)
-
geekosaur
my understanding from the dtrace handbook was that /execname == "gcc" && args[0] == 2/ would be the correct condition, but dtrace is telling me I can't reference args in a predicate because it's variable. the manual tells me there's no if-then-else. is there some other way to limit output to only fd 2?
-
geekosaur
"dtrace: failed to compille script gcc-stderr.d: line 2: args[ ] may not be referenced because probe description syscall::write:return matches an unstable set of probes"
-
geekosaur
(uh, typo, I had to retype that out of my VM until I figure out how to make cut and paste work)
-
jbk
you could probably instead use the libc wrapper around the syscall.. just stash the pointer to the buffer on entry, then use it to dump the contents (using the return value for the length)
-
Guest22
Is this chat active?
-
megaTherion
sometimes
-
geekosaur
a lot of channels are somewhat less active right now because of the holiday
-
snek
my system is showing near 100% memory usage but htop/ps/etc don't show any processes using any large amounts of memory. how could i track this down?
-
geekosaur
probably a better question for a linux-related channel. it can mean e.g. open but unlinked files, but usually those get flushed to swap as needed
-
geekosaur
that said, well, the goal of memory management is to put memory to productive use, so near 100% memory usage without using swap is not necessarily a bad thing
-
snek
why a linux related channel?
-
geekosaur
(in my case, when memory usage gets high it's either some leaky MATE program or vmware, currently the latter because I've been using it a lot)
-
snek
and i wouldn't mind high memory usage... if it was attributed to something
-
geekosaur
oh wait, I'm in the wrong channel, sorry
-
geekosaur
#ilumos inserted itself before #xmonad in my IRC client 🙂
-
snek
ah but i use i3, sorry :P
-
geekosaur
meh. it's not like we're at war
-
geekosaur
about the only wm xmonad competes with is dwm, and that not very much
-
tsoome
if you have lots of unused memory then you have wasted your money:P
-
hadfl
in htop you can enable the "ZFS ARC" and/or "ZFS CARC" meters. which will show you how much memory zfs is using for its ARC. mind you, this memory will be released if something else needs it
-
Guest8
Hello, is anyone active? I need help with building illumos
-
tsoome
-
Guest8
Yeah
-
Guest8
but when i runned illumos.sh it immidiately turn off
-
tsoome
so what problem are you facing?
-
Guest8
1. I downloaded source code, 2. i added#
-
Guest8
# Set a package version number which is greater than the current OpenIndiana
-
Guest8
# build number.
-
Guest8
#
-
Guest8
export PKGVERS_BRANCH=9999.99.0.0
-
Guest8
#
-
Guest8
# Set Perl related variables:
-
Guest8
#
-
Guest8
PERL='/usr/perl5/bin/perl'
-
Guest8
export PERL_VERSION="$($PERL -e 'print $^V =~ /^v(5\.[^\.]*).*$/')"
-
Guest8
export PERL_PKGVERS="$($PERL -e 'print "-", $^V =~ /^v(5)\.([^\.]*).*$/')"
-
Guest8
export PERL_ARCH="$($PERL -MConfig -e 'print $Config{archname}')"
-
Guest8
export PERL_ARCH64="$PERL_ARCH"
-
Guest8
export BUILDPERL32="$($PERL -MConfig -e 'print $Config{ptrsize} == 4 ? "" : "#"')"
-
Guest8
export BUILDPERL64="$($PERL -MConfig -e 'print $Config{ptrsize} == 8 ? "" : "#"')"
-
tsoome
ah, you run it with ./usr/src/tools/scsripts/nightly illumos.sh
-
Guest8
nightly.sh? Should i edit something in it?
-
tsoome
no
-
tsoome
which distro are you using?
-
Guest8
OpenIndiana
-
Guest8
i can't find nightly illumos.sh script somehow
-
Guest8
i ain't gonna lie i don't really understand what to do after getting source
-
Guest8
:')
-
wiedi
you might have missed the "cp usr/src/tools/env/illumos.sh ." step from
illumos.org/docs/developers/build/#configuring-the-build
-
wiedi
then you can edit the copy if needed
-
wacki
@Guest8: The easiest way to build illumos-gate on OpenIndiana is to use its build system:
-
wacki
git clone
github.com/OpenIndiana/oi-userland ; cd oi-userland/components; gmake setup; cd openindiana/illumos-gate; gmake publish
-
Guest8
wacki and that's it?
-
Guest8
I'm trying it
-
wacki
Yes
-
tsoome
your user needs to be able to install missing packages (if there are any)
-
wacki
-
Guest8
Thanks
-
tsoome
hm. HTTP Error 504: Gateway Time-out from git pbchk
-
tsoome
ah.
illumos.org/issues is not responding.
-
nomad
I have a bit of a strange situation, wondering if any dev here wants to take a look at it. ...
-
nomad
Summary: tar of a .gz file exits without error but doesn't complete the process. Extracting the file returns error. Uncompressing the file results in a clean tar, as does recompressing the file.
-
nomad
Since I have a workaround (uncompress, recompress) I'm not overly fussed, just wanted to know if anyone wanted to take a look before I do it.
-
nomad
We are leaving it compressed because this is for a filesystem backup and we want things to be in the state they're in in the tarfile itself.
-
nomad
OS in question is OmniOS LTS (latest patch set)
-
sommerfeld
tsoome: also seeing slowness in gerrit and permission errors trying to review one of your proposed changes.
-
sommerfeld
nomad: jbk was looking at tar decompression recently (see
code.illumos.org/c/illumos-gate/+/3672 when gerrit is happy again)
-
sommerfeld
nomad: can you be specific about what you mean by "doesn't complete the process"? only extracts some of the files at the beginning of the compressed archive?
-
fenix
code review '3672' not found...
-
nomad
sommerfeld, when creating the tarfile it makes a much smaller file than expected. When extracting it reports "tar: directory checksum error" and exits with 2.
-
nomad
I have a full script that can show what I'm talking about, let me post it.
-
nomad
-
nomad
that script copies the .gz file into a scratch directory, tries to tar it and extract it, uncompresses, tars & extracts, recompresses, tars & extracts.
-
nomad
the past includes the script and the result.
-
nomad
in case I wasn't clear (I frequently fail at that) the initial tar fails but exits without error.
-
nomad
In the initial case where we discovered this problem it was obvious tar exited while dealing with this file as the resulting tarball is *way* too small to contain everything.
-
nomad
That's not in the testcase.'
-
sommerfeld
nomad: so this is not relevant to the error you're seeing, but bzip2 compressing a gzip'ed file strikes me as an odd choice. I'd expect better compression if you gave bzip2 the .csv file.
-
nomad
As I said, this is a test case brought up by trying to tar up a filesystem. We're archiving the filesystem elsewhere.
-
nomad
Changing the files in the filesystem isn't really an option.
-
nomad
I saw the tarball was very small and narrowed the problem down to this one file not being properly handled.
-
nomad
In theory I could fix this problem by merely having the owner extract and recompress the file but I thought it might be of interest to a dev to know there's a bug... somewhere.
-
nomad
I just copied the problem file to another fileserver running the same install of OmniOS and it tar'd up fine.
-
nomad
Now I'm trying it on a filesystem on that other fileserver with nbmand set to on to see if that changes anything.
-
jbk
are you accessing the file over smb?
-
nomad
all of these tests are local to the fileserver.
-
jbk
(nbmand should only matter for smb clients)
-
nomad
hmm. Ok. Interesting that scping the file was enough to 'fix' the problem.
-
nomad
The only difference I could find otherwase was nbmand=on in the source filesystem.
-
jbk
it might be interesting to dump the contents of that uncompressed block and the expected/calculated checksums
-
jbk
unfortunately, i think that'd require a modified tar binary to do so (at least easily)
-
nomad
I was hoping someone expert would come up with a dtrace or three :)
-
jbk
hrm... tar isn't built with ctf :(
-
nomad
another wild thing I'm testing is file ownership. The file copied to the other fileserver is owned by me, not by the original owner.
-
nomad
so now I'm re-running my test script on the original fileserver but with me as the owner of the example file.
-
nomad
I seriously doubt anything will change but <shrug>.
-
nomad
FTR: testing on the second fileserver with nbmand made no difference. The tarball created and extracted correctly.
-
nomad
as expected, changing file ownership on the original fileserver made no difference.
-
tsoome
I'm not sure why we are not building everything with ctf...
-
nomad
One detail I should have mentioned is that this file was created via a SMB/CIFS mount. Everything I'm trying is local to the host.
-
nomad
but because of ownerships and permissions on SMB/CIFS I'm doing all my tests as root unless otherwise specified.
-
nomad
The copy to the other fileserver is scp using Unix permissions/owernships.
-
nomad
and that's all done as a regular user.
-
jbk
it might be worth doing an ls -lV to compare
-
jbk
if created via SMB, there's likely ACLs attached to the file
-
nomad
well, the reason I bring that up is I just tested on the original fileserver by sudo cp the file to another filesystem (as all of my tests have done) then chown'ing the file to me.
-
nomad
and tar worked when I did everything else as me instead of as root.
-
nomad
cp -p that is.
-
nomad
the permissions on that file in situ match the permissions of other files in the same location.
-
nomad
(All of which tar just fine.)
-
sommerfeld
you're using the E ("extended headers") and "p" (save acls) options. I wonder if they play nice together.
-
sommerfeld
while we're looking at weird tar options, there's also an "i" ("ignore directory checksum errors") which might sweep this one under the rug.
-
sommerfeld
chances are the "recompression" part is a red herring; the real difference is an ACL change which affects what it does for "p"
-
jbk
also.. the way acls are saved via smb can vary a bit.. i was wondering if maybe there's some bad interaction there
-
jbk
IIRC, the 'subject' of an ACL can be a windows sid, or a uid/gid, but it can depend on your idmap setup
-
jbk
or i guess maybe to say it slightly differently, the same acl can potentially be expressed into different ways depending on idmap
-
jbk
err in two
-
nomad
that's undelightfully confusing.
-
nomad
At this point I've recopied the file, verified root tar/extract fails, then chown'd the file to me and am trying again as root.
-
nomad
Next I'll try changing permissions on the file.
-
jbk
basically if you have a windows user foo@domain that is also mapped to a unix user 'foo', and there's an acl targeting that user, it might be saved as either usersid:foo@domain:.... or user:foo:....
-
nomad
Here's the ls -lV on the file in question (in situ):
-
nomad
----------+ 1 sdaniel sysadmin 4958477085 Jul 24 2019 CHS_methylation_SWAN_2019July23.csv.gz
-
nomad
group:11706:rwxpdDaARWcCos:------I:allow
-
nomad
group:13116:rwxpd-aARWc--s:------I:allow
-
nomad
group:13115:r-x---a-R-c--s:------I:allow
-
jbk
which are stored as distinct things in zfs -- they'll get evaluated the same, but aren't byte equivalent on disk
-
jbk
(similarly iwth groups)
-
jbk
I could see a bug where an ACL could get implicitly 'converted' from one form to the other
-
jbk
which doesn't alter the effective permissions, but would change the actual encoding of it on disk
-
nomad
but why would it tar *part* of the file, then fail silently?
-
nomad
I could see it failing to open the file, or such.
-
nomad
or, why would it extract part of the file then error out with 'tar: directory checksum error'
-
jbk
also, it might be worth (for testing) trying without E and p flags (or just one and not the other) -- just to see if maybe it can be narrowed down to behavior with a specific flag
-
nomad
and mind you, the initial tar -c doesn't add any files after the questionable one.
-
nomad
I'll add that to my queue.
-
jbk
I think (but not 100% sure) the 'directory checksum' might be better read as 'header/entry' checkum
-
nomad
makes sense
-
nomad
it failed with just the chown, now testing with 'chmod u+r'.
-
nomad
then I'll try it without the two flags and see if anything changes. I'll narrow it down after.
-
jbk
for every file, it stores (mostly as more or less text) the mode, uid, gid, size, mtime, etc
-
jbk
and does a checksum of all of those
-
nomad
It wouldn't re-evaluate those in the middle of extracting the file, though, would it? It's dying 633M into the file.
-
nomad
Looking back at my original test, I am reminded of this:
-
nomad
adding the file: a CHS_methylation_SWAN_2019July23.csv.gz 4842263K
-
nomad
extracting the file: x CHS_methylation_SWAN_2019July23.csv.gz, 663509789 bytes, 1295918 tape blocks
-
nomad
the extracted file is the same size extracting says it will be... but maybe it prints that after extract finishes instead of before. I don't remember now.
-
nomad
nope, it prints it before extracting.
-
nomad
and the changed permission was sufficient if the extraction message is to be believed.
-
nomad
x CHS_methylation_SWAN_2019July23.csv.gz, 4958477085 bytes, 9684526 tape blocks
-
nomad
that's very different from "x CHS_methylation_SWAN_2019July23.csv.gz, 663509789 bytes, 1295918 tape blocks"
-
nomad
and sure enough, the extraction succeeds.
-
nomad
ok, time to try w/o -pE but with the original permissions.
-
richlowe
I feel like -- possibly -- you might want to try to debug this after the new year too
-
richlowe
when more folks are around/at work/etc.
-
nomad
richlowe, most likely, yes.
-
richlowe
so at least maybe don't do anything destructive yet :)
-
nomad
but maybe, just maybe, I can find a way to generate a file that will fail so more people can test against.
-
nomad
I can't share this file.
-
richlowe
that would be good, yes
-
richlowe
personally, I've never methylated a swan, so I wouldn't know what it meant anyway
-
richlowe
but I understand
-
nomad
oh no, I'm doing everything with 'cp -p' of the original file into a test filesystem.
-
nomad
I'm leaving prod as untouched as I possibly can.
-
nomad
It's genomic data of somesort.
-
nomad
I suppose I could try creating a huge file in windows and see if it has the same problem.
-
nomad
though that would mean creating a new filesystem with proper exports and then logging into a windows box. <sigh>
-
» nomad is not going to go creating new filesystems today, nope nope nope
-
nomad
x CHS_methylation_SWAN_2019July23.csv.gz, 4958477085 bytes, 9684526 tape blocks
-
nomad
that's without -pE in the create or extract flags.
-
nomad
I'll test the extract with -pE as soon as this finishes.
-
nomad
extracting with pE flags is successful. Now to create the tarball with just the E flag.
-
jbk
there are also some uninitialized variable warnings that are currently suppressed
-
jbk
i haven't looked at them closely, so might not be actual issues or relevant, but something else that could be contributing
-
nomad
I presume I'm not seeing them because they're suppressed. :)
-
nomad
at least, I hope that's why I haven't noticed them.
-
jbk
they're build warnings that are currently suppressed
-
nomad
whew. I was afraid I'd ignored them.
-
nomad
looks like 'p' is the flag that triggers the problem. Makes sense given the interplay with permissions.
-
nomad
I'm waiting for the tar xjvlpEf to finish so I can verify but it says it is extracting a file of the correct size.
-
nomad
yep, extraction is good (though, of course, permissions are wrong).
-
nomad
well damn. Now I have no faith at all in any of the tarballs created in the past 6 months.
-
nomad
I was able to replicate this problem fairly trivially.
-
nomad
source:
-
nomad
----------+ 1 lvd sysadmin 5369578871 Dec 31 13:24 hugefile.gz.hold
-
nomad
group:11706:rwxpdDaARWcCos:-------:allow
-
nomad
extracted result"
-
nomad
----------+ 1 lvd sysadmin 1074611575 Dec 31 13:24 hugefile.gz
-
nomad
group:11706:rwxpdDaARWcCos:-------:allow
-
nomad
one of these things is not like the other.
-
nomad
Here's my proposed problem ticket submission. Did I miss anything important?
pastebin.com/KArbQSxU
-
jbk
seems fine to me
-
nomad
Should I submit it now or wait for Thursday? I presume now is fine.
-
jbk
yeah, no reason to wait
-
sommerfeld
jbk, nomad: well, the illumos bug tracker appears to be off the air at the moment.
-
nomad
I was just about to ask if it were still down
-
jbk
oh hrm
-
nomad
since I'm timing out I guess I know the answer. :)
-
jbk
that sucks :(
-
nomad
Good thing I have this written up as a text file I can just cut & paste :)
-
jbk
apparently it decided it needed the holiday off as well :P
-
nomad
504 gateway timeout. How exciting.
-
sommerfeld
methylation is described here:
en.wikipedia.org/wiki/DNA_methylation - it looks to be an "off" switch for certain genes or some such.
-
nomad
(not)
-
sjorge
Happy new year everyone
-
nomad
you too
-
tsoome
Happy New Year!