Sponsored Content
Operating Systems Solaris Mountpoint 100% but no data inside Post 302616005 by methyl on Friday 30th of March 2012 10:52:59 AM
Old 03-30-2012
Thanks jlliagre for the feedback. Its a modified extract of my script which has evolved over the years for variants of fuser and still works on O/S with limited command line length.
Your first script needs adjusting to be portable because there are multiple space characters between the PIDs in most editions of fuser and ps -fp coughs on the empty parameter.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Comparing data inside file

Hi Everyone, I will try to explain my question please forgive my english here. I am looking for shell script or command that can compare data in the files. I have 50 files in one directory test1 test2 test3 ....so on. I want to compare data in each files with each other and output each... (4 Replies)
Discussion started by: email-lalit
4 Replies

2. UNIX for Dummies Questions & Answers

How to get data only inside polygon created by points which is part of whole data from file?

hiii, Help me out..i have a huge set of data stored in a file.This file has has 2 columns which is latitude & longitude of a region. Now i have a program which asks for the number of points & based on this number it asks the user to enter that latitude & longitude values which are in the same... (7 Replies)
Discussion started by: reva
7 Replies

3. Shell Programming and Scripting

Get mountpoint from filename

Dear Guru's Given a full filename /a/b/c/d/file.txt how do i determine what part is the mount point ( say /a/b). Cheers, Karel (6 Replies)
Discussion started by: karelb
6 Replies

4. Shell Programming and Scripting

Replacing Comma delimiter coming inside the data.

Hello, I am having flat file (Comma Delimiter) and the data in the file is as given below. EMPNO, ENAME, DESIGNATION, SALARY 10979, Arun Kumar, Cosultant, 35000 13555, Bidhu Shekar, Senior Consultant, 45000 15000, Kiran, Kumar, Senior, Consultant, 40000 If... (9 Replies)
Discussion started by: arunvasu2
9 Replies

5. Shell Programming and Scripting

compare date and time inside data of two files

i have two files with identical no of columns. 6th columns is date (MM/DD/YY format) and 7th columns is time (HH:MM:SS) format. I need to compare these two vaules and if the date & time is higher than fileA, save it on fileC; if the value is lower, then save it on fileD CONDITIONS... (7 Replies)
Discussion started by: ajiwww
7 Replies

6. UNIX for Advanced & Expert Users

Unable to format new mountpoint

Can some one help me i try to mkfs new mountpoint from storageIBM but give some problem # mkfs -t ext3 /dev/sdd1 mke2fs 1.39 (29-May-2006) /dev/sdd1 is apparently in use by the system; will not make a filesystem here! my os is redhat 5.3 using fdisk # fdisk -l Disk /dev/sda: 298.9... (4 Replies)
Discussion started by: vickyid04
4 Replies

7. Shell Programming and Scripting

Creating loops inside a file and extracting and loading data

Help needed (1 Reply)
Discussion started by: Chand Shrestha
1 Replies

8. AIX

Space not getting released on the mountpoint

root@atldc-oragrid-ux01:/oragrid_01> du -sg * 0.58 11gR2gridBase 47.31 Grid_11203 4.17 app 0.00 lost+found 0.01 oraInventory root@atldc-oragrid-ux01:/oragrid_01> cd Grid_11203 root@atldc-oragrid-ux01:/oragrid_01/Grid_11203> du -sg *|sort 0.00 JRE 0.00 OPatch_old 0.00 ... (11 Replies)
Discussion started by: Vishal_dba
11 Replies

9. Shell Programming and Scripting

awk facing delimiter inside data

Inpu file is as below: CMEOPT1_dump.1:1002 ZN:VTJ3J3C131 CMEOPT1_dump.1:1002 ZN:VTM4M4P123%5 CMEOPT1_dump.1:1002 ZN:VTM3M3P132%5 CMEOPT1_dump.2:1002 OZNG4 CMEOPT2_dump.3:1002 ZB:VTH4H4C132 CMEOPT2_dump.4:1002 ZN:VTK4K4P123 CMEOPT2_dump.5:1002 ZN:BOZ2Z2Z2P131%5 CMEOPT2_dump.5:1002 OZNG4 ... (10 Replies)
Discussion started by: zaq1xsw2
10 Replies

10. Shell Programming and Scripting

Replace double quotes inside the string data for all the columns

Please use code tags Hi, I have input data is below format and n of column in the multiple flat files. the string data has any double quotes(") values replaced to double double quotes for all the columns{""). Also, my input flat file each column string data has carriage of new line too.... (14 Replies)
Discussion started by: SSrini
14 Replies
RESTOREVOL(1)						       AFS Command Reference						     RESTOREVOL(1)

NAME
       restorevol - Restore a volume from vos dump to the local file system

SYNOPSIS
       restorevol [-file <dump file>] [-dir <restore dir> ]
	   [-extension <name extension>]
	   [-mountpoint <mount point root>]
	   [-umask <mode mask>] [-verbose] [-help]

DESCRIPTION
       restorevol takes an AFS volume in the format produced by vos dump and restores it to the local file system.  Normally, the contents of a
       volume are maintained by the AFS File Server in an opaque format and copying a volume's raw data does not make it easily accessible.  This
       utility will produce a directory tree that is equivalent to that seen via an AFS client, but without preserving the AFS-specific Access
       Control Lists (ACLs).  It's primary use is to recover data from a volume dump or backup and make it available via a filesystem other than
       AFS.

       The dump output will read from standard input, or from a file if -file is specified.

       The restore process is as follows:

       1.  The dump file will be restored within the current directory or that specified with -dir.

       2.  Within this directory, a subdir is created.	It's name is the RW volume name that was dumped.  An extension can be appended to this
	   directory name with -extension.

       3.  All mountpoints will appear as symbolic links to the volume name.  The path name to the volume will be either that in -mountpoint, or
	   -dir.  Symbolic links remain untouched.

       4.  You can change your umask during the restore with -umask.  Otherwise, restorevol uses your current umask.  Mode bits for directories
	   are 0777 (then AND'ed with the umask).  Mode bits for files are the owner mode bits duplicated accross group and user (then AND'ed with
	   the umask).

       5.  For restores of full dumps, if a directory says it has a file and the file is not found, then a symbolic link AFSFile-<#> will appear
	   in that restored tree.  Restores of incremental dumps remove all these files at the end (expensive because it is a tree search).

       6.  If a file or directory was found in the dump but found not to be connected to the hierarchical tree, then the file or directory will be
	   connected at the root of the tree as __ORPHANEDIR__.<#> or __ORPHANFILE__.<#>.

       7.  ACLs are not restored.

CAUTIONS
       Normally, use vos_restore(1) instead of this command.  restorevol is a tool of last resort to try to extract data from the data structures
       stored in a volume dumpfile and is not as regularly tested or used as the normal vos_restore(1) implementation.	Using restorevol bypasses
       checks done by the fileserver(8) and salvager(8).

OPTIONS
       -file <dump file>
	   Specifies the volume dump file to be read and restored to the local filesystem.  If this option is not given, the volume dump will be
	   read from standard input.

       -dir <restore dir>
	   Names the directory in which to create the restored filesystem.  The current directory is used by default.  Note that any mountpoints
	   inside the volume will point to the same directory unless the -mountpoint option is also specified.

       -extension <name extension>
	   By default, the name of the directory created matches the RW volume name of the volume in the dump file.  If this option is used, the
	   directory name will be the RW volume name name extension as the suffix.

       -mountpoint <mount point root>
	   By default, mountpoints inside the volume being restored point to the value given by -dir.  This option allows mountpoints to be
	   resolved relative to another path.  A common use for this would be to specify a path under /afs as the mount point root so that
	   mountpoints inside the restored volume would be resolved via AFS.

	   The mount point root must exist, and the process running the command have read access to that directory, or the command will fail.

EXAMPLES
       The following command restores the contents of the dumpfile in sample.dump to the directory /tmp/sample.2009-05-17, but having all
       mountpoints inside the volume point to AFS (note that this requires knowledge of where sample is mounted in AFS):

	  % restorevol -file sample.dump -dir /tmp -extension .2009-05-17 
	      -mountpoint /afs/example.org/sample
	  Restoring volume dump of 'sample' to directory '/tmp/sample.2009-05-17'

PRIVILEGE REQUIRED
       The issuer must have read access to the dump file and write access to the directory into which the dump is restored.  If the -mountpoint
       flag is given, the issuer must also have read access to that directory.

SEE ALSO
       salvager(8), voldump(8), vos_dump(1), vos_restore(1)

COPYRIGHT
       Copyright 2009 Steven Jenkins <steven@endpoint.com>

       This documentation is covered by the BSD License as written in the doc/LICENSE file. This man page was written by Steven Jenkins for
       OpenAFS.

OpenAFS 							    2012-03-26							     RESTOREVOL(1)
All times are GMT -4. The time now is 09:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy