Kategorije
- admin (14)
- android (1)
- chromebook (1)
- drustvo (1)
- elektronika (3)
- linux (33)
- desktop (1)
- network (7)
- php (2)
- scripts (5)
- tehnologija (1)
- Uncategorized (1)
- windows (4)
Arhiva:
- May 2016 (1)
- August 2015 (1)
- July 2015 (1)
- December 2014 (2)
- October 2014 (2)
- July 2014 (1)
- March 2014 (1)
- January 2014 (1)
- September 2013 (4)
- August 2013 (9)
- July 2013 (1)
- March 2013 (1)
- December 2012 (1)
- November 2012 (1)
- October 2012 (3)
- May 2012 (4)
- March 2012 (1)
- November 2011 (1)
- October 2011 (1)
- August 2011 (1)
- May 2011 (1)
- February 2011 (1)
- November 2010 (1)
- September 2010 (1)
- December 2009 (2)
- October 2009 (1)
Blogroll
Monthly Archives: March 2014
lvm snapshot mysql data dir
#!/bin/bash ( echo "FLUSH TABLES WITH READ LOCK;" echo "\! lvcreate -L +10G -s -n snap_userdata /dev/vol01/userdata" echo "UNLOCK TABLES;" ) | mysql -u root if [ -e /dev/vol01/snap_userdata ]; then mount /dev/vol01/snap_userdata /mnt/snap_userdata/ fi#!/bin/bash ( echo "FLUSH … Continue reading
Posted in admin, scripts
Leave a comment