샤브의 블로그 RSS 태그 관리 글쓰기 방명록
전체 글 (234)
2010-09-03 02:23:53

NAME

ifconfig - configure network interface parameters

SYNOPSIS

/sbin/ifconfig interface [ address_family ] [ address [ dest_address ] ] [ up ] [ down ] [ auto-revarp ] [ netmask mask ] [ broadcast address ] [ metric n ] [ mtu n ] [ trailers | -trailers ] [ private | -private ] [ arp | -arp ] [ plumb ] [ unplumb ]
/usr/sbin/ifconfig interface [ address_family ] [ address [ dest_address ] ] [ up ] [ down ] [ auto-revarp ] [ netmask mask ] [ broadcast address ] [ metric n ] [ mtu n ] [ trailers | -trailers ] [ private | -private ] [ arp | -arp ] [ plumb ] [ unplumb ]

AVAILABILITY

SUNWcsr

DESCRIPTION

ifconfig is used to assign an address to a network interface and/or to configure network interface parameters. ifconfig must be used at boot time to define the network address of each interface present on a machine; it may also be used at a later time to redefine an interface's address or other operating parameters. Used without options, ifconfig displays the current configuration for a network interface. If a protocol family is specified, ifconfig will report only the details specific to that protocol family. Only the super-user may modify the configuration of a network interface.
The interface parameter is a string of the form name unit, for example le0 or ie1. Three special interface names, -a ,-ad and -au, are reserved and refer to all or a subset of the interfaces in the system. If one of these interface names is given, the commands following it are applied to all of the interfaces that match:
-a
Apply the commands to all interfaces in the system.
-ad
Apply the commands to all ``down'' interfaces in the system.
-au
Apply the commands to all ``up'' interfaces in the system.
Since an interface may receive transmissions in differing protocols, each of which may require separate naming schemes, the parameters and addresses are interpreted according to the rules of some address family, specified by the address_family parameter. The address families currently supported are ether and inet. If no address family is specified, inet is assumed.
For the TCP/IP family (inet), the address is either a host name present in the host name data base (see hosts(4)) or in the Network Information Service (NIS) map hosts, or a TCP/IP address expressed in the Internet standard "dot notation". Typically, an Internet address specified in dot notation will consist of your system's network number and the machine's unique host number. A typical Internet address is 192.9.200.44 ,where 192.9.200 is the network number and 44 is the machine's host number.
For the ether address family, the address is an Ethernet address represented as x: x: x: x: x: xwhere x is a hexadecimal number between 0 and FF.
If the dest_address parameter is supplied in addition to the address parameter, it specifies the address of the correspondent on the other end of a point to point link.

OPTIONS

