mysql tablesize

SELECT table_schema as `Database`, table_name AS `Table`, round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES ORDER BY (data_length + index_length) DESC;

mysql cache check

SHOW GLOBAL VARIABLES LIKE „long_query_time“; SHOW VARIABLES LIKE ‚%query_cache%‘; SHOW VARIABLES LIKE ‚%query%‘; SET GLOBAL general_log = 0; SHOW VARIABLES LIKE ‚%general_log%‘; SET GLOBAL slow_query_log = 1; SET GLOBAL query_cache_size = 0; SET @@GLOBAL.long_query_time = 1; SHOW STATUS LIKE ‚Qcache%‘; Read more ›

glusterfs

/etc/hostsbsp: 127.0.0.1 localhost localhost.localdomain www3::1 localhost localhost.localdomain localhost6 localhost6.localdomain610.xxx.xxx.xxx www110.xxx.xxx.xxx www210.xxx.xxx.xxx wplb cluster10.xxx.xxx.xxx wpdb mkdir -p /data/brick1yum install xfsprogs xfsdumpmkfs.xfs -i size=512 /dev/sdb2echo ‚/dev/sdb2 /data/brick1 xfs defaultsnoatime 1 2‘ >> /etc/fstabmount -a # CENTOSyum install epel-releasewget -P /etc/yum.repos.d http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/glusterfs-epel.repoyum install glusterfs-serverservice glusterd startservice glusterd statuschkconfig glusterd Read more ›

virsh / virt cmnds.

virsh list –allvirsh start/edit/shutdown [guest-name]virt-topvirsh  dumpxml [guest-name] > /vm-images/config/[guest-name].xml consolevirsh console [guest-name]console verlassen (MacOS)ctlr-alt-6 ggfs. auch ctlr-alt-(shift)-6f

NFS startet nicht

Kontrolle der Dienste:service –status-all | grep rpc vermutliche Ausgabe:rpc.svcgssd wurde beendetrpc.mountd wurde beendetrpc.statd tot, aber PID-Datei existiertrpcbind wurde beendetrpc.gssd wurde beendetrpc.idmapd wurde beendetrpc.svcgssd wurde beendet .pid in /var/run/ löschen.