06-25-2009
zfs maintenance under suncluster
Hello,
Running Solaris 10x86 - on the 2 nodes of sun cluster.
I have a zfspool as HAstorage and zfs as SUNW.nfs (failover)
Quote:
zpool status
pool: bobnfs-b
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
bobnfs-b ONLINE 0 0 0
c2t1d0s2 ONLINE 0 0 0
errors: No known data errors
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
bobnfs-b 158K 196G 28K /hazpool/bobnfs-b
bobnfs-b/export 18K 196G 18K /hazpool/bobnfs-b/export
Now these resources including Logical hostanme are online. No issues. But I want to change zfs-name 'export' to 'export-b'
What would be the correct procedure in order to achieve this. I know zfs rename is a simple command which can be run and I can even change the dfstab but don't understand sequence to do this neatly.
If i take cluster RG for these resources offline then zfs / zpool commands don't work.
Any idea ?
Thanks in advance
10 More Discussions You Might Find Interesting
1. Solaris
Hi there,
It's my first time here. I have an hard drive need a maintenance.
here the result of metastat :
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
host2{11}: metastat
d1: RAID
State: Needs Maintenance
Invoke: metareplace d1 c2t2d0s1 <new device>
Interlace:... (3 Replies)
Discussion started by: Juterassee
3 Replies
2. Solaris
Hello,
I have 2 systems Solaris 10 sparc with latest patches, 2 transports connected and 1 public port each and fiber connections to SAN.
This is first time I am doing a SUN cluster install (latest soft). I installed the software using ./installer and then tried to install using "scinstall"... (9 Replies)
Discussion started by: upengan78
9 Replies
3. UNIX and Linux Applications
Recently i faced problem starting oracle application on my galaxy cluster on one node.In the log i found that the CRS demon was not started after the booting of the node , so i manually tried to start it but faced some error.
So here are the work around that i had done and the CRS services got... (0 Replies)
Discussion started by: amitranjansahu
0 Replies
4. SuSE
How are libraries created and maintained? I tried the following to add prog.o to an existing library
ar -r library.so prog.o
but the output is "File format not recognized", on the other hand
nm --print-armap library.so
does print a table of contents. (2 Replies)
Discussion started by: jgt
2 Replies
5. UNIX for Dummies Questions & Answers
hELLO PEOPLE I AM DETECTING IN THE MIRROR ON MY SPARC THAT IS A DISK ASKING FOR MAINTENANCE.
d0: Mirror
Submirror 0: d10
State: Needs maintenance
Submirror 1: d20
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel... (0 Replies)
Discussion started by: enkei17
0 Replies
6. Shell Programming and Scripting
Hi Guys
i wonder if anyone can help. i want to create a script that checks multiple servers for disk space availible, cpu usage for past 24 hours. as well as check if all the hardware components are still doing their jobs. i will be doing this in the tcsh, can anyone help? OS = Sun Solaris 5.10... (2 Replies)
Discussion started by: brian112
2 Replies
7. Solaris
machine got into this mess after in-complete suncluster installation..
can't spawn the console-login service at all...
Feb 11 00:07:13 svc.startd: svc:/system/cluster/cl_boot_check:default: Method "/usr/cluster/lib/svc/method/svc_boot_check start" failed with exit status 1.
Feb 11 00:07:13... (1 Reply)
Discussion started by: ppchu99
1 Replies
8. Solaris
have a pair of sun servers, wanting to test drive a
2-node cluster using both software..
would like disable one of these cluster software while the othe is running..
Is it feasible at all ?? (2 Replies)
Discussion started by: ppchu99
2 Replies
9. Solaris
Hi! apache and tomcat are installed in default on solaris 10, after some configuration tomcat is enable, but apache status is maintenance... How to change its status to online...? The log say
And when I tape the svcs -xv commande, this is the result
bash-3.00# svcs -xv... (2 Replies)
Discussion started by: tood
2 Replies
10. Solaris
i booted into maintenance mode
boot -- -s
from the console
I got the
Root password for system maintenance (control-d to bypass)
I did control -d
and then logged in
it told me that I was booting into boot -s
but after I did a control -d and logged in
who -r shows
... (9 Replies)
Discussion started by: goya
9 Replies
LEARN ABOUT CENTOS
amzfs-snapshot
AMZFS-SNAPSHOT(8) System Administration Commands AMZFS-SNAPSHOT(8)
NAME
amzfs-snapshot - Amanda script to create zfs snapshot
DESCRIPTION
amzfs-snapshot is an Amanda script implementing the Script API. It should not be run by users directly. It create a zfs snapshot of the
filesystem where the path specified is mounted.
PRE-DLE-* create a snapshot and the POST-DLE-* destroy the snapshot, *-DLE-AMCHECK, *-DLE-ESTIMATE and *-DLE-BACKUP must be set to be
executed on the client:
execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup
execute-where client
The PRE_DLE_* script output a DIRECTORY property telling where the directory is located in the snapshot. The application must be able to
use the DIRECTORY property, amgtar can do it.
The script is run as the amanda user, it must have the priviledge to create and destroy snapshot:
zfs allow -ldu AMANDA_USER mount,snapshot,destroy 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 DLE must be one of:
Desciption Example
---------- -------
Mountpoint /data
Arbitrary mounted dir /data/interesting_dir
ZFS pool name datapool
ZFS filesystem datapool/database
ZFS logical volume datapool/dbvol
The filesystem must be mounted.
PROPERTIES
This section lists the properties that control amzfs-snapshot's functionality. See amanda-scripts(7) for information on the Script API,
script configuration.
DF-PATH
Path to the 'df' binary, search in $PATH by default.
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-snapshot script to create a snapshot and use amgtar to backup the snapshot.
define script-tool amzfs_snapshot {
comment "backup of zfs snapshot"
plugin "amzfs-snapshot"
execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup
execute-where client
#property "DF-PATH" "/usr/sbin/df"
#property "ZFS-PATH" "/usr/sbin/zfs"
#property "PFEXEC-PATH" "/usr/sbin/pfexec"
#property "PFEXEC" "NO"
}
define dumptype user-zfs-amgtar {
dt_amgtar
script "amzfs_snapshot"
}
SEE ALSO
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Jean-Louis Martineau <martineau@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Dustin J. Mitchell <dustin@zmanda.com>
Zmanda, Inc. (http://www.zmanda.com)
Amanda 3.3.3 01/10/2013 AMZFS-SNAPSHOT(8)