- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Migrating Raw filesystem to another server
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
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
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-19-2003 02:13 PM
11-19-2003 02:13 PM
tar cvf - . |remsh server_a â cd
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 02:39 PM
11-19-2003 02:39 PM
Re: Migrating Raw filesystem to another server
Then we create a new raw disk area on the target system and restore the data using the utilities.
I have used Ignite to replicate raw disk areas, but the data wasn't usable. They had to be initialized all over again.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 02:53 PM
11-19-2003 02:53 PM
SolutionThe other easy way would be to do a dd after you connect both the disks to same system and then move the backedup disk to another system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 03:27 PM
11-19-2003 03:27 PM
Re: Migrating Raw filesystem to another server
# dd if=/dev/vg##/rlvol# of=/dev/rmt/0m bs=2048
The block size can be 512 or 4096, it depends. Raw blocks are 512 mb but you can go much bigger as long as its octal. 20480?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 04:32 PM
11-19-2003 04:32 PM
Re: Migrating Raw filesystem to another server
I would use gzip -c
Raw devices are not all that magically.
dd is not the only thing that can address them.
Depending on the platform you may want to feed gzip with data read by dd though.
On other platforms still I found it recommended to use a private 'rawcopy' tool (attached) as that was slightly more efficient with fifo's than dd.
Your milage will vary. Try first... if you can.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 04:45 PM
11-19-2003 04:45 PM
Re: Migrating Raw filesystem to another server
To copy raw lvols from one host to another using the network that's what you can do :
#dd if=/dev/vgXX/rlvolYY | gzip -c | remsh target-host "gunzip -c | dd of=/dev/vgXX/rlvolYY
To copy raw lvols from one host to another using a tape, you can do (assuming that 0m is your tape device and that you have several rlvols to copy called rlvol1, rlvol2, etc...) :
#mt -f /dev/rmt/0m rew
#dd if=/dev/vgXX/rlvol1 of=/dev/rmt/0mn bs=4096k
#dd if=/dev/vgXX/rlvol2 of=/dev/rmt/0mn bs=4096k
etc...
and on the destination host :
#mt -f /dev/rmt/0m rew
#dd if=/dev/rmt/0mn of=/dev/vgXX/rlvol1 bs=4096k
#dd if=/dev/rmt/0mn of=/dev/vgXX/rlvol2 of=/dev/rmt/0mn bs=4096k
etc..
The usage of the '0mn' will allow each raw lvol to be sequentially written on the tape with no rewind.
I would also strongly recommend you to issue cksum to check if everything was fine after.
do this on both hosts and compare the results :
#cksum /dev/vgXX/rlvolYY
Hope this helps, Bye.
Francis DERDEYN - HP-UX ASCE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2003 04:46 PM
11-19-2003 04:46 PM
Re: Migrating Raw filesystem to another server
#dd if=/dev/vgXX/rlvolYY | gzip -c | remsh target-host "gunzip -c | dd of=/dev/vgXX/rlvolYY"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2003 01:47 AM
11-20-2003 01:47 AM
Re: Migrating Raw filesystem to another server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2003 01:56 AM
11-20-2003 01:56 AM
Re: Migrating Raw filesystem to another server
Or if your new server's disks could be hooked up to the existing server, do the dd's locally. Once done, move the disks back to the new server and your golden.