Skip to content

Instantly share code, notes, and snippets.

View shashank855's full-sized avatar

Shashank Ranjan shashank855

  • MayaData
  • bengaluru
View GitHub Profile
@shashank855
shashank855 / linklist.c
Created January 13, 2018 10:17
Doubly linklist Implementation in c

To install the module for the RTL8723DE chipset, first determine your kernel using uname -r if your kernel is lower than 4.11, do

sudo apt-get install build-essential dkms git
git clone -b 4.10-down https://github.com/jeremyb31/rtl8723de.git
sudo dkms add ./rtl8723de
sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

Then reboot

# update
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install curl -y
sudo apt-get install wget -y
# Install vs code
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
I0422 06:36:45.819869 9 unixsock.go:47] Client got: REPLICA {"volumeStatus":[{"name":"pvc-e069fd37-fa38-11e9-b8bb-0050569876a2","status":"Healthy","replicaStatus":[{"replicaId":"9737481031741255553","Address":"172.20.15.240","Mode":"Healthy","checkpointedIOSeq":"22406722","inflightRead":"0","inflightWrite":"0","inflightSync":"0","quorum":"1","upTime":13463},{"replicaId":"10152843271054983687","Address":"172.20.12.180","Mode":"Healthy","checkpointedIOSeq":"22406722","inflightRead":"0","inflightWrite":"0","inflightSync":"0","quorum":"1","upTime":13462},{"replicaId":"2332608751544743781","Address":"172.20.11.37","Mode":"Healthy","checkpointedIOSeq":"22406722","inflightRead":"0","inflightWrite":"0","inflightSync":"0","quorum":"1","upTime":13461}]}]}
OK REPLICA
I0422 06:36:45.819954 9 unixsock.go:53] Appending line to resp: REPLICA {"volumeStatus":[{"name":"pvc-e069fd37-fa38-11e9-b8bb-0050569876a2","status":"Healthy","replicaStatus":[{"replicaId":"9737481031741255553","Address":"172.20.15.240","Mode"
root@mlrack1:~# kubectl logs pvc-e069fd37-fa38-11e9-b8bb-0050569876a2-target-75f846c98c5w4kk -n openebs -ccstor-istgt
* Starting enhanced syslogd rsyslogd
...done.
Disabling dumping core
2020-04-15/13:36:13.294 main :3106: m#-1580050496.8 : istgt:0.5.20121028:04:15:25:Apr 14 2020: starting
2020-04-15/13:36:13.295 main :3154: m#-1580050496.8 : istgt:0.5.20121028:04:15:25:Apr 14 2020 read config mode:1 gcc-atomic
2020-04-15/13:36:25.213 istgt_reload :2158: u#10.139649213265664: reload configuration#1 start [istgt:0.5.20121028:04:15:25:Apr 14 2020]
2020-04-15/13:36:25.214 istgt_pg_update :2327: m#-1580050496.8 : update PG1
root@mlrack1:~# kubectl logs cstor-disk-gitlab-0btn-6b6b565f94-lr9zp -n openebs -ccstor-pool
Disabling dumping core
sleeping for 2 sec
2020-04-15/13:16:03.832 disabled auto import (reading of zpool.cache)
physmem = 1048576 pages (4.00 GB)
2020-04-15/13:16:23.380 zvol cstor-026b3756-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2 status change: DEGRADED -> DEGRADED
2020-04-15/13:16:23.380 zvol cstor-026b3756-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2 rebuild status change: INIT -> INIT
2020-04-15/13:16:23.381 Instantiating zvol cstor-026b3756-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2
2020-04-15/13:16:23.386 [tgt 172.21.253.64:6060:17]: Connected
root@mlrack1:~# kubectl logs cstor-disk-gitlab-o0il-7454df65dc-6wt8n -n openebs -ccstor-pool
Disabling dumping core
sleeping for 2 sec
2020-04-15/13:18:11.456 disabled auto import (reading of zpool.cache)
physmem = 1048576 pages (4.00 GB)
2020-04-15/13:18:30.036 zvol cstor-01f8e95b-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2 status change: DEGRADED -> DEGRADED
2020-04-15/13:18:30.036 zvol cstor-01f8e95b-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2 rebuild status change: INIT -> INIT
2020-04-15/13:18:30.145 Instantiating zvol cstor-01f8e95b-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2
2020-04-15/13:18:30.149 [tgt 172.21.253.64:6060:16]: Connected
2020-04-15/13:18:30.150 zvol cstor-01f8e95b-344a-11e9-816f-0050569876a2/pvc-6a48c495-3457-11e9-816f-0050569876a2 status change: DEGRADED -> DEGRADED
root@mlrack1:~# kubectl logs cstor-disk-gitlab-qwj9-6c645b4685-5glkb -n openebs -ccstor-pool
Disabling dumping core
sleeping for 2 sec
2020-04-15/13:20:16.590 disabled auto import (reading of zpool.cache)
physmem = 1048576 pages (4.00 GB)
2020-04-15/13:20:34.725 zvol cstor-eb57e5a7-344c-11e9-816f-0050569876a2/pvc-7193bd1f-3457-11e9-816f-0050569876a2 status change: DEGRADED -> DEGRADED
2020-04-15/13:20:34.725 zvol cstor-eb57e5a7-344c-11e9-816f-0050569876a2/pvc-7193bd1f-3457-11e9-816f-0050569876a2 rebuild status change: INIT -> INIT
2020-04-15/13:20:34.726 Instantiating zvol cstor-eb57e5a7-344c-11e9-816f-0050569876a2/pvc-7193bd1f-3457-11e9-816f-0050569876a2
2020-04-15/13:20:34.728 [tgt 172.21.27.190:6060:17]: Connected
2020-04-15/13:20:34.729 [tgt 172.21.27.190:6060:17]: Handshake command for zvol pvc-7193bd1f-3457-11e9-816f-0050569876a2
@shashank855
shashank855 / gist:d91a2255e770ca3f5b2829480228bdbf
Created April 23, 2020 12:11
cstor-disk-gitlab-u4qx-67bdd7d787-nqvd2
root@mlrack1:~# kubectl logs cstor-disk-gitlab-u4qx-67bdd7d787-nqvd2 -n openebs -ccstor-pool
Disabling dumping core
sleeping for 2 sec
2020-04-15/13:22:25.794 disabled auto import (reading of zpool.cache)
physmem = 1048576 pages (4.00 GB)
2020-04-15/13:22:45.309 zvol cstor-023de05a-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2 status change: DEGRADED -> DEGRADED
2020-04-15/13:22:45.309 zvol cstor-023de05a-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2 rebuild status change: INIT -> INIT
2020-04-15/13:22:45.310 Instantiating zvol cstor-023de05a-344a-11e9-816f-0050569876a2/pvc-e069fd37-fa38-11e9-b8bb-0050569876a2
2020-04-15/13:22:45.314 [tgt 172.21.253.64:6060:18]: Connected
2020-04-15/13:22:45.315 [tgt 172.21.253.64:6060:18]: Handshake command for zvol pvc-e069fd37-fa38-11e9-b8bb-0050569876a2
root@gitlab-k8s-master:~# kubectl logs -f velero-9f8495b76-6phvs -n velero
time="2020-04-23T12:25:47Z" level=info msg="setting log-level to INFO" logSource="pkg/cmd/server/server.go:168"
time="2020-04-23T12:25:47Z" level=info msg="Starting Velero server v1.1.0 (a357f21aec6b39a8244dd23e469cc4519f1fe608)" logSource="pkg/cmd/server/server.go:170"
time="2020-04-23T12:25:47Z" level=info msg="registering plugin" command=/velero kind=BackupItemAction logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/pod
time="2020-04-23T12:25:47Z" level=info msg="registering plugin" command=/velero kind=BackupItemAction logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/pv
time="2020-04-23T12:25:47Z" level=info msg="registering plugin" command=/velero kind=BackupItemAction logSource="pkg/plugin/clientmgmt/registry.go:100" name=velero.io/service-account
time="2020-04-23T12:25:47Z" level=info msg="registering plugin" command=/velero kind=VolumeSnapshotter logSource="pkg/plugin/clientmgmt/registry.go:100" n