hey, I have to write a housekeeping script which would delete any files which are more than 10 days old, the file is named in such a fashion
MYTEST20060101_182239.txt
MYXML20060112_182879.xml
MYEXCEL20060113_546321.xls
If the current date is 20060112, then MYTEST20060101_182239.txt will be... (2 Replies)
Hi,
I've a Unixware 7.1.4, the machine has 3 disks, the second disk is not mounted, he said the message "WARNING: msgcnt 2 vxfs: mesg 021: vx_fs_init - /dev/dsk/c0b0t1d0s1 file system validation failure".
I use the fsck command to check and repair, during the pocess apears messages to... (3 Replies)
Hi there all,
#!/usr/bin/ksh
Set -x
MIN_MB_FREE="100MB" # Min. MB of Free FS Space
MAX_PERCENT="85%" # Max. FS percentage value
FSTRIGGER="1000MB" # Trigger to switch from % Used to MB Free
WORKFILE="/tmp/df.work" # Holds filesystem data
>$WORKFILE #... (0 Replies)
Hi,
I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local.
Please tell me the commands which I can run... (2 Replies)
Hi,
I have a .ksh script which finds all the directories older than 84 days and tries to housekeep. Below is the command used
find * -depth -type d -ctime +84 -exec rm -rf {} \;
The above command lists all the directories ie child and parent directory in descending order which are more... (10 Replies)
I have a directory ( eg. /tmp , there are many files in it , I would like to do the houskeeping job , can advise how to develop a script to do the following .
1) if the files are elder than 10 days in this directory , the extension is .txt , then move it to /tmp/tmp-txt , the same , if the files... (2 Replies)
Hi all! I have a task that has been giving me problems.I have my sister-in-law's external hard drive that has been damaged and the filesystem is not mountable.
I am on a Mac running OSX 10.6.8
Using ddrescue, I recovered the contents and transferred to my external drive:
sudo ddrescue... (0 Replies)
We have regularly questions about how to create users and user accounts. But regularly user accounts need to be deleted too. It is quite easy to delete the user account itself but usually the HOME directory of the user remains.
It is good style to remove these directories but simply deleting... (3 Replies)
Discussion started by: bakunin
3 Replies
LEARN ABOUT DEBIAN
gfs_grow
gfs_grow(8) System Manager's Manual gfs_grow(8)NAME
gfs_grow - Expand a GFS filesystem
SYNOPSIS
gfs_grow [OPTION]... <DEVICE|MOINTPOINT>...
DESCRIPTION
gfs_grow is used to expand a GFS filesystem after the device upon which the filesystem resides has also been expanded. By running gfs_grow
on a GFS filesystem, you are requesting that any spare space between the current end of the filesystem and the end of the device is filled
with a newly initialized GFS filesystem extension. When this operation is complete, the resource index for the filesystem is updated so
that all nodes in the cluster can use the extra storage space which has been added.
You may only run gfs_grow on a mounted filesystem; expansion of unmounted filesystems is not supported. You only need to run gfs_grow on
one node in the cluster. All the other nodes will see the expansion has occurred and automatically start to use the newly available space.
You must be superuser to execute gfs_grow. The gfs_grow tool tries to prevent you from corrupting your filesystem by checking as many of
the likely problems as it can. When expanding a filesystem, only the last step of updating the resource index affects the currently
mounted filesystem and so failure part way through the expansion process should leave your filesystem in its original unexpanded state.
You can run gfs_grow with the -Tv flags to get a display of the current state of a mounted GFS filesystem. This can be useful to do after
the expansion process to see if the changes have been successful.
gfs_grow will consume all the remaining space in a device and add it to the filesystem. If you want to add journals too, you need to add
the journals first using gfs_jadd.
OPTIONS -h Prints out a short usage message and exits.
-q Quiet. Turns down the verbosity level.
-T Test. Do all calculations, but do not write any data to the disk and do not expand the filesystem. This is used to discover what the
tool would have done were it run without this flag. You probably want to turn the verbosity level up in order to gain most informa-
tion from this option.
-V Version. Print out version information, then exit.
-v Verbose. Turn up verbosity of messages.
SEE ALSO mkfs.gfs(8)gfs_jadd(8)gfs_grow(8)