Our NIM server has a filesystem named /export/mksysb just to hold mksysb images. We use to have the client LPARs NFS mount this filesystem and create their backups there, but with AIX 6.1 TL5, the NIM server doesn't like it when there is already a /export/mksysb entry in the /etc/exports that he didn't put there. Now, we have our NIM server tell the clients to create their mksysb's to the same /export/mksysb filesystem on our NIM server. The difference is that the backups are being handled by our NIM server and it maintains the entries in the /etc/exports file. These are the NIM commands that we use:
First remove the old mksysb resource and file to create enough space for a new mksysb:
Code:
nim -o remove -a rm_image=yes lpar01_mksysb
Create a new mksysb file and NIM resource:
Code:
nim -o define \
-t mksysb \
-a server=master \
-a location=/export/mksysb/lpar01 \
-a source=lpar01 \
-a mk_image=yes \
-a mksysb_flags=iXp \
-a comments="lpar01_mksysb_AIX$(oslevel -r)_defined$(date +%Y/%m/%d)" \
lpar01_mksysb
Also, the NIM server doesn't like to make 2 mksysbs going on at the same time because it may not complete correctly due to limited amount of space in the /exports/mksysb filesystem. This can be over riden by adding the "-F" option to the first part like this:
Whats up guys. I dont ask many questions but this time i need a quick one answerd.
NOS: AIX 4.3.3 and 4.3.2
BOX: RS/6000 F50
i have 12 pv's (mirrored) and 2 vg's and i want them both backed up @ once on one tape drive so i can do it via cron.
I have looked at mksysb and backup. my main... (5 Replies)
Hi All
i have a number of IBM servers with different models, and i want to do a backup for the rootvg using mksysb and that backup will be stored on a 4mm DDS tape.
i have only one machine (p550) which i can use it for testing purposes, so the quesion is that can i test my mksysb backups on... (6 Replies)
hi guys,
i just want to take my server's mksysb backup through dvd-rom.but am having the doubt that, while am taking the mksysb backup in image it shows 8GB. So can i confirm that it takes 2 dvds and after writing in 1st cd it will ask for 2nd cd??????
please help me out. (1 Reply)
Hello,
Last night I applied a DB2 fix pack which is now causing problems with the application that uses db2. Prior to applying the fix pack I did a mksysb(rootvg) which includes the file system that has db2 installed on it. If I do a restore from this will it restore the db2 version back to... (1 Reply)
hi
we are having one rootvg in that we created one lv named mksysb_backuplv
and normally script will run accordingly to take the backup in the cron,here i just want to know if any rootfilesystem was correpted like /usr or /tmp ,then how could i restore the particular filesystme from the... (1 Reply)
i have an AIX server and planning to upgrade the operating system, before that i want to take a system backup which can be used in case of upgrade failure. i dont have NIM server t hold the mksysb backups. so i have the only option of taking the backup on DVD. i have the following optical drive... (5 Replies)
Hi Experts,
I am very new to AIX, I have a mksysb image in one of my aix server (V6), I would like to install this mksysb image on newly lpar. Is it possible without tape and NIM?
Advice would be appreciated.
Regards,
Rockie (11 Replies)
Discussion started by: aix.rockie
11 Replies
LEARN ABOUT CENTOS
ocf_heartbeat_exportfs
OCF_HEARTBEAT_EXPORT(7) OCF resource agents OCF_HEARTBEAT_EXPORT(7)NAME
ocf_heartbeat_exportfs - Manages NFS exports
SYNOPSIS
exportfs [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
Exportfs uses the exportfs command to add/remove nfs exports. It does NOT manage the nfs server daemon. It depends on Linux specific NFS
implementation details, so is considered not portable to other platforms yet.
SUPPORTED PARAMETERS
clientspec
The client specification allowing remote machines to mount the directory over NFS.
(required, string, no default)
options
The options to pass to exportfs for the exported directory.
(optional, string, no default)
directory
The directory which you wish to export using NFS.
(required, string, no default)
fsid
The fsid option to pass to exportfs. This can be a unique positive integer, a UUID, or the special string "root" which is functionally
identical to numeric fsid of 0. 0 (root) identifies the export as the root of an NFSv4 pseudofilesystem -- avoid this setting unless
you understand its special status. This value will override any fsid provided via the options parameter.
(unique, required, string, no default)
unlock_on_stop
Relinquish NFS locks associated with this filesystem when the resource stops. Enabling this parameter is highly recommended unless the
path exported by this exportfs resource is also exported by a different resource.
(optional, boolean, default 0)
wait_for_leasetime_on_stop
When stopping (unexporting), wait out the NFSv4 lease time. Only after all leases have expired does the NFS kernel server relinquish
all server-side handles on the exported filesystem. If this exportfs resource manages an export that resides on a mount point designed
to fail over along with the NFS export itself, then enabling this parameter will ensure such failover is working properly. Note that
when this parameter is set, your stop timeout MUST accommodate for the wait period. This parameter is safe to disable if none of your
NFS clients are using NFS version 4 or later.
(optional, boolean, default 0)
rmtab_backup
Back up those entries from the NFS rmtab that apply to the exported directory, to the specified backup file. The filename is
interpreted as relative to the exported directory. This backup is required if clients are connecting to the export via NFSv3 over TCP.
Note that a configured monitor operation is required for this functionality.
To disable rmtab backups, set this parameter to the special string "none".
(optional, string, default ".rmtab")
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 40.
stop
Stops the resource. Suggested minimum timeout: 10.
monitor
Performs a detailed status check. Suggested minimum timeout: 20. Suggested interval: 10.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 30.
EXAMPLE
The following is an example configuration for a exportfs resource using the crm(8) shell:
primitive p_exportfs ocf:heartbeat:exportfs
params
clientspec=string
directory=string
fsid=string
op monitor depth="0" timeout="20" interval="10"
SEE ALSO
http://www.linux-ha.org/wiki/exportfs_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 06/09/2014 OCF_HEARTBEAT_EXPORT(7)