I am using a solaris Sun-Fire-V440 server.
The OS is solaris.
My problem is whenever I run the command
mount | grep "^/ " | sed -e 's,^.*dsk/\([cd][0-9]*\).*$,\1,'
it should return a disk value as "d30" as it does on each of my other servers.But on this server I am not getting any o/p from this command.This causes my backup to fail everyday as I am using this command in a script to ensure FS backup on tape.
Moreover the o/p of "mount" command also doesn't provide any o/p.
Please help me with this as this is very critical.
Please find the o/p of some commands for your reference.
Please feel free to ask any other command o/p if needed.
Last edited by DukeNuke2; 07-23-2011 at 01:08 PM..
On Sun Fire V240, cdrom doesn't automount. I can manually mount the cdrom, however it pretty annoying. I have checked the vold demon and its seems to be running. Here is the output from
/etc/inetd.conf
pg inetd.conf
daytime stream tcp6 nowait root internal
daytime dgram udp6 ... (2 Replies)
I have defined in cron
crontab -l >/FIXENGINE/data/crontab.$(whoami).$(date +%a)
The resulting file is named
crontab.fixadmin.
When I run the above from a command line, the file is named:
crontab.fixadmin.Tue (or whatever day I happen to be running)
The question is - why do I get... (4 Replies)
Hi I have 2 Solaris boxes A and B, A running solaris 9, and B running solaris 6.
when i try to use rcp on A like this:-
A> rcp file.txt B:/path/file.txt
I get into standard input and nothing happens!!
Then On the target machine B, if i try,
B> rcp otherfile.txt B:/path/otherfile.txt... (1 Reply)
Hello, the ls -d command to only list directories in a directory doesn't seem to work on Solaris and the man command says to use that combination: ls -d
Anyone have the same problem and find a resolve?
Thanks
BobK (9 Replies)
Hi again everyone.
I have recently installed Solaris 10 on a server. Everything seems to work fine (users can be added and can log in, internet connectivity works, etc). However I'm struggling to get mail or mailx to work.
Say there are two users on my server, Bob and Mary. Server hostname... (3 Replies)
Hi to all!
I want to learn step by step easily how to configure my Solaris for network. I know alot about Solaris Network configuration. But I have some problems.
When I install Solaris, and I plug-in my network cable to Solaris. Then I run:
ifconfig -a plumb
then I do
ifconfig bge0 dhcp... (7 Replies)
grep -e doesn't work in Soalris.
Same script with grep -e worked on AIX/HP/LINUX..
I would like to search a list of patterns on "log.txt" like ...
grep -e FATAL -e ERROR log.txt
I get the error message as
grep: illegal option -- e
Usage: grep -hblcnsviw pattern file . . . (3 Replies)
Hi....
cd command is not working when dual string drive/volume name is passed to cd through variables.......
For Ex....
y=/Volumes/Backup\ vipin/
cd $y
the above command gives error.......
anyone with a genuine solution ? (16 Replies)
Hi Forum,
I updated my Solaris 10 (10/09) with the current Oracle patch file and moved the smb.conf to /etc/samba/smb.conf.
Anyway, since patching, no Windows client is able to connect the share. It says password is wrong, but its the right pw.
My smb.conf:
bash-3.00# cat... (4 Replies)
Hello Experts,
I am performing performance tests on a few mysql select queries.
I use the following command to clear the memory disk caches.
sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
I however see that the above command works on RHEL6 but doesn't work on Solaris 10.
I asked... (4 Replies)
Discussion started by: Anirudh Kumar
4 Replies
LEARN ABOUT MOJAVE
vfstab
vfstab(4) File Formats vfstab(4)NAME
vfstab - table of file system defaults
DESCRIPTION
The file /etc/vfstab describes defaults for each file system. The information is stored in a table with the following column headings:
device device mount FS fsck mount mount
to mount to fsck point type pass at boot options
The fields in the table are space-separated and show the resource name (device to mount), the raw device to fsck (device to fsck), the
default mount directory (mount point), the name of the file system type (FS type), the number used by fsck to decide whether to check the
file system automatically (fsck pass), whether the file system should be mounted automatically by mountall (mount at boot), and the file
system mount options (mount options). (See respective mount file system man page below in SEE ALSO for mount options.) A '-' is used to
indicate no entry in a field. This may be used when a field does not apply to the resource being mounted.
The getvfsent(3C) family of routines is used to read and write to /etc/vfstab.
/etc/vfstab can be used to specify swap areas. An entry so specified, (which can be a file or a device), will automatically be added as a
swap area by the /sbin/swapadd script when the system boots. To specify a swap area, the device-to-mount field contains the name of the
swap file or device, the FS-type is "swap", mount-at-boot is "no" and all other fields have no entry.
EXAMPLES
The following are vfstab entries for various file system types supported in the Solaris operating environment.
Example 1: NFS and UFS Mounts
The following entry invokes NFS to automatically mount the directory /usr/local of the server example1 on the client's /usr/local directory
with read-only permission:
example1:/usr/local - /usr/local nfs - yes ro
The following example assumes a small departmental mail setup, in which clients mount /var/mail from a server mailsvr. The following entry
would be listed in each client's vfstab:
mailsvr:/var/mail - /var/mail nfs - yes intr,bg
The following is an example for a UFS file system in which logging is enabled:
/dev/dsk/c2t10d0s0 /dev/rdsk/c2t10d0s0 /export/local ufs 3 yes logging
See mount_nfs(1M) for a description of NFS mount options and mount_ufs(1M) for a description of UFS options.
Example 2: pcfs Mounts
The following example mounts a pcfs file system on a fixed hard disk on an x86 machine:
/dev/dsk/c1t2d0p0:c - /win98 pcfs - yes -
The example below mounts a Jaz drive on a SPARC machine. Normally, the volume management daemon (see vold(1M)) handles mounting of remov-
able media, obviating a vfstab entry. If you choose to specify a device that supports removable media in vfstab, be sure to set the mount-
at-boot field to no, as below. Such an entry presumes you are not running vold.
/dev/dsk/c1t2d0s2:c - /jaz pcfs - no -
For removable media on a SPARC machine, the convention for the slice portion of the disk identifier is to specify s2, which stands for the
entire medium.
For pcfs file systems on x86 machines, note that the disk identifier uses a p (p0) and a logical drive (c, in the /win98 example above) for
a pcfs logical drive. See mount_pcfs(1M) for syntax for pcfs logical drives and for pcfs-specific mount options.
Example 3: CacheFS Mount
Below is an example for a CacheFS file system. Because of the length of this entry and the fact that vfstab entries cannot be continued to
a second line, the vfstab fields are presented here in a vertical format. In re-creating such an entry in your own vfstab, you would enter
values as you would for any vfstab entry, on a single line.
device to mount: svr1:/export/abc
device to fsck: /usr/abc
mount point: /opt/cache
FS type: cachefs
fsck pass: 7
mount at boot: yes
mount options:
local-access,bg,nosuid,demandconst,backfstype=nfs,cachedir=/opt/cache
See mount_cachefs(1M) for CacheFS-specific mount options.
Example 4: Loopback File System Mount
The following is an example of mounting a loopback (lofs) file system:
/export/test - /opt/test lofs - yes -
See lofs(7FS) for an overview of the loopback file system.
SEE ALSO fsck(1M), mount(1M), mount_cachefs(1M), mount_hsfs(1M), mount_nfs(1M), mount_tmpfs(1M), mount_ufs(1M), swap(1M), getvfsent(3C)
System Administration Guide: Basic Administration
SunOS 5.10 21 Jun 2001 vfstab(4)