- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Copy dirs and files
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
09-19-2006 03:42 AM
09-19-2006 03:42 AM
Ex. I need to move the contents of dka300 on to dka100 and then defrag the system disk using dka300, then move contents of dka300 back from dka100.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 04:03 AM
09-19-2006 04:03 AM
SolutionYou could use BACKUP to create a save set of DKA300 to copy to directory structure.
If there were a large amount of files on DKA300, I would probably copy dka300 to tape, use BACKUP/IMAGE to move the system disk to DKA300, switch DKA300 and the system disk and restore the tape to the "new" DKA300.
Why do you need to defragment the system disk?
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 04:21 AM
09-19-2006 04:21 AM
Re: Copy dirs and files
the way you formulate it
"then move contents of dka300 back from dka100.", am I to understand that you want to _ADD_ dka300 to dka100?
I do _NOT_ think that would be a wise move for a SystemDisk, because it would make you loose the structure, which would make it unusable as a system disk.
(Technically it _IS_ possible, but it would be WAY more delicate and complicated as what Andy suggested, should probably NOT be tried if you have to ask. Although, on a hobby system in your private time it WOULD be interesting and educational.
But I am also interested in Andy's last question: WHY?
There only VERY rarely is a serious need to defrag a VMS disk, even less a system disk.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 04:42 AM
09-19-2006 04:42 AM
Re: Copy dirs and files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 10:31 AM
09-19-2006 10:31 AM
Re: Copy dirs and files
You'd probably be better off defragging the disk AFTER the upgrade, as it will involve the movement of many files.
The best advice I can give is make sure you always have an immediate fallback every step of the way.
Also note that you CANNOT get a useable backup of your system disk while booted from it. You need to boot minimum VMS and take a standalone backup.
So, plan something like this:
1) Shutdown
2) reboot minimal
3) backup/IMAGE system disk to spare1
(spare1 is now your fallback)
4) reboot
5) perform upgrade
6) shutdown
7) reboot minimal
8) backup/IMAGE system disk to spare2
9) now physically swap the original system disk for spare2
You now have a clean, defragged, new system disk. You also have a fallback to immediately after the upgrade (though perhaps somewhat fragmented) and immediately before the upgrade.
Note that if you have a shadowed system disk you can take several shortcuts in this sequence.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2006 08:16 PM
09-19-2006 08:16 PM
Re: Copy dirs and files
The best way to defrag the disk is
1. Do image backup and then
2. restore the backup
When you do the restore to the disk, The space for each file allocates contiguous space for all the files.
Anyway, for upgrade consider John's advise keep fallback option.
regards
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 09:02 AM
09-20-2006 09:02 AM
Re: Copy dirs and files
Sorry to disagree!
>The best way to defrag the disk is
>
>1. Do image backup and then
>2. restore the backup
If the backup is disk to disk, then skip step 2, just physically swap the disks. Don't overwrite the original.
If the backup is to tape them DON'T restore the tape to the same disk. If anything goes wrong you've lost everything. Tapes break, get chewed up or lose blocks. Power gets cut, systems crash. It's not worth the risk.
Perhaps restore it from tape to a different disk (but if you've got another disk then skip the tape and just go disk to disk!)
Bottom line here is storage is cheap enough these days that there is no need to ever "burn bridges". ALWAYS keep an immediate fallback, and NEVER overwrite anything that you don't have a confirmed, ready to spin copy of somewhere else.
The best way to defrag a disk is tune files so they don't get fragmented. Know your data, preallocate and specify appropriately large extend sizes.
Second best is to use a product like DFG so you don't have to take your system down or dismount the disk.
Finally, don't ASSUME that a VMS disk NEEDS defragging, most disks that aren't subject to outright abuse are probably OK. Install DEFRAG off a CONDIST and use the SHOW command to analyze the disk and see how bad it is (no license PAK required).