cli:~>service-init ====================================== Service Initialization Utility ====================================== This utility sets up the initialization information of the service in the HA system. It prompts you for the following information: - Service information - Application resource information - Public net work interface information - Floating IP address information. - Block Disk information - Mount information - Raw Disk information Input service name: oracle 自定义服务名称 racle Is it enabled?(yes/no)[yes]: Do you want to configure preferred node ? (yes/no)[no]:yes Please choose preferred node: 0) suse11-1 1) suse11-2 Select a node: [0, 1]:0 Input start time out[60]:直接回车 Input stop time out[120]:直接回车 Input check interval[30]:直接回车 Input check time out[60]:直接回车 Input max error count[1]:直接回车 Restart after check result is failed?(yes/no)[no]:直接回车 Start service anyway when float IP exist?(yes/no)[no]:直接回车 Do you want to add a application? (yes/no)[yes]:直接回车 ====== Application ====== Input name of application[oracle_app_0]:直接回车 Input script of application [/etc/ha.d/resource.d/oracle]:/home/script/oracle.ps 管控oracle脚本 Is resource critical?[yes]:直接回车 Is resource enable?[yes]:直接回车 Add another application? (yes/no)[no]:直接回车 Do you want to add a pubnic? (yes/no)[yes]:直接回车 ====== PubNIC ====== Input PubNIC name[oracle_net_card_0]:直接回车 Is resource critical?[yes]:直接回车 Please choose network device: 0) eth0 1) bond0 Select a network device [0, 1]:1 Add another pubnic? (yes/no)[no]:直接回车 ====== IP ====== Input IP name[oracle_ip_0]:直接回车 Input IP address:192.168.1.96 浮点/业务IP Input netmask[255.255.255.0]: PubNIC of service: 0) oracle_net_card_0 suse11-1:bond0 suse11-2:bond0 Select a PubNIC: [0, 0]:0 Is resource critical?[yes]:直接回车 Add another IP? (yes/no)[no]:直接回车 Do you want to add a raw disk? (yes/no)[no]: 直接回车 Do you want to add a diskmount? (yes/no)[no]:yes ====== diskmount ====== Input diskmount name[oracle_diskmount_1]:直接回车 Is resource critical?[yes]:直接回车 Is resource enable?[yes]:直接回车 0) disk 普通的块设备 1) nfs nfs设备 2) lvm 逻辑卷设备 3) cancel please choose a disk type? [0, 3]:0 Input block disk device[/dev/hda1]:/dev/sdb2 共享数据所在设备 Input mountpoint:/home/db 挂载目录 Input type of file system[ext3]:直接回车 Input user[root]:oracle 挂载目录的操作用户 Input group[root]:oinstall 操作用户的群组 Input mode[755]:直接回车 Input options[rw]:直接回车 Input the quota of the device[90]:直接回车 do you want to stop service when the disk is readonly?[yes]:直接回车 Add another diskmount? (yes/no)[no]:直接回车 Add another service? (yes/no)[no]:yes Input service name:tomcat 自定义服务名称:tomcat Is it enabled?(yes/no)[yes]: Do you want to configure preferred node ? (yes/no)[no]:yes Please choose preferred node: 0) suse11-1 1) suse11-2 Select a node: [0, 1]:1 Input start time out[60]:直接回车 Input stop time out[120]:直接回车 Input check interval[30]:直接回车 Input check time out[60]:直接回车 Input max error count[1]:直接回车 Restart after check result is failed?(yes/no)[no]:直接回车 Start service anyway when float IP exist?(yes/no)[no]:直接回车 Do you want to add a application? (yes/no)[yes]:直接回车 ====== Application ====== Input name of application[tomcat_app_0]:直接回车 Input script of application [/etc/ha.d/resource.d/tomcat]:/home/script/tomcat.ps 管控tomcat脚本 Is resource critical?[yes]:直接回车 Is resource enable?[yes]:直接回车 Add another application? (yes/no)[no]:直接回车 Do you want to add a pubnic? (yes/no)[yes]:直接回车 ====== PubNIC ====== Input PubNIC name[tomcat_net_card_0]:直接回车 Is resource critical?[yes]:直接回车 Please choose network device: 0) eth0 1) bond0 Select a network device [0, 1]:1 Add another pubnic? (yes/no)[no]:直接回车 ====== IP ====== Input IP name[oracle_ip_0]:直接回车 Input IP address:192.168.1.97 浮点/业务IP Input netmask[255.255.255.0]: PubNIC of service: 0) tomcat_net_card_0 suse11-1:bond0 suse11-2:bond0 Select a PubNIC: [0, 0]:0 Is resource critical?[yes]:直接回车 Add another IP? (yes/no)[no]:直接回车 Do you want to add a raw disk? (yes/no)[no]: 直接回车 Do you want to add a diskmount? (yes/no)[no]: 直接回车 Add another service? (yes/no)[no]: 直接回车 Please run cluster-start to start the HA system, or run cluster-restart to restart the HA system. |