How to backup when there is no tape available?


 
Thread Tools Search this Thread
Operating Systems Solaris How to backup when there is no tape available?
# 8  
Old 03-19-2014
How to backup when there is no tave available?

I just want to backup whatever file system is in the root disks, just in case those fail. I use
Code:
solaris 10

---------- Post updated at 01:50 PM ---------- Previous update was at 01:49 PM ----------

its solaris 10
Code:
ufs

# 9  
Old 03-19-2014
Solaris 10, yes, and is the root filesystem ufs or zfs?

---------- Post updated at 12:37 PM ---------- Previous update was at 11:51 AM ----------

Right then, I get the question; there could be many answers and every professional could have a different opinion. You asked for ideas to be shared so here goes.

The scenario I've faced many times is that I have a very big system with lots of non-root filesystems and tons of storage. Minimum down time is critical but suddenly the system won't boot. I just want to get the system on its feet so that I can take a look around.

Backup:
1. Create a NFS share on a remote system and mount it
2. Pick a fairly quiescent time and 'fssnap' the root filesystem (to freeze it temporarily) sending the journal ('backing_store' switch on fssnap) to one of your other local filesystems.
3. Run 'ufsdump' to backup the whole filesystem to the NFS storage.
4. Make a note of your ip interface name (eg, e1000g0 or whatever)
5. Make a note of all the VTOC's

Note that you need to gauge the frequency of doing the backup because, in the event of a recovery, new users, groups, security changes and patches will be mssing.

Recovery:
Suddenly the system won't boot so.....
1. Boot from CD into single user:
Code:
boot cdrom -s

2. Use 'format' to check disk visibility and check slicing of disks.
3. After confirming that local recovery (eg, fsck, etc) will not fix the issue, 'newfs' the root disk slice. Root filesystem is now empty.
4. Mount the new empty root filesystem under /a
5. Use 'ifconfig' to manually 'plumb', 'address' and 'up' your network interface.
6. Check that you can ping the NFS node holding your ufsdump(s)
7. Mount the remote NFS storage under /mnt
8. Change directory to the top of your hard disk (empty) root
9. 'ufsrestore' the backup from the NFS storage to the root hard disk
10. 'sync' and 'umount' the NFS storage and the root hard disk and do an orderly shutdown.
11. System should now boot.

Note that if your /usr filesystem is separate from the root filesystem you should consider backing up that for emergency recovery too since without being able to mount /usr the recovered system will probably go into maintenance if it cannot mount /usr

As I say, all professionals have their own opinion and you may well get a torrent of alternatives posted to this thread. You may also have further question about what I have written above. Feel free to ask.

You could, of course, use 'flarcreate' to create a flash of just your root disk filesystem and that is certainly a good option. The above is just the method that I have used on Solaris 10 with ufs. You can, of course, test your recovery procedure by using a dummy root slice elsewhere on the system (not the real one).

Hope that helps.
These 2 Users Gave Thanks to hicksd8 For This Post:
# 10  
Old 03-19-2014
How to backup when there is no tave available?

Thanks a lot for your input. I will investigate the
Code:
flarcreate

command.
As an example, the above is what I want to backup, in order to recover if the root disk fail:

Code:
bash-3.00# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0      9.8G   493M   9.3G     5%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    15G   1.7M    15G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/dsk/c1t0d0s3      9.8G   3.6G   6.1G    38%    /usr
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                       9.8G   493M   9.3G     5%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                       9.8G   493M   9.3G     5%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c1t0d0s4      9.8G   108M   9.6G     2%    /var
/dev/dsk/c1t0d0s5       49G    80M    49G     1%    /tmp
swap                    15G    56K    15G     1%    /var/run
/dev/dsk/c1t0d0s6      9.8G    38M   9.7G     1%    /opt
bash-3.00#

# 11  
Old 03-19-2014
ufsdump will take a complete backup of the slice, everything, exactly as it is facilitating an exact recovery to that position, so includes the likes of /platform, /dev, et al.

Full recovery of the hard disk root filesystem slice will make the O/S bootable (except for the note I made about /usr). The system will then be bootable so you can look at all the non-root (non-O/S) stuff to decide whether non-root's are repairable or also need to be recovered.

Your post shows that your /usr is, indeed, separate, so you should ufsdump that too. In the event of an emergency recovery, ufsrestore the root slice first and then, if it goes into maintenance, ufsrestore the /usr slice too.
# 12  
Old 03-19-2014
So is this a single disk server then? It would seem so.

It might be worth taking a partition map too to aid your recovery if you have to slice a replacement disk. If you run format you will probably get a list of one disk, c1t0s0. Select it, then go for Partition, then Print. This detail can be useful for ensuring your restore will fit the space you might need to reallocate following a completely failed drive.

