I just want to backup whatever file system is in the root disks, just in case those fail. I use
---------- Post updated at 01:50 PM ---------- Previous update was at 01:49 PM ----------
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:
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:
Thanks a lot for your input. I will investigate the
command.
As an example, the above is what I want to backup, in order to recover if the root disk fail:
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.
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.
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.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)