Skip to content

Instantly share code, notes, and snippets.

View beheerderdag's full-sized avatar

Sharif Islam beheerderdag

View GitHub Profile
@beheerderdag
beheerderdag / metalnx.md
Last active April 16, 2019 13:33
metalnx install notes
@beheerderdag
beheerderdag / irods_audit_curl
Created October 12, 2018 12:45
curl irods audit
curl -s -XGET 'localhost:9200/irods_audit/_search?pretty' -H 'Content-Type: application/json' -d'
{
"_source": [ "@timestamp", "user_user_name", "obj_path" ],
"sort" : [
{"@timestamp":{"order": "asc"}}
],
"size" :10000,
"query": {
"bool": {
"must": [
-bash-4.2$ ils -l
/tempZone/home/rods/testirodsgit:
rods 0 rnd0;st_ufs0 104857600 2018-09-24.14:53 & testfile
rods 0 rnd0;st_ufs0 104857600 2018-09-24.15:09 & testfile.1
-bash-4.2$ git annex init
init ok
(Recording state in git...)
-bash-4.2$ git-annex initremote REMOTIRODSFOLDER1 type=external externaltype=irods directory=/tempZone/home/rods/testirodsgit encryption=none
@beheerderdag
beheerderdag / gist:d73ff107d52762a04ce03dfad4360bb5
Last active July 19, 2018 07:23
irods-cockroachdb install
Environment
[root@145 ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
install cockroach db
wget -qO- https://binaries.cockroachdb.com/cockroach-v2.0.4.linux-amd64.tgz | tar xvz
cp -i cockroach-v2.0.4.linux-amd64/cockroach /usr/local/bin
Add the renci repo
Create a 5GB test file:
$ dd if=/dev/zero of=maketest.dat bs=1M count=5001
5001+0 records in
5001+0 records out
5243928576 bytes (5.2 GB) copied, 4.40052 s, 1.2 GB/s
upload with verbose and progress option when the upload starts after 10% or so stop irods (have another windown open)
rods$ sleep 5; iput -kvP maketest.dat
@beheerderdag
beheerderdag / gist:de32fb5067da7234d579d00586388642
Last active November 1, 2017 12:54
irods-b2stage-gridftp-make-error
irods-4.18 and lateest b2stage-gridftp.
root# make
[ 10%] Building C object CMakeFiles/globus_gridftp_server_iRODS.dir/DSI/globus_gridftp_server_iRODS.c.o
/home/rods/iRODS_DSI/B2STAGE-GridFTP/DSI/globus_gridftp_server_iRODS.c: In function globus_l_gfs_iRODS_start:
/home/rods/iRODS_DSI/B2STAGE-GridFTP/DSI/globus_gridftp_server_iRODS.c:706: error: too few arguments to function clientLogin
make[2]: *** [CMakeFiles/globus_gridftp_server_iRODS.dir/DSI/globus_gridftp_server_iRODS.c.o] Error 1
make[1]: *** [CMakeFiles/globus_gridftp_server_iRODS.dir/all] Error 2
make: *** [all] Error 2
# CONFIG
rods$ cat /etc/gridftp.conf
# globus-gridftp-server configuration file
# this is a comment
# option names beginning with '$' will be set as environment variables, e.g.
$GLOBUS_ERROR_VERBOSE 1
$GLOBUS_TCP_PORT_RANGE 50000,51000
2017-03-29T09:18:17Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:18:28Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:18:53Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:19:06Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:19:19Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:20:11Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:20:34Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:21:01Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:21:37Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
2017-03-29T09:21:48Z E! ERROR: input [inputs.diskio] took lon
2017-03-29T08:42:25Z I! Starting Telegraf (version 1.2.1)
2017-03-29T08:42:25Z I! Loaded outputs: influxdb
2017-03-29T08:42:25Z I! Loaded inputs: inputs.disk inputs.mem inputs.swap inputs.system inputs.net inputs.ntpq inputs.cpu inputs.kernel inputs.processes inputs.diskio
2017-03-29T08:42:25Z I! Tags enabled: host=dmf
2017-03-29T08:42:25Z I! Agent Config: Interval:10s, Quiet:false, Hostname:"dmf", Flush Interval:10s
2017-03-29T08:44:28Z E! ERROR: input [inputs.diskio] took longer to collect than collection interval (10s)
SIGQUIT: quit
PC=0x464071 m=0
goroutine 0 [idle]: