Sponsored Content
Full Discussion: Mounts
Top Forums UNIX for Dummies Questions & Answers Mounts Post 302208061 by zaxxon on Monday 23rd of June 2008 12:54:58 AM
Old 06-23-2008
You can write a script that checks with "df" how much space is left and cut out the percentage with awk for example and write it into a variable, which is tested with "test" and/or "if". Only problem will be to tell your application to write into the other directory. Not sure how much of an option you have to configure it's output directory and if it must be restarted or if something like a "kill -1" can make it recognize the changed configuration.
The script itself is easy and a good excercise when being new to Linux/Unix Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Stale Mounts

Is there an easy way to find all stale mounts on a system? (2 Replies)
Discussion started by: derf912
2 Replies

2. Solaris

new mounts

hi, i have currently below mounts in solaris box and i want to create new mount points. please let me know how can i do it? bash-3.00# df -h Filesystem size used avail capacity Mounted on / 1000M 350M 609M 37% / /dev 1000M 350M ... (3 Replies)
Discussion started by: rags_s11
3 Replies

3. AIX

Combining Mounts

I have 2 mounts with me. Each 200 Gigs. I have some heavy duty processing, that may require more than 200 Gigs at time. Is there anyway that I can make the two points a clubbed up directory. Or create a symbolic link (bleahhh). Here are factors: 1. two mounts are two different hard drives. (just... (0 Replies)
Discussion started by: seemit
0 Replies

4. UNIX for Dummies Questions & Answers

/ file system mounts as read only

I have a Netra T1 server running Solaris 8, It was installed by jump start, it does not have a cdrom drive. Recetly it crashed so I rebooted it from >LOM poweron and it came to run level 3, all file systems listed in /etc/vfstab are mounted, but /dev and / root are not writeable though in... (3 Replies)
Discussion started by: Tirmazi
3 Replies

5. Solaris

How to check NAS mounts being used ?

Hi, How can i check if a particular Netapps NAS share being used on some other servers - ie: being accessed, mounted? example: somedir - rw, intr servernetapp.net.com:/vol/vol100/somedir is being mounted on some filesystem on other server. is it possible to check on the NIS? (1 Reply)
Discussion started by: greencored
1 Replies

6. Solaris

Max. number of NFS mounts

Hi, I was wondering, whether there is a limit regarding the max number of nfs mounts in Oracle Solaris 10 (newest update). The data center plans to migrate from a fibre channel based storage environment (hitachi) to a nfs based storage environment (netapp). Regarding the Solaris 10 database... (1 Reply)
Discussion started by: schms
1 Replies

7. Red Hat

Issue with mounts CIFS

I donot know much about CIFS but i have been asked to look into an issue related to mounting CIFS filesystem On my redhat 5.6 the /etc/fstab file has the following entry //172.25.x.x/de0/ /dir1/de0 cifs username=bodsadm,password=12345,dir_mode=0777,file_mode=0777,uid=de0adm,gid=sapsys,rw 0 0... (2 Replies)
Discussion started by: Tirmazi
2 Replies

8. UNIX for Advanced & Expert Users

Clone mounts as is

Hello, Iam trying to clone AS IS two mounts like below /class_test/sa /class_dev/fd from one server onto another. I want to use tar and gzip to compress. Please let me know the options I have to use. Also I want to untar it in the destination server, so let me know how to do... (3 Replies)
Discussion started by: baanprog
3 Replies

9. Red Hat

NFS mounts query

We have 2 servers in cluster. Node1 has an ext3 mount for backups and the other connects using NFS to this node1. I believe the reason it is configured in this manner is to not duplicate backups since this is a Database server. Not sure this was the reason though. Right now if node1 goes down all... (5 Replies)
Discussion started by: ikn3
5 Replies

10. Solaris

NFS mounts not automounting on boot

I have several Solaris 11.2 zones. when I reboot them I have to go in and do mountall to mount the NFS mounts. any ideas where to troubleshoot why they are not automounting? (2 Replies)
Discussion started by: os2mac
2 Replies
cmx(8)							      System Manager's Manual							    cmx(8)

NAME
cmx - Generic communication exerciser SYNOPSIS
/usr/field/cmx [-b [minbaud]-[maxbaud]] [-h] [-ofile] [-tn] -l line-n... OPTIONS
Use this option to specify the minimum, maximum, or range of baud rates to test. Prints help messages about the cmx command. Test all the listed tty lines, where n equals the lines to test according to the special device file entries in the /dev directory, such as 00, 12, or 42-53 Saves output diagnostics in file. Specifies the run time in minutes (n). The default is to run until a [CTRL-C] or a kill -15 pid is sent to the process. DESCRIPTION
The cmx exerciser writes, reads, and validates random data and packet lengths on a specified communications line. The line being tested must have a loopback connector attached to the distribution panel, or the cable and the line must be disabled in the /etc/inittab file and a non-modem line; the CLOCAL option must be set to on. The exerciser runs until a [CTRL-C] or a kill -15 pid is sent to the process. A logfile for you to examine and then remove is created in the current working directory; errors can be listed in the logfile. You must specify the -l option followed by the lines to test. The line-n arguments identify the lines to be tested. A maximum of 32 lines can be tested at any one time. The line-n arguments are specified as names taken from the /dev directory without the letters "tty." For example, if the /dev directory lists tty03, the line-n argument is 03. The Devices section lists the devices that can be tested. RESTRICTIONS
If you want to run a system exerciser over an NFS link or on a diskless system, there are some restrictions. For exercisers such as fsx(8) that need to write into a file system, the target file system must be writable by root. Also, the directory from which an exerciser is exe- cuted must be writable by root because temporary files are written into the directory. These restrictions can be difficult to adhere to because NFS file systems are often mounted in a way that prevents root from writing into them. Some of the restrictions may be adhered to by copying the exerciser into another directory and then executing it. Pseudo devices (devices whose first character after tty is any alphabetic character, other than lowercase d) cannot be tested. Also lat devices with major #5 cannot be tested. DEVICES
Use the file command on /dev/tty* to find out which tty line corresponds to a device line number. EXAMPLES
The following example runs the cmx exerciser for 60 minutes on lines 00, 13, 22, and 32: % /usr/field/cmx -t60 -l 00 13 22 32 The following example runs the cmx exerciser on lines 11, 42, 45, and 76 in the background until interrupted by a [CTRL-C] or a kill -15 pid: % /usr/field/cmx -l 11 42 45 76 & The following example runs the cmx exerciser on line 11, specifying a range of baud rates to test. % /usr/field/cmx -b9600-38400 -l 11 SEE ALSO
Commands: diskx(8), fsx(8), memx(8), shmx(8), tapex(8) cmx(8)
All times are GMT -4. The time now is 01:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy