JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Sun QFS and Sun Storage Archive Manager 5.3 Reference Manual     Sun QFS and Sun Storage Archive Manager 5.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  User Commands (Man Pages Section 1)

2.  Maintenance Commands (Man Pages Section 1M)

archive_audit(1M)

archive_mark(1M)

archiver(1M)

archiver.sh(1M)

arcopy(1M)

arfind(1M)

auditslot(1M)

backto(1M)

build_cat(1M)

chmed(1M)

cleandrive(1M)

clri(1M)

damage(1M)

dev_down.sh(1M)

dmpshm(1M)

dump_cat(1M)

dump_log(1M)

exarchive(1M)

export(1M)

fsmadm(1M)

fsmdb(1M)

fsmgmtd(1M)

fsmgr(1M)

fsmgr_setup(1M)

fsmupd(1M)

generic(1M)

gnutar(1M)

HAStoragePlus_samfs(1M)

import(1M)

itemize(1M)

load(1M)

load_notify.sh(1M)

log_rotate.sh(1M)

mccfg(1M)

mount_samfs(1M)

move(1M)

nrecycler.sh(1M)

odlabel(1M)

qfsdump(1M)

qfsrestore(1M)

rearch(1M)

recover.sh(1M)

recycler(1M)

recycler.sh(1M)

releaser(1M)

reserve(1M)

restore.sh(1M)

robots(1M)

rpc.sam(1M)

sam-amld(1M)

sam-archiverd(1M)

sam-arcopy(1M)

sam-arfind(1M)

sam-catserverd(1M)

sam-clfsd(1M)

sam-clientd(1M)

sam-dbupd(1M)

sam-fsalogd(1M)

sam-fsd(1M)

sam-ftpd(1M)

sam-genericd(1M)

sam-grau_helper(1M)

sam-ibm3494d(1M)

sam-nrecycler(1M)

sam-recycler(1M)

sam-releaser(1M)

sam-rftd(1M)

sam-robotsd(1M)

sam-rpcd(1M)

sam-scannerd(1M)

sam-serverd(1M)

sam-sharefsd(1M)

sam-shrink(1M)

sam-sony_helper(1M)

sam-sonyd(1M)

sam-stagealld(1M)

sam-stagerd(1M)

sam-stagerd_copy(1M)

sam-stk_helper(1M)

sam-stkd(1M)

samadm(1M)

sambcheck(1M)

samchaid(1M)

samcmd(1M)

samcrondump(1M)

samcronfix(1M)

samd(1M)

samdb(1M)

samexplorer(1M)

samexport(1M)

samfsck(1M)

samfsconfig(1M)

samfsdump(1M)

samfsinfo(1M)

samfsrestore(1M)

samfstyp(1M)

samgetmap(1M)

samgetvol(1M)

samgrowfs(1M)

samimport(1M)

samload(1M)

sammkfs(1M)

samncheck(1M)

samquota(1M)

samquotastat(1M)

samset(1M)

samsharefs(1M)

samsnoop(1M)

samstorade(1M)

samtrace(1M)

samu(1M)

samunhold(1M)

save_core.sh(1M)

scanner(1M)

scsi_trace_decode(1M)

sefreport(1M)

sendtrap(1M)

set_admin(1M)

set_state(1M)

showqueue(1M)

stageall(1M)

stageback.sh(1M)

star(1M)

tapealert(1M)

tarback.sh(1M)

tplabel(1M)

tpverify(1M)

trace_rotate(1M)

umount_samfs(1M)

unarchive(1M)

undamage(1M)

unload(1M)

unrearch(1M)

unreserve(1M)

3.  Library Functions (Man Pages Section 3)

4.  Library Functions (Man Pages Section 3X)

5.  File Formats (Man Pages Section 4)

6.  Standards, Environment, and Macros (Man Pages Section 5)

7.  Device and Network Interfaces (Man Pages Section 7)

samsharefs(1M)

NAME
     samsharefs - Manipulates the Sun QFS shared file system
     configuration

SYNOPSIS
     samsharefs [-f host] [-h] [-o host] [-q] [-R] [-s host] [-u]
     fs_name

AVAILABILITY
     SUNWsamfs
     SUNWqfs

DESCRIPTION
     The samsharefs command prints and modifies the host
     configuration for a Sun QFS shared file system.  The printed
     hosts configuration identifies the metadata server and the
     client hosts included in the Sun QFS shared file system.
     This command is only valid from the metadata server or
     potential metadata server.

     You create an initial hosts configuration file using vi(1)
     or another text editor.  The sammkfs(1M) command reads this
     initial hosts configuration from
     /etc/opt/SUNWsamfs/hosts.fs_name when the SAM-QFS shared
     file system is created.

     To subsequently change the host configuration you must use
     the samsharefs command.  Typically, you use an editor to
     edit the ASCII hosts configuration as printed by the
     samsharefs command and use the samsharefs command to update
     the file system host configuration.

OPTIONS
     This command accepts the following options:

     -f host   Marks host "off" in the hosts file.  This option
               rewrites the on-disk hosts file and causes the
               SAM-QFS daemon to reread the hosts file.  Marking
               the host off disallows that host to access the
               specified fs_name, and is reversed by using the -o
               option.  -f is incompatible with -u parameter.

               Marking a host client "off" allows that client to
               remain in the host file, but not access the
               specified file system.  It is intended to be used
               to remove clients and not require the file system
               to be unmounted on all other clients.  The removed
               host remains in the host file as a placeholder and
               can later be restored by using the -o parameter.
               Note that the client will need to be marked "off"
               from the metadata server for each file system that
               it mounts.

               The host client's "on" or "off" status can be seen
               in the 4th column of the host file (as printed by
               the samsharefs command).  For backwards
               compatibility, a "-", "0", or blank in this column
               indicates "on".  Also, if a client is marked off,
               it is indicated by an "OFF" flag on the samu "g"
               display (or the samcmd g command).

               CAUTIONS & LIMITATIONS:  A file system that is to
               be shared to other clients must be mounted on the
               metadata server and also be mountable to potential
               metadata servers.  Thus a client that is an actual
               metadata server cannot be marked off.

               The only supported way to mark a client host off
               is to unmount its file systems and shutdown and
               halt the client.  Then issue the samsharefs -f
               host fs command from the metadata server.

               The only supported way to restore a client host is
               to mark the client host on (using the -o
               parameter) prior to booting that client.  The
               client is then free to remount the affected file
               system.

               Clients, while marked off, will not be able to
               contact the metadata server for that file system.
               If a marked-off client tries to contact the
               metadata server for that file system, its messages
               will be discarded and system hangs may occur.  The
               result of trying to talk to a metadata server from
               a marked-off client is undefined and not
               supported.

     -h        Writes a short usage message to stdout.

     -o host   Marks host "on" in the hosts file.  This option
               rewrites the on-disk hosts file and causes the
               SAM-QFS daemon to reread the hosts file.  Marking
               the host on allows that host to access to the
               specified fs_name, and reverses the effect of the
               -f option.  -o is incompatible with -u parameter.
               See -f option above for cautions & limitations.

     -q        Suppresses host configuration output.  By default,
               the command writes the file system host
               configuration, possibly modified, to stdout.

     -R        Specifies that the file system's host
               configuration should be manipulated using the raw
               disk device associated with the file system,
               rather than the file system interfaces.  This
               option can be used to change hosts information
               when the file system is not or cannot be mounted.
               This option can also be used to change hosts
               information when the file system is mounted, but
               the active metadata server is down.

               CAUTION:  This option must not be executed on a
               potential metadata server to change the metadata
               server host without first stopping, disabling, or
               disconnecting the active metadata server.  Doing
               so will cause file system corruption.

     -s host   Sets the server flag for the specified host in the
               system configuration.  This option declares host
               to be the new metadata server host.  All other
               hosts's server flags are cleared.

     -u        Specifies that the file system's configuration is
               to be updated from
               /etc/opt/SUNWsamfs/hosts.fs_name.  When updating
               the configuration of a mounted file system, new
               host entries can only be added to the end of the
               existing configuration.  If the server or any
               host's position differs between hosts.fs_name and
               the active configuration (i.e., the order of the
               hosts is changed), the command issues an error
               message and exits; changing these characteristics
               can be done safely only on an idle, unmounted file
               system.  (See the -R option.)

     fs_name   Specifies the family set name of the Sun QFS
               shared file system.

EXAMPLES
     Example 1.  The following example shows how to use the
     samsharefs to examine the hosts information on a mounted Sun
     QFS shared file system:

     tethys# samsharefs share1
     #
     # Host file for family set 'share1'
     #
     # Version: 4    Generation: 14    Count: 3
     # Server = host 0/titan, length = 112
     #
     titan titan.xyzco.com 1 0
     tethys tethys.xyzco.com 2 0
     mimas mimas.xyzco.com 0 0

     Example 2.  The following example shows how the hosts
     configuration can be modified to add new hosts to the shared
     file system.  The administrator has edited
     /etc/opt/SUNWsamfs/hosts.share1 and added new hosts for the
     shared file system as shown.  samsharefs is then run with
     the -u option to update the (mounted) file system's
     configuration.

     titan# samsharefs share1
     #
     # Host file for family set 'share1'
     #
     # Version: 4    Generation: 14    Count: 3
     # Server = host 0/titan, length = 112
     #
     titan titan.xyzco.com 1 0
     tethys tethys.xyzco.com 2 0
     mimas mimas.xyzco.com 0 0

     titan# cat /etc/opt/SUNWsamfs/hosts.share1
     #
     # New share1 config, adds dione and rhea
     #
     titan   titan.xyzco.com 1 0 server
     tethys tethys.xyzco.com 2 0
     mimas   mimas.xyzco.com 0 0
     dione   dione.xyzco.com 0 0
     rhea     rhea.xyzco.com 0 0

     titan# samsharefs -u share1
     #
     # Host file for family set 'share1'
     #
     # Version: 4    Generation: 15    Count: 5
     # Server = host 0/titan, length = 162
     #
     titan titan.xyzco.com 1 0
     tethys tethys.xyzco.com 2 0
     mimas mimas.xyzco.com 0 0
     dione dione.xyzco.com 0 0
     rhea rhea.xyzco.com 0 0

     Example 3.  The following example shows how the hosts
     configuration can be modified to change the Sun QFS shared
     file system server while the file system is mounted.

     tethys# samsharefs -s tethys share1
     #
     # Host file for family set 'share1'
     #
     # Version: 4    Generation: 16    Count: 5
     # Server = host 0/titan, length = 162
     # Pending Server = host 1/tethys
     #
     titan titan.xyzco.com 1 0
     tethys tethys.xyzco.com 2 0
     mimas mimas.xyzco.com 0 0
     dione dione.xyzco.com 0 0
     rhea rhea.xyzco.com 0 0

     Example 4.  The following example shows how the hosts
     configuration can be modified to add a new Sun QFS shared
     file system server.  Because the new server's entry is being
     inserted into the existing list rather than appended to the
     end, the file system must be unmounted on all hosts before
     executing this command, and the -R option must be specified.
     Note also that this command changes the file system server
     back to titan (from tethys).

     tethys# samsharefs -R share1
     #
     # Host file for family set 'share1'
     #
     # Version: 4    Generation: 17    Count: 5
     # Server = host 1/tethys, length = 162
     #
     titan titan.xyzco.com 1 0
     tethys tethys.xyzco.com 2 0
     mimas mimas.xyzco.com 0 0
     dione dione.xyzco.com 0 0
     rhea rhea.xyzco.com 0 0

     tethys# cat /etc/opt/SUNWsamfs/hosts.share1
     #
     # New share1 config, adds server iapetus
     #
     titan     titan.xyzco.com 1 0 server
     tethys   tethys.xyzco.com 2 0
     iapetus iapetus.xyzco.com 3 0
     mimas     mimas.xyzco.com 0 0
     dione     dione.xyzco.com 0 0
     rhea       rhea.xyzco.com 0 0

     tethys# samsharefs -u -R share1
     #
     # Host file for family set 'share1'
     #
     # Version: 4    Generation: 18    Count: 6
     # Server = host 0/titan, length = 192
     #
     titan titan.xyzco.com 1 0
     tethys tethys.xyzco.com 2 0
     iapetus iapetus.xyzco.com 3 0
     mimas mimas.xyzco.com 0 0
     dione dione.xyzco.com 0 0
     rhea rhea.xyzco.com 0 0

FILES
     The hosts configuration for a Sun QFS shared file system is
     initialized from:

     /etc/opt/SUNWsamfs/hosts.fs_name

     This file is used at the time of file system creation by
     sammkfs(1M) and subsequently when the -u option is specified
     to samsharefs(1M).

NOTE
     In SAM-QFS shared file system environments, archiving
     operations should be stopped on the metadata server before
     changing the metadata server.

CAUTION
     The -R option must not be used on a mounted file system to
     change the metadata server host without first stopping,
     disabling, or disconnecting the active metadata server and
     ensuring that it is restarted before accessing the file
     system again.  Doing so will cause file system corruption.

SEE ALSO
     sammkfs(1M).