LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-04-2012, 08:30 AM   #1
jayway
LQ Newbie
 
Registered: Nov 2011
Posts: 11

Rep: Reputation: Disabled
the directory dump with some problem


when i start to bakeup the dirctory /etc, i get some messages like this :

DUMP: Change Volumes: Mount volume #2
DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") yes
DUMP: Volume 2 started with block 31271 at: Sun Mar 4 21:53:23 2012
......


then i want to show details with restore -t -f etc.dump

it tells me ,
Level 0 dump of / (dir etc) on localhost.localdomain:/dev/mapper/VolGroup00-LogVol00
Label: none
restore: Tape is not volume 1 of the dump

what‘s wrong with it ? what is the  concept of volume, is it the same as the phycial volume???
 
Old 03-05-2012, 04:59 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Not enough info to help you.
  1. What sort of device are you doing the dump(8) to?
  2. What dump(8) command are you using, exactly?
(Please utilize code tags where appropriate.)
 
Old 03-05-2012, 07:15 PM   #3
jayway
LQ Newbie
 
Registered: Nov 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
the /etc is mounted on /dev/mapper/VG_lg100 , i try to dump the /etc/ with dump -0j /media/etc.dump /etc

in the process. it show me
DUMP: Change Volumes: Mount volume #2
DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") yes
DUMP: Volume 2 started with block 31271 at: Sun Mar 4 21:53:23 2012
.....
 
Old 03-05-2012, 09:47 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
/etc should not be mounted on its own filesystem, so presumably you're doing a dump(8) of all of the / filesystem.

You didn't answer about the device that you're writing the dump(8) to. I think you intend to write it to a file on /media.

Use the command:
Code:
# dump -0uanj -f /media/etc.dump.bz /
If you really have /etc mounted to its own filesystem (I hope not), then modify the last / to be /etc instead.

Finally, let's see output on your system from:
Code:
# df -h
Use code tags so that others can more easily read your output.
 
Old 03-05-2012, 09:54 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
BTW, jayway, dump(8) is most commonly (at least in my experience) used to back up entire filesystems, not necessarily just directories. For that task, it's fantastic. But if all you really want to do is back up /etc, then make life easy and use tar(1).

Code:
# tar cfj /media/etc.tar.bz /etc

Last edited by anomie; 03-05-2012 at 09:55 PM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to get dump to backup home directory eparl Linux - Newbie 7 03-28-2011 01:43 AM
how to dump all users to the same sftp starting directory? c0pe Linux - Server 4 07-09-2010 05:53 AM
core dump file won't write to nfs-mounted directory rainzone Linux - Networking 5 08-25-2009 04:30 PM
od - Trying to get dump of directory idoneous Linux - Newbie 2 12-10-2006 12:54 PM
dump /home directory kingtas Linux - Software 3 09-11-2004 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration