10 More Discussions You Might Find Interesting
1. Solaris
hi there,
i using salaris 10 as my DNS server.
i have 2 dns server primary and secondary. if primary dns server i edit/update, the other secondary dns server must be sync too.
How can i configure if dns server (primary) can sync the secondary? (1 Reply)
Discussion started by: tappetmus
1 Replies
2. AIX
Hi,
In a Dual VIOSs setup having 4 SEA adapters each, how to find which one is Primary and Secondary.?
Regards,
Siva (2 Replies)
Discussion started by: ksgnathan
2 Replies
3. Linux
Hi
New here so forgive my ignorance and inability to express myself in an informative manner ;)
I have a Fedora distribution installed on my development computer. The system we build is meant to run on a slackware dist which is all fine and well. But due to our flow of deployment I would have... (2 Replies)
Discussion started by: inquam
2 Replies
4. Red Hat
Hi,
I have 4 machines and all are NTP configured with same ntp.conf file. But 3 machines are in sync with Time server and 4th machine is not contacting & sync with the NTP server. Please see the below details.
# service ntpd stop
Stopping ntpd: ... (0 Replies)
Discussion started by: uday123
0 Replies
5. Shell Programming and Scripting
Is there a command or better combination of cmds that will give me the list of Unix users in a particular Unix group whether their primary group is that group in question (information stored in /etc/passwd) or they are in a secondary group (information stored in /etc/group).
So far all I got... (5 Replies)
Discussion started by: ckmehta
5 Replies
6. UNIX for Dummies Questions & Answers
Hello All,
Does some one know how to synchronize the primary name server with the secondary without knowing the domains on which synchronization failed.
I have just done /usr/sbin/ndc reload
Alternatively how do i find out the domains on which synchronization failed? (4 Replies)
Discussion started by: a2z1982
4 Replies
7. Filesystems, Disks and Memory
Wellcomes All,
some times ago I 've installed a Debian ditribution on an Hard Disk who was set as Primary Master. Few days ago, I 've decided to install another Hard Disk with a different Operating System. When I did that, I turned off the old hard disk, and I mouted the new one on the Primary IDE... (1 Reply)
Discussion started by: thekarsillo
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
When I invoke a script s1.sh it will call an another script s2.sh by itself. This script s2.sh will call some java files, so while running the script it asks for a file name to be processed. Which we can see in the screen.
The file name to be processed is present in script s1.sh
Now I... (2 Replies)
Discussion started by: venu_eie
2 Replies
9. Shell Programming and Scripting
Hi,
When I invoke a script s1.sh it will call an another script s2.sh by itself. This script s2.sh will call some java files, so while running the script it asks for a file name to be processed. Which we can see in the screen.
The file name to be processed is present in script s1.sh
Now... (1 Reply)
Discussion started by: venu_eie
1 Replies
10. UNIX for Dummies Questions & Answers
Is there any command which can list me all the Group ID's (Primary, Secondary ) assocaited with a single user.
Thanks
Sanjay (2 Replies)
Discussion started by: sanjay92
2 Replies
HASTCTL(8) BSD System Manager's Manual HASTCTL(8)
NAME
hastctl -- Highly Available Storage control utility
SYNOPSIS
hastctl create [-d] [-c config] [-e extentsize] [-k keepdirty] [-m mediasize] name ...
hastctl role [-d] [-c config] <init | primary | secondary> all | name ...
hastctl list [-d] [-c config] [all | name ...]
hastctl status [-d] [-c config] [all | name ...]
hastctl dump [-d] [-c config] [all | name ...]
DESCRIPTION
The hastctl utility is used to control the behaviour of the hastd(8) daemon.
This utility should be used by HA software like heartbeat or ucarp to setup HAST resources role when changing from primary mode to secondary
or vice versa. Be aware that if a file system like UFS exists on HAST provider and primary node dies, file system has to be checked for
inconsistencies with the fsck(8) utility after switching secondary node to primary role.
The first argument to hastctl indicates an action to be performed:
create Initialize local provider configured for the given resource. Additional options include:
-e extentsize Size of an extent. Extent is a block which is used for synchronization. hastd(8) maintains a map of dirty extents
and extent is the smallest region that can be marked as dirty. If any part of an extent is modified, entire extent
will be synchronized when nodes connect. If extent size is too small, there will be too much disk activity related to
dirty map updates, which will degrade performance of the given resource. If extent size is too large, synchroniza-
tion, even in case of short outage, can take a long time increasing the risk of losing up-to-date node before synchro-
nization process is completed. The default extent size is 2MB.
-k keepdirty Maximum number of dirty extents to keep dirty all the time. Most recently used extents are kept dirty to reduce num-
ber of metadata updates. The default number of most recently used extents which will be kept dirty is 64.
-m mediasize Size of the smaller provider used as backend storage on both nodes. This option can be omitted if node providers have
the same size on both sides.
If size is suffixed with a k, M, G or T, it is taken as a kilobyte, megabyte, gigabyte or terabyte measurement respectively.
role Change role of the given resource. The role can be one of:
init Resource is turned off.
primary Local hastd(8) daemon will act as primary node for the given resource. System on which resource role is set to primary
can use /dev/hast/<name> GEOM provider.
secondary Local hastd(8) daemon will act as secondary node for the given resource - it will wait for connection from the primary
node and will handle I/O requests received from it. GEOM provider /dev/hast/<name> will not be created on secondary node.
list Present verbose status of the configured resources.
status Present terse (and more easy machine-parseable) status of the configured resources.
dump Dump metadata stored on local component for the configured resources.
In addition, every subcommand can be followed by the following options:
-c config Specify alternative location of the configuration file. The default location is /etc/hast.conf.
-d Print debugging information. This option can be specified multiple times to raise the verbosity level.
FILES
/etc/hast.conf Configuration file for hastctl and hastd(8).
/var/run/hastctl Control socket used by hastctl to communicate with the hastd(8) daemon.
EXIT STATUS
Exit status is 0 on success, or one of the values described in sysexits(3) on failure.
EXAMPLES
Initialize HAST provider, create file system on it and mount it.
nodeB# hastctl create shared
nodeB# hastd
nodeB# hastctl role secondary shared
nodeA# hastctl create shared
nodeA# hastd
nodeA# hastctl role primary shared
nodeA# newfs -U /dev/hast/shared
nodeA# mount -o noatime /dev/hast/shared /shared
nodeA# application_start
Switch roles for the shared HAST resource.
nodeA# application_stop
nodeA# umount -f /shared
nodeA# hastctl role secondary shared
nodeB# hastctl role primary shared
nodeB# fsck -t ufs /dev/hast/shared
nodeB# mount -o noatime /dev/hast/shared /shared
nodeB# application_start
SEE ALSO
sysexits(3), geom(4), hast.conf(5), fsck(8), ggatec(8), ggatel(8), hastd(8), mount(8), newfs(8)
AUTHORS
The hastctl was developed by Pawel Jakub Dawidek <pjd@FreeBSD.org> under sponsorship of the FreeBSD Foundation.
BSD
March 14, 2013 BSD