02-24-2011
Hi
first find out in which VG your filesystem resides, than if you do lspv and see besides the VG name something like concurrent, than your VG is more than likely part of a (hacmp- or application) cluster. You could as well compare the PVIDs on both nodes to check if the same disk is visible on both nodes - this is what I would do for VCS clusters on AIX - or you can have a look into /etc/VRTSvcs/conf/config/main.cf - there the clusterfilesystems are defined. On hacmp you could as well simply check your resourcegroup definitions.
df -g will show you if you have vxfs filesystems (usually happens only if you have older SFRAC clusters - nobody else would be stupid enough to use VXfs on AIX) - these can be resized online as well if you have enough space in the diskgroup - vxassist -g diskgroup help space can tell you if you do, vxresize -g diskgroup volumename +10G would add for example 10 gig to the filesystem.
If you have asm clusters (which naturally have no filesystems or volumegroups) the only way to find out which disks are used for it is checking / comparing the devices in /dev - usually asm devices start with asm_ or have *voting* or *ocr* in their names.
Hope this helps somehow
kind regards
zxmaus
Last edited by zxmaus; 02-25-2011 at 01:30 AM..
Reason: corrected typo
This User Gave Thanks to zxmaus For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This script monitors a FileSystem named /Monthly and send a page; works great but I need to monitor /Daily/All ....Im getting Syntax Error
MSG=`df -Ik|awk '$6~/Monthly$/{gsub("%"," ");
if ($5>20){print "FS:Monthly filesystem is "$5"%"}}'`
if
then echo $MSG | mail 2149724690@mobilecomm.net... (1 Reply)
Discussion started by: Openware
1 Replies
2. Solaris
Hi buddies, I have T1000 and Solaris 10 installed on it. After a power failure system shut down improperly.
Error Message is
WARNING - Unable to repair the / filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c0t0d0s0).
Jul 18 10:16:09 svc.startd:... (6 Replies)
Discussion started by: ahsen
6 Replies
3. Shell Programming and Scripting
Hi
I have an application running in four different node.The server is tomcat.Each node in each tomcat server.How do i check whether all the nodes are in cluster using shell script.
any command to check this would be of great use.:) (2 Replies)
Discussion started by: ahamed
2 Replies
4. Shell Programming and Scripting
hi guys have this little problem, need some help from script gurus.
basically I'm running hpux cmviewcl command, cmviewcl command will produce
db1pkg up running enabled box1
my script
PSV='box1'
STAT='up'
check_db1pkg()
{
# assign cmviewcl output... (2 Replies)
Discussion started by: sparcguy
2 Replies
5. UNIX for Dummies Questions & Answers
Hi
im connecting to a datacenter remotely. is there a command to know if the server is on a cluster?
i want to know the command to use in these OS(hp-ux,solaris,linux)
Thanks (6 Replies)
Discussion started by: jinslick25
6 Replies
6. Linux
I am working on a Linux server and want to check the cluster status. I dont know how many server is in cluster and what is the command to check. could you please help me to get the cluster status? (4 Replies)
Discussion started by: anshu ranjan
4 Replies
7. Solaris
Hi all
I am facing high utilization of my root partition. below is the output of df -h
bash-3.00# df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 9.9G 9.4G 406M 96% /
/devices 0K 0K 0K 0% /devices
ctfs ... (13 Replies)
Discussion started by: waqasahsan
13 Replies
8. Shell Programming and Scripting
Anyone know the best way to check and see if a NAS filesystem is mounted on a linux box. I have no idea where to start :wall:. (2 Replies)
Discussion started by: d3mon_spawn
2 Replies
9. High Performance Computing
Hello Everybody,
I have few queries :
Do you have any idea how to check the performance of HPC cluster having mpich on top of centos 6.2?
Are there any standard programs (like FFT, graphics rendering etc) to check the performance of mpi cluster with single node and multiple nodes?
Can we... (4 Replies)
Discussion started by: albertspade
4 Replies
10. AIX
Hi,
I need to know on which volume group filesystem resides.
TIA (5 Replies)
Discussion started by: sumanthupar
5 Replies
LEARN ABOUT HPUX
vxmirror
vxmirror(1M) vxmirror(1M)
NAME
vxmirror - mirror volumes on a disk or control default mirroring
SYNOPSIS
/etc/vx/bin/vxmirror [-g diskgroup ] [-d yes|no ] [-t tasktag ] medianame [new_medianame...]
/etc/vx/bin/vxmirror [-g diskgroup ] [-d yes|no ] [-t tasktag ] -a [new_medianame...]
/etc/vx/bin/vxmirror [-g diskgroup ] [-d yes|no]
/etc/vx/bin/vxmirror [-g diskgroup] -D
DESCRIPTION
The vxmirror command provides a mechanism to mirror all non-mirrored volumes that are located on a specified disk, to mirror all currently
non-mirrored volumes in the specified disk group, or to change or display the current defaults for mirroring. All volumes that have only a
single plex (mirror copy), are mirrored by adding an additional plex.
Volumes containing subdisks that reside on more than one disk are not mirrored by vxmirror.
vxmirror is generally called from the vxdiskadm menus. It is not an interactive command, and after it is called, continues until comple-
tion of the operation or until a failure is detected.
Note: Generating mirror copies of volumes can take a considerable time to complete.
In the first listed form of this command, the disk media name is supplied on the command line to vxmirror. That name is assumed to be the
only disk from which volumes are mirrored. In the case of mirroring volumes from a specified disk, only simple single-subdisk volumes are
mirrored.
In the first and second listed forms of the command, new_medianame... identifies a new disk media name (or set of names). The mirroring
operation uses these names as targets on which to allocate the mirrors. An error results if the same disk is specified for both the source
and target disk and if no other viable targets are supplied.
Hardware-Specifc Note
Some environments provide guidelines to optimize the VxVM's interaction with intelligent storage systems. If these guidelines are present,
VxVM follows the guidelines when creating volumes or allocating space for volumes. By default, vxmirror only creates mirror volumes that
conform with these guidelines. The following options change the behavior of vxmirror:
-o override
Creates a mirror of the specified volume and ignores any storage-specific guidelines. Overriding the guidelines is not recom-
mended as it can result in incompatible objects, or objects that cannot be administered by VxVM.
-o verify Verifies that the specified mirror can be created without violating any storage-specific guidelines, but does not create the
plex. If any guidelines are violated, vxmirror exits with an error message.
Note: These options need a specific license. Without the license, vxmirror ignores the specified option.
OPTIONS
-a Mirrors all existing volumes for the specified disk group.
-d yes | no
Changes the default for subsequent volume creation, depending on the option argument. If yes, then all subsequent volumes cre-
ated automatically become mirrored volumes. If no, then mirroring is turned off for future volumes created.
-D Displays current default status for mirroring.
-g diskgroup
Limits operation of the command to the given disk group, as specified by disk group ID or disk group name. The medianame oper-
ands are evaluated relative to the given disk group. If this option is not specified, the default disk group is determined using
the rules given in the vxdg(1M) manual page.
-t tasktag
Specifies using a tasktag as the tag for any tasks created to perform the mirror operations.
EXAMPLES
The following command mirrors all non-mirrored volumes on disk disk01 to the available space on any other available disk. Subsequent calls
to vxassist mirror created volumes by default.
/etc/vx/bin/vxmirror -d yes disk01
This command displays the current status of default mirroring. It outputs the string yes if mirroring is currently enabled, or no if mir-
roring is not enabled.
/etc/vx/bin/vxmirror -D
This command mirrors any volumes on disk02 to disk03.
/etc/vx/bin/vxmirror disk02 disk03
FILES
/etc/default/vxassist The defaults file for vxassist parameters.
SEE ALSO
vxassist(1M), vxdiskadm(1M), vxintro(1M), vxtask(1M)
VxVM 5.0.31.1 24 Mar 2008 vxmirror(1M)