- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can I copy /var from one system to another saf...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
11-03-2008 04:28 PM
11-03-2008 04:28 PM
Can I copy /var from one system to another safely?
The test system has another drive but for some reason it's not mirrored to it. And the ignite tape for the test box can't currently be located.
I have the ignite tape for the production box.
Now I am wondering if I should use the production ignite tape to ignite onto the the test box and then try to import my test vg's.
Or can I fbackup /var on the production box, do a newfs on /var on the test box and then restore it there from the tape. Once it's restored I can then mirror to the other drive and then use that drive to boot off going forward.
Is there anything system specific in /var that would cause problems?
Ironically all my databases and software are currently up and running on the test system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2008 04:42 PM
11-03-2008 04:42 PM
Re: Can I copy /var from one system to another safely?
I would use the production Ignite tape as the master from which to clone a new test server.
If you are making your Ignite recovery tapes properly, they contain only vg00 filesystems. Given that, you can rebuilt your test server from the Ignite tape; and then 'vgimport' your non-vg00 test volume groups.
The problem with blindly copying '/var' from the production server is that '/var/adm/sw' holds the IPD (Installed Product Database) information which tracks what patches and what products are installed. Further, the contents of this directory are assumed to be synchronized with the actual files in '/etc', '/usr' and '/opt' including the matching of their modification timestamps and checksums.
Hence, do not try to copy 'var' from one server.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2008 05:00 PM
11-03-2008 05:00 PM
Re: Can I copy /var from one system to another safely?
I ran cmviewcl and it's currently marked as failed and is not part of the cluster.
If I rebuild this using the production ignite tape won't I run into problems with overlaying things in /etc.
I know that you said that /var syncs with /opt and other filesystems.
The only thing running on this server as far as software is a CACHE database and Serviceguard.
Should I use ignite or risk the restore?
If I use ignite will I run any risk of importing anything that might make this think it's the production server and cause more problems?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2008 06:29 PM
11-03-2008 06:29 PM
Re: Can I copy /var from one system to another safely?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2008 08:03 PM
11-03-2008 08:03 PM
Re: Can I copy /var from one system to another safely?
do you have free disk space to "create /var2 file system..?
assuming you have free disk space
# lvcreate -L
# mkdir /var
# mount /dev/vg00/lvolx /var2
(perform fbackup)
# cd /var; fbackup -f - -i . | (cd /var2; frecover -f - -r)
(once fbackup has been complted)
reboot the single -user mode
# lvremove /dev/vg00/lvolx --> refers to your old /var file system
# mount /dev/vg00/lvolx /var --> refers to your newly created /var file system
# vi /etc/fstab
comment the old entry for your old /var file system
add a new entry for your new /var file system
# shutdown -ry 0 -> reboot you system
Hope this helps,
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2008 08:06 PM
11-03-2008 08:06 PM
Re: Can I copy /var from one system to another safely?
should be # mkdir /var2
Thanks,
Johnson