- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio raw device
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
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
05-17-2004 10:48 PM
05-17-2004 10:48 PM
cpio raw device
How can I use cpio to backup my raw logical volume (rlvol) ?
Total I have 100 over rlvol in diference VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:08 PM
05-17-2004 11:08 PM
Re: cpio raw device
Never used cpio on a raw volume, check this link form more info.
http://www.backupcentral.com/native-backup-utils.html
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2004 11:49 PM
05-17-2004 11:49 PM
Re: cpio raw device
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 06:57 AM
05-18-2004 06:57 AM
Re: cpio raw device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 07:26 AM
05-18-2004 07:26 AM
Re: cpio raw device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 08:15 AM
05-18-2004 08:15 AM
Re: cpio raw device
With as many as 100 raw devices to back up you should look for a better tool then dd, for example HP Data Protector (it is possible to backup raw devices with DP).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 02:18 PM
05-18-2004 02:18 PM
Re: cpio raw device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 02:30 PM
05-18-2004 02:30 PM
Re: cpio raw device
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 02:32 PM
05-18-2004 02:32 PM
Re: cpio raw device
I don't believe you can use cpio to backup raw volumes, as previously stated. The use of dd should work. dd reads and writes data by blocks, and can convert the data between formats.
Be careful though, as misuse of dd has probably trashed many hard disks and file systems. Before doing this, BACKUP YOUR SYSTEM (via Ignite or similar). Do a 'man dd' or perform:
$ dd --help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2004 02:47 PM
05-18-2004 02:47 PM
Re: cpio raw device
For similar tasks I use a perl script similar to the one attached and included below.
It may serve you as a starting point.
I starts a controllable number of concurrent dd commands, piping output into a compress tool.
I feed it a file of files.
The file of files is generally organized, sorted by descending size so that you do not have to wait for the longest file at the end.
I also try to rotate through vg's, trying to avoid starting all jobs from a single vg.
I gave the output numbers as name dirived from the entry in the file of files, but you could ofcourse mung the raw device name into a useable filename (vgxx_lvyy.gz).
The file should probably capture the dd 'records input' output from STDERR but it does not for now.
This version prints the start time, stop time, elapsed time, stream used, pid used, file number and file name for each file.
(Oops, did not include final streams, oh well, left as exercise to reader!)
This version is for tests only and thus limits the data volume with count=40 on the dd line.
In my own versions I derive max-streams from the cpu count and also use mpsched to force cpu affinity as I 'own' the box.
waddayathink?
Hein.
$file = shift or die "Must provide file of files";
$max_streams = shift (@ARGV);
$max = ($max_streams)? int ($max_streams) : 4;
open (FILE, $file) || die "Error open file of files: $file";
while (
$num++;
chop;
if ($par++ >= $max) {
$pid = wait();
$par--;
$s = 1;
$s++ while (($stream[$s] != $pid) && ($s <= $max) );
printf("%02d:%02d:%02d %04X %5d %s\n",
$hour,$min,$sec,$pid,time() - $time[$s], $file[$s]);
die "Lost child process ?" if ($s > $max);
} else {
$s = $par;
}
$pid = fork();
if ($pid) {
$stream[$s] = $pid;
$file[$s] = sprintf ("%02d %3d %s",$s,$num,$_);
$time[$s] = time();
} else {
($sec,$min,$hour) = localtime(time);
printf("%02d:%02d:%02d %04X BEGIN %02d %3d %s\n",
$hour,$min,$sec,$$,$s,$num,$_);
exec ("dd bs=1024k count=40 if=$_ | gzip > /backup/hein/$num.gz")
}
}
close (FILE);
print "Last job started\n";
$pid = wait() while (--$par > 0);
print "Last job (pid=$pid) ended\n";
;