Solaris - Backup and restore a whole system
how to backup a whole bootable system over network
how to restore a whole bootable system over the network
How to create a full system backup with ufsdump (net) and restore it
This is the same backup as above but ...
this time it's writing the data to a file over the network
in this example I used a single HDD WS
Requirements:
1 Workstation
2 disk to backup
3 a jumpstart server
4 a WS with enough disk space for the backups
5 a bit time and passion ...
Remote backup System
create a directory for the backups
e.g. mkdir /export/u/work/backup
mkdir /export/u/work/backup/config
mkdir /export/u/work/backup/slice0
mkdir /export/work/backup/slice7
Boot from jumpstart server
1. start the workstation, press "STOP + A", type "boot net"
this will bring up the JAVA console
mount the remote backup/restore system
mount 100.100.100.50:/export/u/work/backup /a
Here r the steps to copy/clone the disk(s)
copy table of contents (partition information) from disk0 to /a
prtvtoc /dev/dsk/c0t0d0s2 > /a/config/%hostname%_slice0_vtoc
save a copy of the bootblk
mkdir /tmp/root/b
mount /dev/dsk/c0t0d0s0 /tmp/root/b
cp /tmp/root/b/usr/platform/sun4u/lib/fs/ufs/bootblk /a/config/%hostname%_slice0_bootblk
umount /tmp/root/b
start the backup ...
ufsdump 0f /a/slice0/backup_slice0.ufs /dev/rdsk/c0t0d0s0
ufsdump 0f /a/slice7/backup_slice7.ufs /dev/rdsk/c0t0d0s7
How to restore the data with ufsrestore (net)
Boot from jumpstart server
1. start the workstation, press "STOP + A", type "boot net"
this will bring up the JAVA console
mount the remote backup/restore system
mount 100.100.100.50:/export/u/work/backup /a
mount the slice u want to restore
mkdir /tmp/root/b
mount /dev/dsk/c0t0d0s0 /tmp/root/b
start the restore
cd /tmp/root/b
ufsrestore rf /a/slice0/backup_slice0.ufs
do the same with the other slices, then umount local devices
create a new bootblk
/usr/sbin/installboot /a/config/%hostname%_slice0_bootblk /dev/rdsk/c0t0d0s0
HINT: bootblk from DVD doesn't work for me
u must use the one from the original system!
check all slices (just 2 make shure it's all working properly)
fsck /dev/rdsk/c0t1d0s0
fsck /dev/rdsk/c0t1d0s3
fsck /dev/rdsk/c0t1d0s7
done
exit 0
how to restore a whole bootable system over the network
How to create a full system backup with ufsdump (net) and restore it
This is the same backup as above but ...
this time it's writing the data to a file over the network
in this example I used a single HDD WS
Requirements:
1 Workstation
2 disk to backup
3 a jumpstart server
4 a WS with enough disk space for the backups
5 a bit time and passion ...
Remote backup System
create a directory for the backups
e.g. mkdir /export/u/work/backup
mkdir /export/u/work/backup/config
mkdir /export/u/work/backup/slice0
mkdir /export/work/backup/slice7
Boot from jumpstart server
1. start the workstation, press "STOP + A", type "boot net"
this will bring up the JAVA console
mount the remote backup/restore system
mount 100.100.100.50:/export/u/work/backup /a
Here r the steps to copy/clone the disk(s)
copy table of contents (partition information) from disk0 to /a
prtvtoc /dev/dsk/c0t0d0s2 > /a/config/%hostname%_slice0_vtoc
save a copy of the bootblk
mkdir /tmp/root/b
mount /dev/dsk/c0t0d0s0 /tmp/root/b
cp /tmp/root/b/usr/platform/sun4u/lib/fs/ufs/bootblk /a/config/%hostname%_slice0_bootblk
umount /tmp/root/b
start the backup ...
ufsdump 0f /a/slice0/backup_slice0.ufs /dev/rdsk/c0t0d0s0
ufsdump 0f /a/slice7/backup_slice7.ufs /dev/rdsk/c0t0d0s7
How to restore the data with ufsrestore (net)
Boot from jumpstart server
1. start the workstation, press "STOP + A", type "boot net"
this will bring up the JAVA console
mount the remote backup/restore system
mount 100.100.100.50:/export/u/work/backup /a
mount the slice u want to restore
mkdir /tmp/root/b
mount /dev/dsk/c0t0d0s0 /tmp/root/b
start the restore
cd /tmp/root/b
ufsrestore rf /a/slice0/backup_slice0.ufs
do the same with the other slices, then umount local devices
create a new bootblk
/usr/sbin/installboot /a/config/%hostname%_slice0_bootblk /dev/rdsk/c0t0d0s0
HINT: bootblk from DVD doesn't work for me
u must use the one from the original system!
check all slices (just 2 make shure it's all working properly)
fsck /dev/rdsk/c0t1d0s0
fsck /dev/rdsk/c0t1d0s3
fsck /dev/rdsk/c0t1d0s7
done
exit 0
Bitte markiere auch die Kommentare, die zur Lösung des Beitrags beigetragen haben
Content-ID: 124828
Url: https://administrator.de/tutorial/solaris-backup-and-restore-a-whole-system-124828.html
Ausgedruckt am: 25.12.2024 um 00:12 Uhr