Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

swap space

Status
Not open for further replies.

copperslim

Technical User
Dec 13, 2002
101
GB
Hi
I
f I create a temporary swap space on /dev/vx/dsk/var. My question is, will this delete all file in /dev/vx/dsk/var

Example swap –a /dev/vx/dsk/var

Please advice

 
yes, it will destroy all the data (filesystem, files, directory); if you need swapspace temporarily just mount this Filesystem and create a file using something like
mkfile 4096M /mountpoint/tempswapspace
and add this file with swap -a

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Thanx franz

I have wipe out /var then

I will have to restore using

ufsrestore -xvf /dev/rmt/0cn



 

ufsrestore -xvf /dev/rmt/0cn

was ist das ?

do you mean: tar ?


:) guggach
 
No

The backup on the server uses ufsdump to backup files

To restore you will need to use ufsrestore unless am wrong.
Every thing under /var is wiped out
 
Is /var a separate filesystem from /? Do you know whereabouts on the tape /var was saved?
 
no problems, i know ufsdump, but
ufsrestore -xvf /dev/rmt/0cn
what's that ? are you on solaris ?


:) guggach
 
It is a file restore
ufsrestore - file system restore

Should i use something else..pls advice
 
just drop the -

Code:
ufsrestore xvf /dev/rmt/0cn

I guess guggach has seen more 'ufsrestore if /dev/rmt/0cn', isn't it?

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Problem Guys

I have restore but when I type ls -als /var I get total 0.
When I type ls -als /var/spool file are displayed. What am I doing wrong .
 
Now this what I get after a few extracts

Extract requested files
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #:

What should I do?
 
ya franz,
guggach braucht BBIIGGEERR fonts, und ein wenig mehr geduld.

after: Specify next volume #:
enter (a stupid) 1
you get a list of tape-toc
then enter: add <filename> #you want to restore
finally enter: x # to extract
see man pages, it's reaaly good documented.

:) guggach
 
have restore but when I type ls -als /var I get total 0.
When I type ls -als /var/spool file are displayed. What am I doing wrong .

How do I get the server to display what is under /var
 
Sorry - didn't get the chance to get back to this yesterday. Do you only have one save on the tape, or multiple ones? If the former and /var is part of the root filesystem, you need to:

Put the tape in the drive

mt -f /dev/rmt/0 rewind

cd /

ufsrestore -xvf /dev/rmt/0cn ./var (though you can check the content of the tape archive with -tvf first if you like).

Answer 1 as above

At the end answer with two y's when prompted.

HTH.
 
I will use with the full-stop (.) in front of /
Code:
 ufsrestore -xvf /dev/rmt/0cn ./var
 
btw: there is no hyphen (-) in front of xvf (man ufsrestore)

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
This what I get
Code:
ufsrestore xvf /dev/rmt/0cn ./var
Verify volume and initialize maps
Media block size is 64
Dump   date: Wed Jun 16 04:46:34 2004
Dumped from: the epoch
Level 0 dump of /var on FINSRV0003:/dev/md/dsk/d32
Label: none
Extract directories from tape
Initialize symbol table.
./var is not on volume
Extract requested files
You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #:
 
...But it does work with the hyphen. I think it's something I picked up using older versions of ufsrestore and have never got out of the habit!
 
@copperslim

run
cd /var
ufsrestore xvf /dev/rmt/0cn .

to doublecheck:
mt rew
ufsrestore if /dev/rmt/0cn
you can do a "ls" and should see what's in the dump (I bet it's the content of /var)

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top