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
04-14-2005 02:37 AM
04-14-2005 02:37 AM
I'm looking to use dd to copy all files from a DAT Tape I have to a Filesystem I just built. Can I pipe the output of this tape to the filesystem name or do I have to unmount the filesystem and specify the target to be the Logical Volume? (I've seen mixed reviews in searching this answer out)
Also can anyone give me an example of what this command might look like?
I was going to try the following but I'm not sure if this would work???
dd if=/dev/rmt/0m of=
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 02:40 AM
04-14-2005 02:40 AM
Re: dd help
My first question would have to be "how was the DAT tape produced". I don't think dd is going to read a tar or fbackup tape.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 02:58 AM
04-14-2005 02:58 AM
Re: dd help
I also tried to use cpio to view the data and that seemed to recognize the format.
My guess is that this backup was taken via dd or cpio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 03:06 AM
04-14-2005 03:06 AM
Re: dd help
It's possible that dd was used to reblock the output of cpio to make the device perform better.
You need to do a series of cpio 't' commands to get a consistant listing before you try to restore.
e.g.
cpio -ivt < /dev/rmt/0m
If you see messages suggesting 'c' then change to
cpio -icvt < /dev/rmt/0m
Next try
cpio -ivBt < /dev/rmt/0m
or
cpio -icvBt < /dev/rmt/0m
Here is an example of dd'ing reading in 100k blocks and outputting in 5K blocks feeding into a cpio with the 'B' (5K blocks) option.
dd if=/dev/rmt/0m ibs=100k obs=5k | cpio -icvBt
Only when you get a complete listing shoulf you then try the restore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 03:24 AM
04-14-2005 03:24 AM
Re: dd help
When I said I got results from trying to view what was on tape, I failed to mention that it began listing files, but then became illegible like the data was in some other format?
Any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 03:39 AM
04-14-2005 03:39 AM
Re: dd help
file - < /dev/rmt/0m
The above is telling me it cannot open.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 03:47 AM
04-14-2005 03:47 AM
Re: dd help
The symptoms you are describing occur when the cpio blocking is incorrect. The first block is read but subsequent blocks are not in phase. You may also have control characters that are changing your display to a new character set.
Do this:
dd if=/dev/rmt/0m bs=1k count=1 of=/var/tmp/xx
od -tc -v -Ad /var/tmp/xx > /var/tmp/xx.od
Post xx.od and someone should at least be able to identify the format of your data. The idea is that we are extracting the first 1k of data and then outputting it in a readable format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 03:49 AM
04-14-2005 03:49 AM
Re: dd help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 03:57 AM
04-14-2005 03:57 AM
Re: dd help
The above is what I get after I run both commands you asked me to. After running the dd command and redirecting the data to a file of my choice in /var/tmp/xx, I was able to view that data and that is what I believe we're looking to restore. Would this mean that the data on this tape was therefore backed by dd or am I getting ahead of myself here??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 04:13 AM
04-14-2005 04:13 AM
Re: dd help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 04:17 AM
04-14-2005 04:17 AM
Re: dd help
(See Attachment)
Thanks very much for the effort on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 04:20 AM
04-14-2005 04:20 AM
Re: dd help
A) Oracle EXPORT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 04:21 AM
04-14-2005 04:21 AM
Re: dd help
The safest way (if you have the space) is
(a) dd the entire contents of the tape into a temporary file. This will give you the size of the filesystem (if it is one) and you can fsck it!
(b) create a temporary fileystem of that size, rounded up to the nearest PE size.
(c) dd from the temporary file you created at (a) into the fileystem block special file (/dev/lvol/XXX) you used at (b).
that way if it isn't a dd of a complete filesystem, then you've only trashed a temporaty filesystem, not a real one!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2005 04:29 AM
04-14-2005 04:29 AM
Solutiondd if=/dev/rmt/0m bs=60k of=/xxx/yyy/myfile