root@srsouthp06:/var/log# lsblk
NAME                  MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                     8:0    0   2.7T  0 disk
├─sda1                  8:1    0  18.6G  0 part /
├─sda2                  8:2    0   3.7G  0 part [SWAP]
└─sda3                  8:3    0   2.7T  0 part
  └─lvm-backup (dm-0) 254:0    0   8.2T  0 lvm  /home
sdb                     8:16   0   2.7T  0 disk
└─sdb1                  8:17   0   2.7T  0 part
  └─lvm-backup (dm-0) 254:0    0   8.2T  0 lvm  /home
sdc                     8:32   0   2.7T  0 disk
└─sdc1                  8:33   0   2.7T  0 part
  └─lvm-backup (dm-0) 254:0    0   8.2T  0 lvm  /home
sdd                     8:48   0   5.5T  0 disk
[20354456.836296] end_request: I/O error, dev sdc, sector 2884604760
[20354456.836339] Buffer I/O error on device dm-0, logical block 1093140587
root@srsouthp06:/var/log# pvcreate /dev/sdd
  Writing physical volume data to disk “/dev/sdd”
  Physical volume “/dev/sdd” successfully created
root@srsouthp06:/var/log# vgs
  VG   #PV #LV #SN Attr   VSize VFree
  lvm    3   1   0 wz–n- 8.17t    0
root@srsouthp06:/var/log# vgextend lvm /dev/sdd
  Volume group “lvm” successfully extended
root@srsouthp06:/var/log# pvmove /dev/sdc1 /dev/sdd
  /dev/sdc1: Moved: 0.0%
takes long time
vgreduce lvm /dev/sdc1
to extend if the disk was larger
lvextend -L+2.44T /dev/lvm/backup /dev/sdc
pvdisplay -v
resize2fs /dev/mapper/lvm-backup

UPDATE `accounts_cstm` ca, recovery re SET ca.accounttypetwo_c = ‘Project Owner’ WHERE re.ID = ca.id_c;

SELECT * FROM `accounts_cstm` WHERE `accounttypetwo_c` LIKE ‘Proj%’

http://pgtune.leopard.in.ua/

PGTune calculate configuration for PostgreSQL based on the maximum performance for a given hardware configuration. It isn’t a silver bullet for the optimization settings of PostgreSQL. Many settings depend not only on the hardware configuration, but also on the size of the database, the number of clients and the complexity of queries, so that optimally configure the database can only be given all these parameters.

ldapsearch -x -b 'dc=southpolecarbon,dc=com' -D 'cn=admin,dc=southpolecarbon,dc=com' '(uid=pweber)' -W -LLL

ldapadd -x -D 'cn=admin,dc=southpolecarbon,dc=com' -W -f adduser.ldif



dn: uid=atesto,ou=people,dc=southpolecarbon,dc=com
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: posixAccount
sn: Testo
givenName: Alfonso
description: Alfonso Testo
shadowLastChange: 0
shadowWarning: 14
gidNumber: 10000
gecos: Patrick Weber
uid: atesto
homeDirectory: /home/samba-user-home/atesto
loginShell: /bin/false
cn: Alfonso Testo
uidNumber: 20000
displayName: Alfonso Test
userPassword:: efjlkajfdsafjösfjökafödfjalfjdl
title: Project Developper
mail: a.testo@southpole.com
telephoneNumber: +41 078 662 59 55
l: Zurich
businessCategory: Projects

change loglevel

cd /root/
ldapmodify -Y external -H ldapi:/// -D 'cn=config' -f loglevel64.ldif
ldapmodify -Y external -H ldapi:/// -D 'cn=config' -f loglevel0.ldif


Die aktuelle Einstellung kann man so sehen:
ldapsearch -LLL -Q -Y EXTERNAL -H ldapi:/// -b cn=config  olcLoglevel

mysql -u sugaruser -p
use sugarcrm_prod;

truncate contacts;
truncate contacts_audit;
truncate contacts_bugs;
truncate contacts_cases;
truncate contacts_cstm;
truncate contacts_users;

truncate leads;
truncate leads_audit;
truncate leads_cstm;

truncate opportunities;
truncate opportunities_audit;
truncate opportunities_contacts;
truncate opportunities_cstm;

truncate accounts;
truncate accounts_audit;
truncate accounts_cstm;

first app

sudo apt install git
sudo apt install mongod
sudo apt install mongodb
mongod --version
sudo systemctl status mongodb
sudo apt install nginx 
sudo apt install nodejs npm 
node -v 
mkdir first
cd first 
npm init 
npm install express --save
--------
var express = require('express');
var app = express();

app.get('/', function (req, res) {
  res.send('Hello World!');
});
------------

app.listen(3000, function () {
  console.log('Example app listening on port 3000!');
});

location ~ \.php { proxy_pass http://127.0.0.1:8000; }
node app.js

https://southpole.beanstalkapp.com/repositories/first/help
SELECT e.email_address, c.id, c.first_name, c.last_name, a.name, ca.reportingto_c, ca.commitments_c
FROM `accounts_cstm` ca, accounts_contacts ac, accounts a, contacts c, email_addr_bean_rel b, email_addresses e
WHERE (ca.reportingto_c ='^CDP^' OR ca.commitments_c IN ('^Science based targets^','^TCFD^','^RE100^')) AND ca.id_c=ac.account_id AND ca.id_c=a.id AND c.id=ac.contact_id AND b.bean_module='Contacts' AND b.bean_id=c.id AND b.email_address_id=e.id