Load network block device module:
# modprobe nbd max_part=8
Poweroff machine:
# virsh destroy virtual-machine
SchemaSpy is a neat tool to produce visual diagrams for most relational databases.
Here's how to use it to generate schema relationship diagrams for PostgreSQL databases:
Download the jar file from here (the current version is v6.1.0)
Get the PostgreSQL JDBC driver (unless your installed version of java is really old, use the latest JDBC4 jar file)
Run the command against an existing database. For most databases, the schema (-s option) we are interested in is the public one:
#!/bin/bash | |
current=0 | |
completed=0 | |
read -r total _ < <(/bin/du -bc "${@:1:${#}-1}" | tail -n1) | |
/bin/cp $@ & | |
while (( current != total )); do |
#!/usr/bin/env bash | |
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2012-01-15 | |
# | |
# _______________| country : look-up country ISO code or currency symbol. | |
# | |
# Usage: country [term] ["iso"|"fx"] | |
# where "fx" is foreign exchange, | |
# "iso" is the default option, | |
# term is case-insensitive regular expression. | |
# |