Keep it with your dump files on another server, and whilst you are at it, keep more than one copy and refresh them regularly.

Some questions that remain:-
  • Do you have the space to do this?
  • Are you planning on storing server A on server B and Server B on server A?
If so, then the dump files of server A will get included in the dump of server B and written back to server A, then the next backup of server A will get the image of server B including the images of server A, so these would grow exponentially.

Have you got a server or pair available just to hold the dumps of all the others? Although it was a little flippant, my suggestion is still to buy a tape drive. That way, you can get your copies off-site in case you lose the building to fire/flood/engineering/power cut etc.


Robin
# 13  
Old 03-19-2014
@rbatte1.....I was assuming there was no tape on this one system not that there was no tape on the site.

@fretagi.......what is the site backup strategy?
# 14  
Old 03-19-2014
How to backup when there is no tave available?

For this particular server which I am still building it, I will have all its file systems on a NetApp, and it will host a oracle database. A full backup of the database will be required at the end of each month, but I am not sure about the end of the week.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Backup on Tape

Hi, I am very new to AIX, i have a development and a production server with AIX 6.1. I am using following command to backup my system /usr/bin/mksysb '-m' '-V' '-i' /dev/rmt0 You can what i have in my root volume group in the atached file and and you can also see the backup information of... (14 Replies)
Discussion started by: salmanucit
14 Replies

2. UNIX for Dummies Questions & Answers

Backup Tape suggestion

Hi All, I would like some feedback / suggestion /recommendation about backup tape/disaster recovery for linux box as i'm new to linux. We have linux box running as webserver which hosting website files. I know that i have to backup all "website files". Is there any Linux system file i have... (2 Replies)
Discussion started by: c00kie88
2 Replies

3. SCO

Backup to SCSI Tape Backup aborts

I am trying to make a full backup of my system using the cpio command. The Tape Unit is a SCSI DDS. The process started fine but after about 30 minutes, it just stopped and showed the following message: 1755 Signal 31 - Core dumped Any idea of what is causing this and how to fix it? ... (4 Replies)
Discussion started by: zionpc
4 Replies

4. UNIX for Dummies Questions & Answers

Check backup file size on backup tape

Hi, I performed backup on tape and I want to append more files to my previous backup on the same backup tape. But before I do that I need to know the backup file size of the first backup I performed so that I know the available size on the backup tape. Can someone help me what command I will use... (0 Replies)
Discussion started by: ayhanne
0 Replies

5. UNIX for Dummies Questions & Answers

Mounting DLT tape and to backup file to tape

Hi there: I'm new here Can anyone help me: I have DS15 Alpha server : Unix 5.1B Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit. What is the exact comman to mount the DLTape IV?? How do i make backuo @ copy file to the tape? Thanx to all (0 Replies)
Discussion started by: ayzeayem
0 Replies

6. Solaris

backup to tape - compression?

How can I tell (from the command line) is compression is turned on for a tape drive? I need to backup a system that is approx 150gb to a tape that has 110gb uncompress but 220gb available compressed. Any ideas? Also is it possible to turn compression on or off from the command line? I am... (1 Reply)
Discussion started by: frustrated1
1 Replies

7. Solaris

backup using tape

hello everybody... i need some help ... so... i need to do some backups from one solaris system and i dont know whitch is the best solution....to use tar or ufsdump...? ...and .... how can i restore files from tape if on the tape i have 2 sessions....how can i access second session....? enough... (4 Replies)
Discussion started by: nich007
4 Replies

8. UNIX for Dummies Questions & Answers

Tape Backup

I have a script which runs overnight to backup a database into a tar file. I then gzip the file and send it off to a tape device. The command I'm using for the tape backup is tar cvf /dev/rmt/0n /var/dbbackup/${FILE}.gz I thought the n meant no rewind so the next file is copied to tape... (4 Replies)
Discussion started by: mattd
4 Replies

9. UNIX for Dummies Questions & Answers

How to add backup tape

Hi guys I have a Caldera Openlinux 3.1.1 i'm new with this OS so please bear with me. I have no idea about how to install my backup tape could any of you tell me how to do this. I worked before with unix sco openserver 5.0.6 and i know that you can use scoadmin and then option (tape ). ... (1 Reply)
Discussion started by: josramon
1 Replies

10. UNIX for Dummies Questions & Answers

Tape Backup

Can someone please.... help me how to install tape backup I am using FreeBSD Unix version running on I386 PC box. My IDE tape device is made by HP (Colorado 5GB). Thank you in advance! (15 Replies)
Discussion started by: jackpotp
15 Replies
Login or Register to Ask a Question