Re: [CentOS] best ways to do mysql backup

2010-08-15 Thread Tang Jianwei

why not mysqldump + binlog + rsync?

Tang Jianwei


On 08/15/2010 03:51 AM, Agnello George wrote:
we have multiple servers approx 10   and each has about 100 GB of data 
in the /var/lib/mysql dir , excluding tar , mysqldump and replication 
how do we take backup for these databases on to a remote machine and 
store them datewise , ( the remote machine is a 2TB  HDD )


currently tar  is not feasible as the data is too huge  and  the same 
goes with mysqldump


suggestion will be of great help

--
Regards
Agnello D'souza



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] uuid problem while compiling glue

2010-08-14 Thread Tang Jianwei
well,  the problem you found can be resolve like this:

edit lib/stonith/main.c by comment of the contents about the version();

Tang Jianwei


On 08/14/2010 01:41 PM, JohnS wrote:
 On Sat, 2010-08-14 at 11:07 +0800, Tang Jianwei wrote:


 what should I do to fix those problems?
  
 ---
 Try  try again  don't build it as root  ask on the linux-ha
 LIST...
 Full CentOS/RH 5.5 + epel repo should build it.  No EL6 packages are
 needed.  But if you try to build the EL6 version one it will not.  Build
 Requires get you

 glue-1.0.6.tar.bz from http://www.linux-ha.org/wiki/Download
 autogen.sh; configure; make

 cc1: warnings being treated as errors
 main.c:64: warning: function declaration isn't a prototype
 main.c:78: warning: function declaration isn't a prototype
 gmake[2]: *** [main.o] Error 1
 gmake[2]: Leaving directory
 `/home/foo/rpmbuild/BUILD/cluster-glue/lib/stonith'
 gmake[1]: *** [all-recursive] Error 1
 gmake[1]: Leaving directory `/home/foo/rpmbuild/BUILD/cluster-glue/lib'
 make: *** [all-recursive] Error 1
 error: Bad exit status from /var/tmp/rpm-tmp.55884 (%build)
 
 Now:
 %configure \
  --enable-fatal-warnings=no \  # here is the key redhat disables this
  --with-daemon-group=%{gname} \
  --with-daemon-user=%{uname} \
  --localstatedir=%{_var} \
  --libdir=%{_libdir}

 rpmbuild -ba cluster-glue.spec

 Checking for unpackaged
 file(s): /usr/lib/rpm/check-files /var/tmp/cluster-glue-1.0.6-1.el5-x32679
 Wrote: /home/foo/rpmbuild/SRPMS/cluster-glue-1.0.6-1.el5.src.rpm
 Wrote: /home/foo/rpmbuild/RPMS/i386/cluster-glue-1.0.6-1.el5.i386.rpm
 Wrote: 
 /home/foo/rpmbuild/RPMS/i386/cluster-glue-debuginfo-1.0.6-1.el5.i386.rpm
 Wrote: /home/foo/rpmbuild/RPMS/i386/cluster-glue-libs-1.0.6-1.el5.i386.rpm
 Wrote: 
 /home/foo/rpmbuild/RPMS/i386/cluster-glue-libs-devel-1.0.6-1.el5.i386.rpm
 --
 Does it work?  I do not know.  I just thought I would kick it around
 since it interested me.

 John



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] uuid problem while compiling glue

2010-08-13 Thread Tang Jianwei
Hi guys

 I got the errors like this while compiling cluster glue:

./.libs/libplumb.so: undefined reference to `uuid_parse'
./.libs/libplumb.so: undefined reference to `uuid_generate'
./.libs/libplumb.so: undefined reference to `uuid_copy'
./.libs/libplumb.so: undefined reference to `uuid_is_null'
./.libs/libplumb.so: undefined reference to `uuid_unparse'
./.libs/libplumb.so: undefined reference to `uuid_clear'
./.libs/libplumb.so: undefined reference to `uuid_compare'
collect2: ld returned 1 exit status
gmake[2]: *** [ipctest] Error 1
gmake[2]: Leaving directory 
`/root/Reusable-Cluster-Components-glue-1.0.5/lib/clplumbing'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/Reusable-Cluster-Components-glue-1.0.5/lib'
make: *** [all-recursive] Error 1


