2011-04-24 20:08:49 weixin_33874713 阅读数 79
2018-05-25 17:38:43 qq_27384505 阅读数 603

自己写的定时脚本,用于跑kylin的build方法

et=$[$(date -d "-1 day -2 hour -59 min" +%s%N)/1000000]
curl -X PUT -H "Authorization: Basic QURNSU46S1lMSU4=" -H 'Content-Type: application/json' -d '{"endTime":'${et}', "buildType":"BUILD"}' http://master:7070/kylin/api/cubes/cxOrderCube/rebuild

et变量是获取最晚时间,因为我这边定时是凌晨三点跑任务,所以是-2,59分

跑出来的结果是毫秒级时间,可直接用于传值

2009-11-02 18:21:00 knock 阅读数 625
 

 
我的电脑一个硬盘,装XP+Fedora8,前段时间XP闹别扭,无奈下重装了XP,可这样就进不了Fedora了。 一直没啥事,所以也就没管。
最近需要用到linux了,又不想重装Fedora8(安装好慢,还要升级啥的),于是上网找解决办法,还真就这样搞好了,顺利进入了Fedora,不用重装,爽~  方法如下:
1.Fedora安装光盘引导,进入rescue mode.
2. 光盘搜索原有linux系统并挂载在目录/mnt/sysimage下,命令行
    chroot /mnt/sysimage
    这时你所处位置就是在/目录下了
    cd /boot/grub
    vi grub.conf    查看linux的分区 (我的为"(hd0,7)")
3. 命令grub启动
4. root (hd0,7)
5. setup (hd0,7)
则已经将grub安装在linux分区。然后通过windows XP的boot来引导Grub

进入XP,下载bootpart 2.60这个小程序,命令行输入:bootpart打印出硬盘的分区信息,
选择要进行引导的分区,安装到boot.ini中,命令如下:
bootpart.exe 8 boot.sec Fedora8
表示将编号为8的分区的引导信息写入boot.sec文件,并且设置boot.ini添加一项,名称为"Fedora8".
重启,选择Fedora8,进入了GRUB菜单,引导进入linux!
2005-03-06 14:04:00 creamxu 阅读数 698

在Gentoo官方网站上看到的全文如下:

Due to a set of remotely exploitable bugs in Gaim and Mozilla-Firefox and locally exploitable bugs in QT and Kdelibs found in the last few hours before a final 2005.0 release was completed, it was decided by all of the members of Release Engineering to rebuild the release media to resolve these bugs, prior to release.

Release Engineering would like to thank the security team for their diligence in making sure Gentoo has top-notch security resolution, and also our Architecture Leads, for having the patience to put up with all of the last-minute updates and changes, and also for their assistance in quickly verifying these packages on their architectures.

2008-04-17 09:59:00 randyamor 阅读数 1914

最近的备份问题多多,而本人对veritas又不了解,特别的痛苦。从veritas工程师处要了介质后在自己的虚拟机上折腾了一个,以后就可以自己做做测试啦。

我拿到的介质是Veritas,NetBackup.Enterprise.Server.v6.0-Linux.iso,里面有如下的内容:

client  gzip.exe  ics  install  linux  rebuild.bat

不知道为什么这个rebuild.bat和gzip.exe文件都是windows下的,(大概是D版吧,^_^)。所以我只好在windows下先rebuild,再up到我的虚拟机里了。

安装时报了一个错误,按照它的提示安装了VRTSpbx包后正常,下面是详细的安装过程。

[root@oracle veritas]# ./install


VERITAS Installation Script
Copyright 1993 - 2005 VERITAS Software Corporation, All Rights Reserved.


        Installing NetBackup Server Software

 NOTE:  To install only NetBackup Client software locally on this machine
        or to load additional UNIX client software on this server, insert
        the NetBackup UNIX Clients cdrom.

Do you wish to continue? [y,n] (y)

The NetBackup and Media Manager software is built for use on LINUX hardware.
Do you want to install NetBackup and Media Manager files? [y,n] (y)

NetBackup and Media Manager are normally installed in /usr/openv.
The existing /usr/openv directory will be used for NetBackup and Media Manager.

Reading NetBackup files from /tmp/veritas/linux/anb

usr/openv/NB-Java.tar.Z
usr/openv/db/bin/
usr/openv/db/bin/create_nbdb

......

usr/openv/man/man1/vxlogmgr.1.gz
usr/openv/man/man1/vxlogview.1.gz
Reading Media Manager files from /tmp/veritas/linux/anb

usr/openv/volmgr/bin/goodies/drive_mount_notify
usr/openv/volmgr/bin/goodies/drive_unmount_notify
usr/openv/volmgr/bin/mmcrawl

......

usr/openv/man/man1/tlmd.1.gz
usr/openv/volmgr/bin/make_scsi_dev

Done executing NB.inst.

If you ran NB.inst instead of <cdrom_path>/install, you must
run /usr/openv/netbackup/bin/install_bp to initiate NetBackup.
Running /usr/openv/netbackup/bin/install_bp

Copying RedHat2.4 Client Binaries
openv/
openv/lib/
openv/lib/libVmangle.so
openv/lib/libVnbatST.so_new
openv/lib/libVnbat.so

......

openv/msg/
openv/msg/.conf
Installing NB-Java.
/bin/tar: Read 2048 bytes from -
+ /bin/cp ./nbj.conf /usr/openv/java


A NetBackup Server or Enterprise Server license key is needed
for installation to continue.

Enter license key: XXXXXXXX

XXXXXXXX:
        NetBackup Enterprise Server Base product with all the features enabled
        has been registered.


All additional keys should be added at this time.
Do you want to add additional license keys now? [y,n] (y) n

Use /usr/openv/netbackup/bin/admincmd/get_license_key
to add, delete or list license keys at a later time.

Installing NetBackup Enterprise Server version: 6.0

 

If this machine will be using a different network interface than the
default (oracle), the name of the preferred interface should be used
as the configured server name.  If this machine will be part of a
cluster, the virtual name should be used as the configured server name.

The domainname of your server appears to be "(none)".
You may choose to use this domainname in your configured NetBackup server
name, or simply use "oracle" as the configured NetBackup server name.

Would you like to use "oracle.(none)" as the configured
name of the NetBackup server? [y,n] (y) n

Enter the name of the NetBackup server: NetBackup

Is NetBackup the master server? [y,n] (y)
Do you have any media servers? [y,n] (n)

Checking /etc/services for the needed NetBackup and Media Manager services.

Copying original /etc/services file to /etc/services.NBU_041708.09:09:01
Editing /etc/services to update NetBackup and Media Manager services.

/etc/services will be updated to add the following entries for
NetBackup/Media Manager.

bprd    13720/tcp       bprd
bpcd    13782/tcp       bpcd
bpdbm   13721/tcp       bpdbm
vnetd   13724/tcp       vnetd
vopied  13783/tcp       vopied
bpjobd  13723/tcp       bpjobd
bpjava-msvc     13722/tcp       bpjava-msvc
NB_dbsrv        13785/tcp       NB_dbsrv
vmd     13701/tcp       vmd
acsd    13702/tcp       acsd
tl8cd   13705/tcp       tl8cd
tldcd   13711/tcp       tldcd
odld    13706/tcp       odld
tl4d    13713/tcp       tl4d
tshd    13715/tcp       tshd
tlmd    13716/tcp       tlmd
tlhcd   13717/tcp       tlhcd
rsmd    13719/tcp       rsmd

/etc/services has been updated to contain NetBackup and Media
Manager services. 

WARNING: ypwhich: can't get local yp domain: Local domain name not set

WARNING: ypcat: can't get local yp domain: Local domain name not set

Found the necessary NetBackup services in /etc/services.

Sending SIGHUP to xinetd process.

Reloading configuration: [  OK  ]

To make NetBackup start up automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc2.d directory.


To make NetBackup start up automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc3.d directory.


To make NetBackup start up automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc5.d directory.


To make NetBackup shut down automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc0.d directory.


To make NetBackup shut down automatically when
the system is restarted, the netbackup script found in
/usr/openv/netbackup/bin/goodies has been placed in /etc/rc.d/init.d,
with links to it placed in the /etc/rc.d/rc6.d directory.

 

NetBackup maintains a centralized catalog (separate from the image
catalog) for data related to media and device configuration, device
management, storage units, hosts and host aliases, media server status,
NDMP credentials, and other information.  This is managed by the
Enterprise Media Manager server.

Enter the Enterprise Media Manager server (default: NetBackup):
VERITAS DBMS Server 9.0.1 is being installed
bin/
bin/dbbackup

......

scripts/wdata/sales_oi.dat
tix/
tix/default.tix
tar: Read 1024 bytes from -

 

**********************************************************************
********************* ALERT - ACTION REQUIRED ************************
**********************************************************************

This installation could fit one of two scenarios.
Follow the instructions that fit your situation.


**********************************************************************

1.  It appears NetBackup is being installed with the intention of
    using a different network interface than the default (oracle).
    NetBackup daemons will be shut down.  Additional entries must
    be added to /usr/openv/netbackup/bp.conf and
    /usr/openv/volmgr/vm.conf.  The entry and the file affected
    are as follows:

REQUIRED_INTERFACE=NetBackup         (bp.conf)
REQUIRED_INTERFACE=NetBackup         (vm.conf)
DEVICE_HOST=NetBackup                (vm.conf)

    After these entries have been added, start the NetBackup and Media
    Manager daemons by executing the following command:

    /usr/openv/netbackup/bin/goodies/netbackup start

**********************************************************************

                               OR

**********************************************************************

2.  This machine appears to be a member of a cluster.  NetBackup
    daemons will be shut down.  Do not install any NetBackup add-on
    or database agent products on this machine until after the
    NetBackup server has been configured to run in a cluster.  After
    NetBackup server installation activities have occurred on all
    members of the cluster, execute the following command on the
    primary node:

    /usr/openv/netbackup/bin/cluster/cluster_config

**********************************************************************

 

File /usr/openv/tmp/install_trace.2583 contains a trace of this install.
That file can be deleted after you are sure the install was successful.

/* 这里的报错说是我使用了另一个network interface,大概是因为我取的NetBackup server名称不是默认的吧,
   按照它的提示编辑了/usr/openv/netbackup/bp.conf和/usr/openv/volmgr/vm.conf后,手工启动。*/

[root@oracle veritas]# more /usr/openv/netbackup/bp.conf
SERVER = NetBackup
CLIENT_NAME = oracle
EMMSERVER = NetBackup
[root@oracle veritas]# vi /usr/openv/netbackup/bp.conf
SERVER = NetBackup
CLIENT_NAME = oracle
EMMSERVER = NetBackup
~
~
SERVER = NetBackup
CLIENT_NAME = oracle
"/usr/openv/netbackup/bp.conf" 4L, 91C written
[root@oracle veritas]# more /usr/openv/volmgr/vm.conf
/usr/openv/volmgr/vm.conf: No such file or directory
[root@oracle veritas]# cd /usr/openv
[root@oracle openv]# ls
bin  db  java  lib  logs  man  msg  NB-Java.tar.Z  netbackup  resources  share  tmp  var  volmgr
[root@oracle openv]# cd volmnr
-bash: cd: volmnr: No such file or directory
[root@oracle openv]# cd volmgr
[root@oracle volmgr]# ls
bin  database  help  MediaMgr_DeviceConfig_Guide.txt  misc

[root@oracle volmgr]# vi vm.conf
~
~
"vm.conf" [New] 2L, 50C written

[root@oracle volmgr]# more vm.conf
EQUIRED_INTERFACE=NetBackup
DEVICE_HOST=NetBackup

[root@oracle volmgr]# /usr/openv/netbackup/bin/goodies/netbackup start
NetBackup Database Server started.
NetBackup Notification Service started.
NetBackup Enterprise Media Manager started.
NetBackup Resource Broker started.
Rebuilding device nodes.
Media Manager daemons started.
NetBackup request daemon started.
NetBackup compatibility daemon started.
NetBackup Job Manager started.

NetBackup Policy Execution Manager started.
NetBackup Service Layer started.
NetBackup is not configured for clustering.
NetBackup Service Monitor started.

[root@oracle volmgr]#


至此,veritas服务器就安装好了。

没有更多推荐了,返回首页