arp
Enable the use of the Address Resolution Protocol in mapping between network level addresses and link level addresses (default). This is currently implemented for mapping between TCP/IP
addresses and 10Mb/s Ethernet addresses.
-arp
Disable the use of the Address Resolution Protocol.
auto-revarp
Use the Reverse Address Resolution Protocol (RARP) to automatically acquire an address for this interface.
down
Mark an interface "down". When an interface is marked "down", the system will not attempt to transmit messages through that interface. If possible, the interface will be reset to disable reception as well. This action does not automatically disable routes using the interface.
plumb
Open the device associated with the interface name and setup the streams needed for TCP/IP to use the device. Before this is done the interface will not show up in the output of ifconfig -a .
unplumb
Destroy any streams associated with this device and close the device. After this command is executed the device name should not show up in the output of ifconfig -a .
private
Tells the in.routed routing daemon that the interface should not be advertised.
-private
Specify unadvertised interfaces.
trailers
This flag used to cause a non-standard encapsulation of inet packets on certain link levels. Drivers supplied with this release no longer use this flag, but it is ignored for compatibility.
-trailers
Disable the use of a "trailer" link level encapsulation.
up
Mark an interface "up". This happens automatically when setting the first address on an interface. The up option enables an interface after an ifconfig down, reinitializing the hardware.
broadcast address
(inet only.) Specify the address to use to represent broadcasts to the network. The default broadcast address is the address with a host part of all 1's. A + (plus sign) given for the broadcast value causes the broadcast address to be reset to a default appropriate for the (possibly new) address and netmask. Note: The arguments of ifconfig are interpreted left to right, and therefore
ifconfig -a netmask + broadcast +
and
ifconfig -a broadcast + netmask +
may result in different values being assigned for the interfaces' broadcast addresses.
metric n
Set the routing metric of the interface to n, default 0 . The routing metric is used by the routing protocol Higher metrics have the effect of making a route less favorable; metrics are counted as addition hops to the destination network or host.
mtu n
Set the maximum transmission unit of the interface to n. For many types of networks the mtu has an upper limit, for example, 1500 for Ethernet.
netmask mask
(inet only.) Specify how much of the address to reserve for subdividing networks into sub-networks. The mask includes the network part of the local address and the subnet part, which is taken from the host field of the address. The mask can be specified as a single hexadecimal number with a leading 0x, with a dot-notation address, or with a pseudo-network name listed in the network table networks(4). The mask contains 1's for the bit positions in the 32-bit address which are to be used for the network and subnet parts, and 0's for the host part. The mask should contain at least the standard network portion, and the subnet field should be contiguous with the network portion. If a `+' (plus sign) is given for the netmask value, the mask is looked up in the netmasks database using the interface network number as the key. Netmask data may be located in the local /etc/netmasks file, or the NIS or NIS+ netmasks.byaddr map. The system administrator may configure the source and lookup order in the netmasks database via the name service switch.

EXAMPLES

If your workstation is not attached to an Ethernet, the ie0 interface should be marked "down" as follows:
example% ifconfig ie0 down
To print out the addressing information for each interface, use the following command:
example% ifconfig -a
To reset each interface's broadcast address after the netmasks have been correctly set, use the next command:
        example% ifconfig -a broadcast +
To change the Ethernet address for interface ie0, use the following command:
        example% ifconfig le0 ether aa:1:2:3:4:5

FILES

/etc/netmasks
netmask data

SEE ALSO

in.routed(1M), netstat(1M), ethers(3N), hosts(4), netmasks(4), networks(4), nsswitch.conf(4), arp (7)

DIAGNOSTICS

Messages indicating the specified interface does not exist, the requested address is unknown, or the user is not privileged and tried to alter an interface's configuration.

NOTES

It is recommended that the names broadcast, down, private, trailers, up, and the other possible option names not be selected when choosing host names. Choosing anyone of these names as host names will cause bizarre problems that can be extremely difficult to diagnose.

2010-09-03 02:22:45

Name

    rmtab– remote mounted file system table

Synopsis

    /etc/rmtab
    

Description

    rmtab contains a table of filesystems that are remotely mounted by NFS clients. This file is maintained by mountd(1M), the mount daemon. The data in this file should be obtained only from mountd(1M) using the MOUNTPROC_DUMP remote procedure call.

    The file contains a line of information for each remotely mounted filesystem. There are a number of lines of the form:

    hostname:fsname
    

    The mount daemon adds an entry for any client that successfully executes a mount request and deletes the appropriate entries for an unmount request.

    Lines beginning with a hash (' #') are commented out. These lines are removed from the file by mountd(1M) when it first starts up. Stale entries may accumulate for clients that crash without sending an unmount request.

Files

    /etc/rmtab

See Also


2010-09-03 02:21:32

Name

    newfs– construct a UFS file system

Synopsis

    newfs [-NSBTv] [mkfs-options] raw-device
    

Description

    newfs is a "friendly" front-end to the mkfs(1M) program for making UFS file systems on disk partitions. newfs calculates the appropriate parameters to use and calls mkfs.

    If run interactively (that is, standard input is a tty), newfs prompts for confirmation before making the file system.

    If the -N option is not specified and the inodes of the device are not randomized, newfs calls fsirand(1M).

    You must be super-user or have appropriate write privileges to use this command, except when creating a UFS file system on a diskette. See EXAMPLES.

    Creating a Multiterabyte UFS File System

      Keep the following limitations in mind when creating a multiterabyte UFS file system:

      • nbpi is set to 1 Mbyte unless you specifically set it higher. You cannot set nbpi lower than 1 Mbyte on a multiterabyte UFS file system.

      • fragsize is set equal to bsize.

Options

    The following options are supported:

    -N

    Print out the file system parameters that would be used to create the file system without actually creating the file system. fsirand(1M) is not called here.

    -S

    Sends to stdout a human-readable version of the superblock that would be used to create a filesystem with the specified configuration parameters.

    -B

    Sends to stdout a binary (machine-readable) version of the superblock that would be used to create a filesystem with the specified configuration parameters.

    -T

    Set the parameters of the file system to allow eventual growth to over a terabyte in total file system size. This option sets fragsize to be the same as bsize, and sets nbpi to 1 Mbyte, unless the -i option is used to make it even larger. If you use the -f or -i options to specify a fragsize or nbpi that is incompatible with this option, the user-supplied value of fragsize or nbpi is ignored.

    -v

    Verbose. newfs prints out its actions, including the parameters passed to mkfs.

    mkfs-options

    Options that override the default parameters are:

    -a apc

    The number of alternate sectors per cylinder to reserve for bad block replacement for SCSI devices only. The default is 0.

    This option is not applicable for disks with EFI labels and is ignored.

    -b bsize

    The logical block size of the file system in bytes, either 4096 or 8192. The default is 8192. The sun4u architecture does not support the 4096 block size.

    -c cgsize

    The number of cylinders per cylinder group, ranging from 16 to 256. The default is calculated by dividing the number of sectors in the file system by the number of sectors in a gigabyte. Then, the result is multiplied by 32. The default value is always between 16 and 256.

    mkfs can override this value. See mkfs_ufs(1M) for details.

    This option is not applicable for disks with EFI labels and is ignored.

    -C maxcontig

    The maximum number of logical blocks, belonging to one file, that are allocated contiguously. The default is calculated as follows:


    maxcontig = disk drive maximum transfer size / disk block size
    

    If the disk drive's maximum transfer size cannot be determined, the default value for maxcontig is calculated from kernel parameters as follows:

    If maxphys is less than ufs_maxmaxphys, which is typically 1 Mbyte, then maxcontig is set to maxphys. Otherwise, maxcontig is set to ufs_maxmaxphys.

    You can set maxcontig to any positive integer value.

    The actual value will be the lesser of what has been specified and what the hardware supports.

    You can subsequently change this parameter by using tunefs(1M).

    -d gap

    Rotational delay. This option is obsolete in the Solaris 10 release. The value is always set to 0, regardless of the input value.

    -f fragsize

    The smallest amount of disk space in bytes that can be allocated to a file. fragsize must be a power of 2 divisor of bsize, where:

    bsize / fragsize is 1, 2, 4, or 8.

    This means that if the logical block size is 4096, legal values for fragsize are 512, 1024, 2048, and 4096. When the logical block size is 8192, legal values are 1024, 2048, 4096, and 8192. The default value is 1024.

    For file systems greater than 1 terabyte or for file systems created with the -T option, fragsize is forced to match block size (bsize).

    -i nbpi

    The number of bytes per inode, which specifies the density of inodes in the file system. The number is divided into the total size of the file system to determine the number of inodes to create.

    This value should reflect the expected average size of files in the file system. If fewer inodes are desired, a larger number should be used. To create more inodes, a smaller number should be given. The default for nbpi is as follows:


    Disk size                 Density
    
    Less than 1GB             2048
    Less than 2GB             4096
    Less than 3GB             6144
    3GB to 1 Tbyte            8192
    Greater than 1 Tbyte  
       or created with -T     1048576 

    The number of inodes can increase if the file system is expanded with the growfs command.

    -m free

    The minimum percentage of free space to maintain in the file system, between 0% and 99%, inclusively. This space is off-limits to users. Once the file system is filled to this threshold, only the super-user can continue writing to the file system.

    The default is ((64 Mbytes/partition size) * 100), rounded down to the nearest integer and limited between 1% and 10%, inclusively.

    This parameter can be subsequently changed using the tunefs(1M) command.

    -n nrpos

    The number of different rotational positions in which to divide a cylinder group. The default is 8.

    This option is not applicable for disks with EFI labels and is ignored.

    -o space | time

    The file system can either be instructed to try to minimize the time spent allocating blocks, or to try to minimize the space fragmentation on the disk. The default is time.

    This parameter can subsequently be changed with the tunefs(1M) command.

    -r rpm

    The rotational speed of the disk in revolutions per minute. The default is driver- or device-specific.

    Note that you specify rpm for newfs and rps for mkfs.

    This option is not applicable for disks with EFI labels and is ignored.

    -s size

    The size of the file system in sectors. The default is to use the entire partition.

    -t ntrack

    The number of tracks per cylinder on the disk. The default is taken from the disk label.

    This option is not applicable for disks with EFI labels and is ignored.

Operands

    The following operands are supported:

    raw-device

    The name of a raw special device residing in the /dev directory (for example, /dev/rdsk/c0t0d0s6) on which to create the file system.

Usage

    See largefile(5) for the description of the behavior of newfs when encountering files greater than or equal to 2 Gbyte ( 231 bytes).

Examples


    Example 1 Displaying the Parameters for the Raw Special Device

    The following example verbosely displays the parameters for the raw special device, c0t0d0s6. It does not actually create a new file system:


    example# newfs -Nv /dev/rdsk/c0t0d0s6
    mkfs -F ufs -o N /dev/rdsk/c0t0d0s6 1112940 54 15 8192 1024 16 10 60
    2048 t 0 -1 8 /dev/rdsk/c0t0d0s6: 1112940 sectors in
    1374 cylinders of 15 tracks, 54 sectors 569.8MB in 86 cyl
    groups (16 c/g, 6.64MB/g, 3072 i/g) super-block backups
    (for fsck -b #) at:
    32, 13056, 26080, 39104, 52128, 65152, 78176, 91200, 104224, . . .


    Example 2 Creating a UFS File System

    The following example creates a UFS file system on a diskette that is managed by a volume manager that makes use of the mount point /vol.


    example% newfs /vol/dev/aliases/floppy0
    newfs: construct a new file system /vol/dev/aliases/floppy0: (y/n)? y
    /vol/dev/aliases/floppy0: 2880 sectors in 80 cylinders of 2 tracks,
    18 sectors 1.4MB in 5 cyl groups (16 c/g, 0.28MB/g, 128 i/g)
    super-block backups (for fsck -F ufs -o b=#) at:
    32, 640, 1184, 1792, 2336, . . .


    Example 3 Creating a UFS File System That Will Eventually Be Grown to a Multiterabyte UFS File System

    The following example creates a UFS file system that will eventually be grown to a multiterabyte UFS file system.

    This command creates a 800-Gbyte file system on the volume, /dev/md/rdsk/d99.


    # newfs -T /dev/md/rdsk/d99
    newfs: construct a new file system /dev/md/rdsk/d99: (y/n)? y
       /dev/md/rdsk/d99: 1677754368 sectors in 45512 cylinders of 
       144 tracks, 256 sectors
       819216.0MB in 1821 cyl groups (25 c/g, 450.00MB/g, 448 i/g) . . .

    Then, if you increase the volume size for this file system, you can use the growfs command to expand the file system. The file system is grown to 1.2 terabytes in this example:


    # growfs -v /dev/md/rdsk/d99
    /usr/lib/fs/ufs/mkfs -G /dev/md/rdsk/d99 2516631552 /dev/md/rdsk/d99:
       2516631552 sectors in 68268 cylinders of 144 tracks, 256  sectors
       1228824.0MB in 2731 cyl groups (25 c/g, 450.00MB/g, 448 i/g). . .

Exit Status

    The following exit values are returned:

    0

    The operation was successful.

    1, 10

    Usage error or internal error. A message is output to STDERR explaining the error.

    Other exit values may be returned by mkfs(1M), which is called by newfs.

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Availability 

    SUNWcsu 

See Also

Diagnostics

    newfs: No such file or directory

    The device specified does not exist, or a disk partition was not specified.

    special: cannot open

    You must write access to the device to use this command.


2010-09-03 02:20:17

Name

    metadb– create and delete replicas of the metadevice state database

Synopsis

    /sbin/metadb  -h
    
    /sbin/metadb  [-s setname]
    /sbin/metadb  [-s setname] -a [-f] [-k system-file] mddbnn
    
    /sbin/metadb  [-s setname] -a [-f] [-k system-file]
     [-c number] [-l length] slice...
    
    /sbin/metadb  [-s setname] -d [-f] [-k system-file] mddbnn
    
    /sbin/metadb  [-s setname] -d [-f] [-k system-file] slice...
    
    /sbin/metadb  [-s setname] -i
    
    /sbin/metadb  [-s setname] -p [-k system-file] [mddb.cf-file]

Description

    The metadb command creates and deletes replicas of the metadevice state database. State database replicas can be created on dedicated slices, or on slices that will later become part of a simple metadevice (concatenation or stripe) or RAID5 metadevice. Do not place state database replicas on fabric-attached storage, SANs, or other storage that is not directly attached to the system and available at the same point in the boot process as traditional SCSI or IDE drives. See NOTES.

    The metadevice state database contains the configuration of all metadevices and hot spare pools in the system. Additionally, the metadevice state database keeps track of the current state of metadevices and hot spare pools, and their components. Solaris Volume Manager automatically updates the metadevice state database when a configuration or state change occurs. A submirror failure is an example of a state change. Creating a new metadevice is an example of a configuration change.

    The metadevice state database is actually a collection of multiple, replicated database copies. Each copy, referred to as a replica, is subject to strict consistency checking to ensure correctness.

    Replicated databases have an inherent problem in determining which database has valid and correct data. To solve this problem, Volume Manager uses a majority consensus algorithm. This algorithm requires that a majority of the database replicas be available before any of them are declared valid. This algorithm strongly encourages the presence of at least three initial replicas, which you create. A consensus can then be reached as long as at least two of the three replicas are available. If there is only one replica and the system crashes, it is possible that all metadevice configuration data can be lost.

    The majority consensus algorithm is conservative in the sense that it will fail if a majority consensus cannot be reached, even if one replica actually does contain the most up-to-date data. This approach guarantees that stale data will not be accidentally used, regardless of the failure scenario. The majority consensus algorithm accounts for the following: the system will stay running with exactly half or more replicas; the system will panic when less than half the replicas are available; the system will not reboot without one more than half the total replicas.

    When used with no options, the metadb command gives a short form of the status of the metadevice state database. Use metadb -i for an explanation of the flags field in the output.

    The initial state database is created using the metadb command with both the -a and -f options, followed by the slice where the replica is to reside. The -a option specifies that a replica (in this case, the initial) state database should be created. The -f option forces the creation to occur, even though a state database does not exist. (The -a and -f options should be used together only when no state databases exist.)

    Additional replicas beyond those initially created can be added to the system. They contain the same information as the existing replicas, and help to prevent the loss of the configuration information. Loss of the configuration makes operation of the metadevices impossible. To create additional replicas, use the metadb -a command, followed by the name of the new slice(s) where the replicas will reside. All replicas that are located on the same slice must be created at the same time.

    To delete all replicas that are located on the same slice, the metadb -d command is used, followed by the slice name.

    When used with the -i option, metadb displays the status of the metadevice state databases. The status can change if a hardware failure occurs or when state databases have been added or deleted.

    To fix a replica in an error state, delete the replica and add it back again.

    The metadevice state database (mddb) also contains a list of the replica locations for this set (local or shared diskset).

    The local set mddb can also contain host and drive information for each of the shared disksets of which this node is a member. Other than the diskset host and drive information stored in the local set mddb, the local and shared diskset mddbs are functionality identical.

    The mddbs are written to during the resync of a mirror or during a component failure or configuration change. A configuration change or failure can also occur on a single replica (removal of a mddb or a failed disk) and this causes the other replicas to be updated with this failure information.

Options

    Root privileges are required for all of the following options except -h and -i.

    The following options can be used with the metadb command. Not all the options are compatible on the same command line. Refer to the SYNOPSIS to see the supported use of the options.

    -a

    Attach a new database device. The /kernel/drv/md.conf file is automatically updated with the new information and the /etc/lvm/mddb.cf file is updated as well. An alternate way to create replicas is by defining them in the /etc/lvm/md.tab file and specifying the assigned name at the command line in the form, mddbnn, where nn is a two-digit number given to the replica definitions. Refer to the md.tab(4) man page for instructions on setting up replicas in that file.

    -c number

    Specifies the number of replicas to be placed on each device. The default number of replicas is 1.

    -d

    Deletes all replicas that are located on the specified slice. The /kernel/drv/md.conf file is automatically updated with the new information and the /etc/lvm/mddb.cf file is updated as well.

    -f

    The -f option is used to create the initial state database. It is also used to force the deletion of replicas below the minimum of one. (The -a and -f options should be used together only when no state databases exist.)

    -h

    Displays a usage message.

    -i

    Inquire about the status of the replicas. The output of the -i option includes characters in front of the device name that represent the status of the state database. Explanations of the characters are displayed following the replica status and are as follows:

    d

    replica does not have an associated device ID.

    o

    replica active prior to last mddb configuration change

    u

    replica is up to date

    l

    locator for this replica was read successfully

    c

    replica's location was in /etc/lvm/mddb.cf

    p

    replica's location was patched in kernel

    m

    replica is master, this is replica selected as input

    r

    replica does not have device relocation information

    t

    tagged data is associated with the replica

    W

    replica has device write errors

    a

    replica is active, commits are occurring to this

    M

    replica had problem with master blocks

    D

    replica had problem with data blocks

    F

    replica had format problems

    S

    replica is too small to hold current database

    R

    replica had device read errors

    B

    tagged data associated with the replica is not valid

    -k system-file

    Specifies the name of the kernel file where the replica information should be written. The default system-file is /kernel/drv/md.conf. This option is for use with the local diskset only.

    -l length

    Specifies the size of each replica. The default length is 8192 blocks, which should be appropriate for most configurations. "Replica sizes of less than 128 blocks are not recommended.

    -p

    Specifies updating the system file (/kernel/drv/md.conf) with entries from the /etc/lvm/mddb.cf file. This option is normally used to update a newly built system before it is booted for the first time. If the system has been built on a system other than the one where it will run, the location of the mddb.cf on the local machine can be passed as an argument. The system file to be updated can be changed using the -k option. This option is for use with the local diskset only.

    -s setname

    Specifies the name of the diskset on which the metadb command will work. Using the -s option will cause the command to perform its administrative function within the specified diskset. Without this option, the command will perform its function on local database replicas.

    slice

    Specifies the logical name of the physical slice (partition), such as /dev/dsk/c0t0d0s3.

Examples


    Example 1 Creating Initial State Database Replicas

    The following example creates the initial state database replicas on a new system.


    # metadb -a -f c0t0d0s7 c0t1d0s3 c1t0d0s7 c1t1d0s3

    The -a and -f options force the creation of the initial database and replicas. You could then create metadevices with these same slices, making efficient use of the system.



    Example 2 Adding Two Replicas on Two New Disks

    This example shows how to add two replicas on two new disks that have been connected to a system currently running Volume Manager.


    # metadb -a c0t2d0s3 c1t1d0s3


    Example 3 Deleting Two Replicas

    This example shows how to delete two replicas from the system. Assume that replicas have been set up on /dev/dsk/c0t2d0s3 and /dev/dsk/c1t1d0s3.


    # metadb -d c0t2d0s3 c1t1d0s3

    Although you can delete all replicas, you should never do so while metadevices still exist. Removing all replicas causes existing metadevices to become inoperable.


Files

    /etc/lvm/mddb.cf

    Contains the location of each copy of the metadevice state database.

    /etc/lvm/md.tab

    Workspace file for metadevice database configuration.

    /kernel/drv/md.conf

    Contains database replica information for all metadevices on a system. Also contains Solaris Volume Manager configuration information.

Exit Status

    The following exit values are returned:

    0

    successful completion

    >0

    an error occurred

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Availability 

    SUNWmdr 

See Also

Notes

    Replicas cannot be stored on fabric-attached storage, SANs, or other storage that is not directly attached to the system. Replicas must be on storage that is available at the same point in the boot process as traditional SCSI or IDE drives. A replica can be stored on a:

    • Dedicated local disk partition

    • Local partition that will be part of a volume

    • Local partition that will be part of a UFS logging device


2010-09-03 02:19:01

Name

    fssnap– create temporary snapshots of a file system

Synopsis

    fssnap [-F FSType] [-V] -o special_options /mount/point
    
    fssnap  -d [-F  FSType] [-V] /mount/point | dev
    
    fssnap -i [-F FSType] [-V] [-o special_options] 
         [/mount/point | dev]

Description

    The fssnap command creates a stable, read-only snapshot of a file system when given either an active mount point or a special device containing a mounted file system, as in the first form of the synopsis. A snapshot is a temporary image of a file system intended for backup operations.

    While the snapshot file system is stable and consistent, an application updating files when the snapshot is created might leave these files in an internally inconsistent, truncated, or otherwise unusable state. In such a case, the snapshot will contain these partially written or corrupted files. It is a good idea to ensure active applications are suspended or checkpointed and their associated files are also consistent during snapshot creation.

    File access times are not updated while the snapshot is being created.

    A path to the virtual device that contains this snapshot is printed to standard output when a snapshot is created.

Options

    The following options are supported:

    -d

    Deletes the snapshot associated with the given file system.

    -F FSType

    Specifies the file system type to be used. The FSType should either be specified here or be determined by matching the block special device with an entry in the /etc/vfstab table, or by consulting /etc/default/fs.

    -i

    Displays the state of any given FSType snapshot. If a mount-point or device is not given, a list of all snapshots on the system is displayed. When a mount-point or device is specified, detailed information is provided for the specified file system snapshot by default. The format and meaning of this information is file-system dependent. See the FSType-specific fssnap man page for details.

    -o special_options

    See the FSType-specific man page for fssnap.

    -V

    Echoes the complete command line, but does not execute the command.

Operands

    The following operands are supported:

    /mount/point

    The directory where the file system resides.

Examples

    See FSType-specific man pages for examples.

Exit Status

    The following exit values are returned:

    0

    Successful completion.

    >0

    An error occurred.

Files

    /etc/vfstab

    Specifies file system type.

    /etc/default/fs

    Specifies the default local file system type.

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Availability 

    SUNWcsu 

See Also

Notes

    This command might not be supported for all FSTypes.