and here is the output when I run ./configure:

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

cluster-glue configuration:
   Version  = 1.0.6 (Build: 
1c87a0c58c59fc384b93ec11476cefdbb6ddc1e1)
   Features =

   Prefix   = /usr
   Executables  = /usr/sbin
   Man pages= /usr/man
   Libraries= /usr/lib
   Header files = /usr/include
   Arch-independent files   = /usr/share
   Documentation= /usr/share/doc
   State information= /usr/var
   System configuration = /usr/etc

   Use system LTDL  = no

   HA group name= haclient
   HA user name = hacluster

   CFLAGS   = -g -O2 -ggdb3 -O0  -fgnu89-inline 
-fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual 
-Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal 
-Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes 
-Wmissing-declarations -Wmissing-format-attribute -Wnested-externs 
-Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes 
-Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror
   Libraries= -lbz2 -lxml2 -lc -lrt -ldl  -L/lib -lglib-2.0
   Stack Libraries  =


I found that some one said that maybe I need libuuid-devel. but when I 
tried to install libuuid-2.17.2-4.el6.i686.rpm and  
libuuid-devel-2.17.2-4.el6.i686.rpm

I still got this:

# rpm -ihv libuuid-2.17.2-4.el6.i686.rpm 
libuuid-devel-2.17.2-4.el6.i686.rpm
warning: libuuid-2.17.2-4.el6.i686.rpm: Header V3 RSA/SHA256 signature: 
NOKEY, key ID f21541eb
error: Failed dependencies:
 rpmlib(FileDigests) = 4.6.0-1 is needed by libuuid-2.17.2-4.el6.i686
 rpmlib(PayloadIsXz) = 5.2-1 is needed by libuuid-2.17.2-4.el6.i686
 rpmlib(FileDigests) = 4.6.0-1 is needed by 
libuuid-devel-2.17.2-4.el6.i686
 rpmlib(PayloadIsXz) = 5.2-1 is needed by 
libuuid-devel-2.17.2-4.el6.i686

what should I do to fix those problems?

you will be very appreciated for any suggestion.

thank you

-- 
Tang Jianwei

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] why i can not put my swap files in /dev?

2010-07-06 Thread Tang Jianwei
I tried to create some swap files in /dev directory for my desktop.
the dd and mkswap were ok. but when I try to swapon it, i get this:

# swapon /dev/myswap
swapon: /dev/myswap: Invalid argument

but when I mv the file to some other directory like /mnt or /, the 
swapon works.

could sb. tell me why?

-- 
Tang Jianwei

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] why i can not put my swap files in /dev?

2010-07-06 Thread Tang Jianwei

Thank you and Mogens. and I also think this is the cause.

Tang Jianwei


On 07/06/2010 06:50 PM, Eero Volotinen wrote:

/dev/* is virtual directory containing all devices, not files. create
your swap on disk devices (/dev/sdXX, not in empty space)
   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] why i can not put my swap files in /dev?

2010-07-06 Thread Tang Jianwei
In the past I only heard that /proc and /sys are RAM directories, now 
I get /dev as well. thank you.


Tang Jianwei


On 07/06/2010 10:14 PM, John Kennedy wrote:



On Tue, Jul 6, 2010 at 10:01 AM, m.r...@5-cent.us 
mailto:m.r...@5-cent.us wrote:


Jerry McAllister wrote:
 On Tue, Jul 06, 2010 at 06:41:06PM +0800, Tang Jianwei wrote:

 I tried to create some swap files in /dev directory for my desktop.
 the dd and mkswap were ok. but when I try to swapon it, i get this:

 # swapon /dev/myswap
 swapon: /dev/myswap: Invalid argument

 but when I mv the file to some other directory like /mnt or /, the
 swapon works.

 could sb. tell me why?

Well, /dev is *not* a good place for anything but device files.

 /dev is not a real directory for data files.
snip
Um, er, what do you mean about it not being a real directory?

 mark


I would say he means real as exists on a hard drive like /home of 
/var as opposed to virtual as exists in RAM like /proc.

John
--
John Kennedy


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
   
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos