Appending to tape.

Hi,

I have a HP SureStore DAT24 connected on a Solaris 8 box, i am trying to backup using ufsdump. Its working fine. But when i try to append some more stuff to the same tape its doesn't work, i am using the below command for backup,

# ufsdump 0bf 64k /dev/rmt/0cn /export/home/raj

Also any ideas about any freeware backup software's available.

Regards,

Rajendra Rait.

[414 byte] By [Rajendra] at [2007-11-25 23:01:17]
# 1

Gah - I <b>did</b> this before I threw away using ufsdump as being not worth the hassle.

You are correctly using the norewind device so as long as you are adding to the tape straight after the ufsdump you should be alright - I am not sure what would happen if you ejected the tape after the ufsdump.

SimonM at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 2
nope mate that didn't work, guys any help.Raj.
Rajendra at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 3

Hello Rajendra,

<i># ufsdump 0bf 64k /dev/rmt/0cn /export/home/raj</i>

SimonM wrote:

<i>You are correctly using the norewind device so as long as you are adding to the tape <b>straight after</b> the ufsdump you should be alright </i>

You wrote:

<i>nope mate that didn't work, guys any help.</i>

It appears to me that you rewind/reposition the tape after the above command. If the tape is repostioned in the meantime (eg. rewind or just reading the tape header) it doesn't append.

# mt rew

# ufsdump 0bf 64k /dev/rmt/0cn /export/home/raj

# ufsdump 0bf 64k /dev/rmt/0cn /export/home/ana

The third command appends to the tape, it doesn't overwrite the first session/set.

Rewind the tape <b>before</b> doing the backup and use consecutive commands (ufsdump) to backup the filessystems/directories.

Michael

maal at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 4
Yes, what Michael says!
SimonM at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 5

I followed the following steps,

# mt rew

# ufsdump 0bf 64k /dev/rmt/0cn /export/home/raj

#ufsdump 0bf 64k /dev/rmt/0cn /export/home/test

after that i got to the ufsrestore prompt by issuing this command,

# ufsrestore ivf /dev/rmt/0

ufsrestore > ls

.:

2 *./2 *../43448 export/

ufsrestore > cd export

ufsrestore > ls

./export:

43448 ./ 2 *../11009 home/

ufsrestore > cd home

ufsrestore > ls

./export/home:

11009 ./43448 ../203 raj/

the thing is that i should get the test folder also in the above list, but that doesn't work. Is there anything that i am doing wrong.

Raj.

Rajendra at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 6

Please bear in mind that all my knowledge of ufsdmp and ufsrestore is quite old and self-taught/discovered ...

I <b>thought</b> ufsdump would backup the whole of a ufs partition, but I could be wrong, thus with your two commands it would seem that each ufsdump is backing up only <b>part</b> of the file system (an assumption that the file system /export/home contains both raj and test).

If my assumption is correct then you need to tell ufsrestore to skip to the second ufsdump file on the tape - I seem to recall the -s parameter doing this (all this can be found from the man page for ufsrestore).

A far, far easier way of doing this would be to back up ALL of /export/home in one fell swoop using <b>ufsdump 0bf 64k /dev/rmt/0c /export/home</b>

SimonM at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 7

Hello Rajendra,

I was wrong. You didn't reposition the tape in the meantime, <b>but</b> as SimonM noted you must position the tape to the next session.

Please take the time to review the man pages for <b>ufsdump</b>, <b>ufsrestore</b> and <b>mt</b>.

You are looking for <b>mt fsf 1</b>.

Michael

maal at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 8
Yup that worked. Thank you guys for your time and help. Next time i would definately consider reviewing the man pages.Thank you again.Regards,Rajendra Rait.
Rajendra at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...
# 9
Gald to have been of help and glad to hear that the advice worked.
SimonM at 2007-7-5 17:50:40 > top of Java-index,Storage Forums,Storage General Discussion...