mysql-5.1.60/libmysqld/embedded_priv.htar: mysql-5.1.60/libmysqld/embedded_priv.h: time stamp 2011-10-30 02:09:51 is 309950846.424678957 s in the futuretar: mysql-5.1.60/libmysqld: time stamp 2011-10-30 02:19:47 is 309951442.424618574 s in the futuretar: mysql-5.1.60: time stamp 2011-10-30 02:20:16 is 309951471.424596286 s in the future
后面发现原来是
tar time stamp in the future问题
在A机器上用tar压缩的文件,在B机器上进行解包的时候,如果两个机器的时间不一致,如B机器的时间落后A机器的时间,这时
就会出现time stamp in the future的问题。如何解决这个问题呢:
(1)一是检查B机器的时间,如果确有问题请修改B机器的时间(sudo date -s "YYYY-MM-DD HH:MM:SS")
(2)二是使用tar命令的-m参数,比如tar xmzf abc.tgz(-m, --touch, --modification-time【don't extract file modified time】)
大致意思就是suppress时间戳检查,而是使用新的系统时间进行解包,解包后的文件时间戳将是新的系统时间而不是原文件的时间戳了。
以上每一条都可以解决问题,比如第一条可以修改系统的时间超过原压缩包中文件的时间戳即可,而第二条完全不顾时间戳是什么,直接修改时间戳。
date -s 11/18/2013
date -s 11:10:53
这样在执行脚本或者tar 命令就不报错了!
/mem/mysql-5.1.60/storage/innobase/mem/mem0pool.cmysql-5.1.60/storage/innobase/mem/mem0mem.cmysql-5.1.60/storage/innobase/mem/mem0dbg.cmysql-5.1.60/storage/innobase/lock/mysql-5.1.60/storage/innobase/lock/lock0iter.cmysql-5.1.60/storage/innobase/lock/lock0lock.cmysql-5.1.60/storage/innobase/include/mysql-5.1.60/storage/innobase/include/srv0que.hmysql-5.1.60/storage/innobase/include/ha0ha.hmysql-5.1.60/storage/innobase/include/eval0proc.hmysql-5.1.60/storage/innobase/include/os0thread.hmysql-5.1.60/storage/innobase/include/row0vers.icmysql-5.1.60/storage/innobase/include/sync0arr.icmysql-5.1.60/storage/innobase/include/row0ins.icmysql-5.1.60/storage/innobase/include/db0err.hmysql-5.1.60/storage/innobase/include/dict0dict.hmysql-5.1.60/storage/innobase/include/ha0ha.icmysql-5.1.60/storage/innobase/include/eval0proc.icmysql-5.1.60/storage/innobase/include/ut0rnd.hmysql-5.1.60/storage/innobase/include/usr0sess.icmysql-5.1.60/storage/innobase/include/trx0undo.hmysql-5.1.60/storage/innobase/include/row0umod.icmysql-5.1.60/storage/innobase/include/pars0sym.icmysql-5.1.60/storage/innobase/include/buf0rea.hmysql-5.1.60/storage/innobase/include/dict0types.hmysql-5.1.60/storage/innobase/include/btr0sea.icmysql-5.1.60/storage/innobase/include/log0log.hmysql-5.1.60/storage/innobase/include/trx0rec.icmysql-5.1.60/storage/innobase/include/dict0boot.hmysql-5.1.60/storage/innobase/include/mem0pool.hmysql-5.1.60/storage/innobase/include/thr0loc.icmysql-5.1.60/storage/innobase/include/fsp0types.hmysql-5.1.60/storage/innobase/include/ut0dbg.hmysql-5.1.60/storage/innobase/include/sync0sync.hmysql-5.1.60/storage/innobase/include/pars0sym.hmysql-5.1.60/storage/innobase/include/srv0srv.icmysql-5.1.60/storage/innobase/include/rem0rec.hmysql-5.1.60/storage/innobase/include/trx0sys.icmysql-5.1.60/storage/innobase/include/mtr0mtr.icmysql-5.1.60/storage/innobase/include/ut0byte.icmysql-5.1.60/storage/innobase/include/row0umod.hmysql-5.1.60/storage/innobase/include/mem0pool.icmysql-5.1.60/storage/innobase/include/row0undo.hmysql-5.1.60/storage/innobase/include/row0row.hmysql-5.1.60/storage/innobase/include/lock0types.hmysql-5.1.60/storage/innobase/include/data0data.icmysql-5.1.60/storage/innobase/include/dyn0dyn.icmysql-5.1.60/storage/innobase/include/dict0mem.hmysql-5.1.60/storage/innobase/include/row0sel.hmysql-5.1.60/storage/innobase/include/row0uins.icmysql-5.1.60/storage/innobase/include/mach0data.hmysql-5.1.60/storage/innobase/include/buf0buf.hmysql-5.1.60/storage/innobase/include/data0types.hmysql-5.1.60/storage/innobase/include/trx0roll.hmysql-5.1.60/storage/innobase/include/data0type.icmysql-5.1.60/storage/innobase/include/mtr0mtr.hmysql-5.1.60/storage/innobase/include/pars0opt.hmysql-5.1.60/storage/innobase/include/lock0lock.icmysql-5.1.60/storage/innobase/include/lock0priv.hmysql-5.1.60/storage/innobase/include/ut0ut.hmysql-5.1.60/storage/innobase/include/log0recv.hmysql-5.1.60/storage/innobase/include/ut0list.hmysql-5.1.60/storage/innobase/include/buf0buf.icmysql-5.1.60/storage/innobase/include/row0upd.hmysql-5.1.60/storage/innobase/include/sync0sync.icmysql-5.1.60/storage/innobase/include/sync0types.hmysql-5.1.60/storage/innobase/include/ut0rnd.icmysql-5.1.60/storage/innobase/include/os0proc.icmysql-5.1.60/storage/innobase/include/mem0dbg.icmysql-5.1.60/storage/innobase/include/trx0roll.icmysql-5.1.60/storage/innobase/include/hash0hash.hmysql-5.1.60/storage/innobase/include/ut0list.icmysql-5.1.60/storage/innobase/include/dict0load.icmysql-5.1.60/storage/innobase/include/row0mysql.icmysql-5.1.60/storage/innobase/include/page0page.hmysql-5.1.60/storage/innobase/include/row0vers.hmysql-5.1.60/storage/innobase/include/fut0fut.icmysql-5.1.60/storage/innobase/include/lock0iter.hmysql-5.1.60/storage/innobase/include/dict0boot.icmysql-5.1.60/storage/innobase/include/usr0types.hmysql-5.1.60/storage/innobase/include/ut0mem.hmysql-5.1.60/storage/innobase/include/ibuf0types.hmysql-5.1.60/storage/innobase/include/thr0loc.hmysql-5.1.60/storage/innobase/include/mach0data.icmysql-5.1.60/storage/innobase/include/btr0pcur.icmysql-5.1.60/storage/innobase/include/trx0trx.hmysql-5.1.60/storage/innobase/include/mtr0log.icmysql-5.1.60/storage/innobase/include/row0mysql.hmysql-5.1.60/storage/innobase/include/page0cur.hmysql-5.1.60/storage/innobase/include/fut0lst.hmysql-5.1.60/storage/innobase/include/dyn0dyn.hmysql-5.1.60/storage/innobase/include/srv0srv.hmysql-5.1.60/storage/innobase/include/btr0sea.hmysql-5.1.60/storage/innobase/include/buf0lru.hmysql-5.1.60/storage/innobase/include/pars0types.hmysql-5.1.60/storage/innobase/include/buf0flu.hmysql-5.1.60/storage/innobase/include/mtr0log.hmysql-5.1.60/storage/innobase/include/que0que.hmysql-5.1.60/storage/innobase/include/trx0rseg.hmysql-5.1.60/storage/innobase/include/buf0flu.icmysql-5.1.60/storage/innobase/include/trx0purge.icmysql-5.1.60/storage/innobase/include/fsp0fsp.hmysql-5.1.60/storage/innobase/include/btr0cur.icmysql-5.1.60/storage/innobase/include/dict0crea.icmysql-5.1.60/storage/innobase/include/trx0sys.hmysql-5.1.60/storage/innobase/include/trx0xa.hmysql-5.1.60/storage/innobase/include/que0types.hmysql-5.1.60/storage/innobase/include/mtr0types.hmysql-5.1.60/storage/innobase/include/row0types.hmysql-5.1.60/storage/innobase/include/dict0load.hmysql-5.1.60/storage/innobase/include/page0types.hmysql-5.1.60/storage/innobase/include/ut0wqueue.hmysql-5.1.60/storage/innobase/include/ut0vec.hmysql-5.1.60/storage/innobase/include/mem0mem.hmysql-5.1.60/storage/innobase/include/eval0eval.icmysql-5.1.60/storage/innobase/include/ibuf0ibuf.icmysql-5.1.60/storage/innobase/include/trx0purge.hmysql-5.1.60/storage/innobase/include/pars0grm.hmysql-5.1.60/storage/innobase/include/rem0cmp.hmysql-5.1.60/storage/innobase/include/hash0hash.icmysql-5.1.60/storage/innobase/include/trx0undo.icmysql-5.1.60/storage/innobase/include/row0uins.hmysql-5.1.60/storage/innobase/include/read0read.icmysql-5.1.60/storage/innobase/include/page0cur.icmysql-5.1.60/storage/innobase/include/row0purge.icmysql-5.1.60/storage/innobase/include/ha_prototypes.hmysql-5.1.60/storage/innobase/include/ut0vec.icmysql-5.1.60/storage/innobase/include/ut0lst.hmysql-5.1.60/storage/innobase/include/btr0btr.icmysql-5.1.60/storage/innobase/include/eval0eval.hmysql-5.1.60/storage/innobase/include/btr0btr.h