- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DC migration.
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
Discussions
Discussions
Forums
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
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
тАО02-01-2011 04:18 AM
тАО02-01-2011 04:18 AM
We have DR migration activity scheduled coming week.All the DBs ,apps will be starting in DR,similar to Production boxes.
Now i want to compare 2 mount points including the sub directories.If any directory not available in DR similar to prod, we have to create it.
Please let me know the simplest way to compare 2 mount points including sub directories.
Regards
himacs
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 04:40 AM
тАО02-01-2011 04:40 AM
Re: DC migration.
If mount points belong to same server you can use dircmp command.
To compare the two directories /slate and /sleet and produce a list ofchanges that would make the directories identical:
#dircmp -d /slate /sleet
To extra info:
#man dircmp
Rgds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 06:22 AM
тАО02-01-2011 06:22 AM
Re: DC migration.
You don't offer the mechanism by which you will replicate data ('cp', 'cpio', 'tar', pax', 'fbackup', LVM mirroring, etc.
That said:
Should you wish to further compare *directory* sizes, don't.
The size of directories on your source system may be larger than the destination system. This is quite normal. Disk blocks allocated to directories are not deleted when the file metadata they contain is removed because the corresponding file is removed.
As for the sizes of individual files, beware comparing those too. Sparse files may be "inflated" depending on the copy mechanism you use. The 'cksum' will not change, though.
The 'dircmp' comparison suggested by Jose is a good check.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 06:41 AM
тАО02-01-2011 06:41 AM
Re: DC migration.
Thanks for the responses.
Actually i don mind about size.
I want any clue for a script that lists only directories under mount point.if there are sub directories script should give absolute path also.
Regards
himacs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 06:41 AM
тАО02-01-2011 06:41 AM
Re: DC migration.
Directory comparison tools work very slow. Besides - if it were a REAL disaster - you would not have PROD to compare with - don't you?
Best Practice is to ensure your BACKUPS are good and current so whatever you need to re-CREATE at DR is complete -- no asking if all dirs and subdirs, etc have been created.
Cheers
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2011 08:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2011 06:53 AM
тАО02-04-2011 06:53 AM
Re: DC migration.
Regards
himacs