- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "cmrunserv" command.
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 07:40 AM
10-12-2003 07:40 AM
"cmrunserv" command.
I want to take a backup of a Database, which is running on HA Cluster. This database is monitored by a script.
My plan as below to take backup without halting the package.
1.Halt the monitor service by
# cmhaltserv
2. Lock the Database to take backup.
# lock -db
3. Taking snapshot of Database mountpoint using Online JFS.
# mount -F vxfs -o snapof=
4. Unlock database
# unlock -db
5. start the monitor service
# cmrunserv
I am not able to run the service again using "cmrunserv" command.
When you execute this command, says the file is existing.
Is there any way to rerun the Service.
Yours valueable input is highly appreciated.
Thanks & Regards,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 09:53 AM
10-12-2003 09:53 AM
Re: "cmrunserv" command.
Refer to 'cmviewcl -v' if you don't know the package names.
I believe service's are meant to connect the package.conf and package.cntl files only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 09:54 AM
10-12-2003 09:54 AM
Re: "cmrunserv" command.
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x3b7c1cc6003bd6118fff0090279cd0f9%2C00.html&admit=716493758+1065995421502+28353475
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 02:02 PM
10-12-2003 02:02 PM
Re: "cmrunserv" command.
As far as the cmrunserv, I concur with the above reply. As for your underlying question; You need to build into the monitoring script the ability perform maintenance (i.e. the ability to take down the database).
This is usually done by setting a MAINTENANCE flag (file). A suggestion would be to have the script check of the MAINTENANCE file existence at which time the script will not check for the processes.
If you did not create the monitoring script, this may have already been done- it's fairly standard in the SG installations that I do and have modified.
Good luck,
Trish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 02:35 PM
10-12-2003 02:35 PM
Re: "cmrunserv" command.
like others I'll also prefer using the cmhaltpkg and cmrunpkg.If i'm not mistaken if you halt the monitoring service it would halt the package also right?
In our case
1.halt the package
cmhaltpkg -v
2. mount the dirs manually(script)
vgchange -a e vg1
vgchange -a e vg2
vgchange -a e vg3
vgchange -a e vg04
mount /dev/vg3/lvol01 /stage1
cmmodnet -a -i 10.2.11.141 10.2.11.0
3. Do the database maintenance
4. umount the dirs manually (script)
umount /stage1
umount /ifmx
umount /dump
umount /stage2
vgchange -a n vg1
vgchange -a n vg2
vgchange -a n vg3
vgchange -a n vg04
cmmodnet -r -i 10.1.1.121 10.2.10.0
5.Start up back the package
cmrunpkg -v
Thanks & Regards
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 07:25 PM
10-12-2003 07:25 PM
Re: "cmrunserv" command.
This will inturn call cmrunserv.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 09:03 PM
10-12-2003 09:03 PM
Re: "cmrunserv" command.
Why not just execute the DB stop script that (I assume) is in the package shell script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:09 PM
10-12-2003 11:09 PM
Re: "cmrunserv" command.
Finally, I decided cmrunserv is not possible in command line and also not right way of usage.
I am going to restart the package, once task is over.
Cheers,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:38 AM
10-13-2003 12:38 AM
Re: "cmrunserv" command.
If this is an oracle database, have you looked into the possibility of taking a db backup in hot backup mode. If not you can explore that option.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:44 AM
10-13-2003 12:44 AM
Re: "cmrunserv" command.
I assumed that he wanted a cold backup.
I still think that shutting the whole package for a backup is counter-productive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:51 AM
10-13-2003 12:51 AM
Re: "cmrunserv" command.
It doesn't look like he is planning on a cold backup. If so then the idea of maintainence flag suggested by other forum members is a good one.
Thanks
Sanjay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:56 AM
10-13-2003 12:56 AM
Re: "cmrunserv" command.
I am looking for cold backup.
So that, planing to lock the database, before starting backup.
I am using QTIP/TQL database.
Thanks for your valualbe time spending on this issue.
We have decided to take backup by halting the application/Package.
Cheers,
Rajesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:58 AM
10-13-2003 12:58 AM
Re: "cmrunserv" command.
It might be worth atending this course, if it is available in your area.