07-30-2014
First question is, what do you mean by "restore"? You can restore a single file, restore multiple files, or restore the whole filesystem as in disaster recovery (DR).
In the latter case, if the filesystem is root and the system is down then you can't run any scripts - you have no system. In that case there's no alternative to experience and you'll need to boot from some other device (usually CD/DVD) and then enter commands manually. In the case of DR, a tar backup is usually not sufficient; you need something like ufsdump. What type of filesystem is it? ufs or zfs?
I think you need to provide much more detail of your configuration and what automation you are trying to achieve. Yes, you can easily script the restoration of a single file from the tar achive if that's what you are asking.
Also, how is the mirror made? Software (meta) or hardware (raidctl)?
Last edited by hicksd8; 07-30-2014 at 07:22 AM..
This User Gave Thanks to hicksd8 For This Post:
8 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have an ultra60 SUN Server with Solaris 10 4/04 S.O. installed on.
I mirrored root disk and now I try to restore this.
I simulate that I have lose the root FS, not for a hardware faillure but for a software problem and I can't use "meta"commands for using a good submirror.
I must restore... (1 Reply)
Discussion started by: bonovox
1 Replies
2. Solaris
Hi all,
Root mirror is broken under veritas control. so could you please help me how to boot the system now step by step procedure. i really thankful to all.
regards
krishna (3 Replies)
Discussion started by: murthy76
3 Replies
3. Solaris
Hi all
Can someone explain to me the different syntax regarding how root / mirror disks are represented. I never truely understand the namely / device tress etc.
Let me give you an example. On one my my servers, the root and mirror drives are :-
A domain on a sunfire 6800 :- ... (6 Replies)
Discussion started by: sbk1972
6 Replies
4. Solaris
Hi all
I wish to mirror for the root disk, but last time i do, make the server cannot boot up. :p So this time, hope you guys can assist me on it. =)
At the last code, is the step i wish to do. Please help to check and correct me if got any wrong.
root@leo # format </dev/null
Searching for... (17 Replies)
Discussion started by: SmartAntz
17 Replies
5. UNIX for Advanced & Expert Users
Hi,
I am using Solaris 10 OS and Bash shell.Is there any way can we automate User creation and setting passwords through a script or any freeware tool.
Advance thanks for your response. (1 Reply)
Discussion started by: muraliinfy04
1 Replies
6. HP-UX
what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies
7. Solaris
I have to do patching in single user mode in solaris 10 zfs root pool. Before that I have to detach the root mirror pool so that if patching fails then I can boot from detached root mirror pool. Please let me know how can I detach root pool
bash-3.2# zpool status
pool: rpool
state: ONLINE... (5 Replies)
Discussion started by: hb00
5 Replies
8. Solaris
Got a V490 with one existing root disk. Other disk slot was never populated.
Want to ensure we've got disk mirroring.
Currently vfstab mounts the physical disk - no mirroring set up.
Whats best way to achieve this without losing current disk? (1 Reply)
Discussion started by: psychocandy
1 Replies
LEARN ABOUT CENTOS
amzfs-sendrecv
AMZFS-SENDRECV(8) System Administration Commands AMZFS-SENDRECV(8)
NAME
amzfs-sendrecv - Amanda script to create zfs sendrecv
DESCRIPTION
amzfs-sendrecv is an Amanda application implementing the Application API. It should not be run by users directly. It create a zfs snapshot
of the filesystem and backup the snapshot with 'zfs send'. Snapshot are kept after the backup is done, this increase the disk space use on
the client but it is neccesary to be able do to incremental backup. If you want only full backup, you can disable this feature by setting
the KEEP-SNAPSHOT property to 'NO'. Only the restoration of the complete backup is allowed, it is impossible to restore a single file.
The application is run as the amanda user, it must have many zfs priviledge:
zfs allow -ldu AMANDA_USER mount,create,rename,snapshot,destroy,send,receive FILESYSTEM
Some system doesn't have "zfs allow", but you can give the Amanda backup user the rights to manipulate ZFS filesystems by using the
following command:
usermod -P "ZFS File System Management,ZFS Storage Management" AMANDA_USER
This will require that your run zfs under pfexec, set the PFEXEC property to YES.
The format of the diskdevice in the disklist (DLE) must be one of:
Desciption Example
---------- -------
Mountpoint /data
ZFS pool name datapool
ZFS filesystem datapool/database
ZFS logical volume datapool/dbvol
The filesystem doesn't need to be mounted.
PROPERTIES
This section lists the properties that control amzfs-sendrecv's functionality. See amanda-applications(7) for information on the
Application API, application configuration.
DF-PATH
Path to the 'df' binary, search in $PATH by default.
KEEP-SNAPSHOT
If "YES" (the default), snapshot are kept after the backup, if set to "NO" then snapshot are no kept and incremental backup will fail.
ZFS-PATH
Path to the 'zfs' binary, search in $PATH by default.
PFEXEC-PATH
Path to the 'pfexec' binary, search in $PATH by default.
PFEXEC
If "NO" (the default), pfexec is not used, if set to "YES" then pfexec is used.
EXAMPLE
In this example, a dumptype is defined to use amzfs-sendrecv application to backup a zfs filesystem.
define application-tool amzfs_sendrecv {
comment "amzfs-sendrecv"
plugin "amzfs-sendrecv"
#property "DF-PATH" "/usr/sbin/df"
#property "KEEP-SNAPSHOT" "YES"
#property "ZFS-PATH" "/usr/sbin/zfs"
#property "PFEXEC-PATH" "/usr/sbin/pfexec"
#property "PFEXEC" "NO"
}
define dumptype user-zfs-sendrecv {
program "APPLICATION"
application "amzfs_sendrecv"
}
SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-applications(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHOR
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 AMZFS-SENDRECV(8)