02-02-2010
What is the O/S?
Which filesystem is nearly full?
What did you delete?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using Posix shell to write a script. The problem I am having is that when I use the read command to go through a file I lose the tabs. How can I keep this from happening? (1 Reply)
Discussion started by: keelba
1 Replies
2. UNIX for Dummies Questions & Answers
Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
Discussion started by: alan
4 Replies
3. Filesystems, Disks and Memory
Hello All-
Am new member to this forum. Have some unix experience. But true believer in it compared to windows.
Have a question regarding the disk space.
I know a command to check the total disk space utilization using:
df -k .
but what is the command to check the same disk space by... (6 Replies)
Discussion started by: milkyway
6 Replies
4. Shell Programming and Scripting
Hi
This is my script for disk space monitoring
clear
if
then
echo "You must be root user to execute the script"
fi
ALERT_LEVEL=10
CONSUMPTION_LEVEL= `df -k | awk {'print $5'} | cut -d '%' -f1 | sed "1 d"`
for i in $CONSUMPTION_LEVEL
do
FILE_SYSTEM=`df -k | awk {'print $1'} |... (3 Replies)
Discussion started by: chrs0302
3 Replies
5. Red Hat
when i check
/export directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /export is still 85% full.
Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't... (8 Replies)
Discussion started by: aboorkuma
8 Replies
6. Linux
Hi,
i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :-
1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
1057 ls -l /root/myswapfile
1058 chmod 600 /root/myswapfile
1059 mkswap /root/myswapfile
1060 swapon /root/myswapfile
... (1 Reply)
Discussion started by: apm
1 Replies
7. Shell Programming and Scripting
Hi All,
I know this is a simple question but i am not sure the exact answer it.
Here is the question:
There is a huge log file , if we delete the log file ,how the corresponding occupied file memory relocate to Hard Disk.
Thanks
Srinivas (3 Replies)
Discussion started by: Srinivas Gadi
3 Replies
8. Red Hat
Hello,
OS version is Red Hat Enterprise Linux Server release 6.5 (Santiago).
In one of the filesystem some old files post clone are not getting removed even with 'rm'
# ls -ltr | grep meagpd_62.dbf
-rw-rw---- 1 oracle oinstall 34358697984 Sep 1 08:46 meagpd_62.dbf
# rm... (7 Replies)
Discussion started by: saharookiedba
7 Replies
9. UNIX for Beginners Questions & Answers
Hello everyone,
I am having an issue here with CentOS release 6.6 (Final) that shows all of the space used up, but I can't tell where the space went.
Seemingly I am using up 100%, according to
df -h
Filesystem Size Used Avail Use% Mounted on... (27 Replies)
Discussion started by: DannyBoyCentOS
27 Replies
10. UNIX for Beginners Questions & Answers
Hello,
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
sda 8:0 0 38.2G 0 disk
├─sda1 8:1 0 500M 0 part /boot
└─sda2 8:2 ... (2 Replies)
Discussion started by: centosadmin
2 Replies
LEARN ABOUT OSF1
extendfs
extendfs(8) System Manager's Manual extendfs(8)
NAME
extendfs - Extends UFS file systems
SYNOPSIS
/sbin/extendfs [- s] [disk_blocks] device_name
DESCRIPTION
Use the extendfs command to increase the storage space in a UFS file system. The file system must not be mounted when you perform this
operation. To extend a mounted (in use) UFS file system, use the mount command with the -o extend option.
The procedure for increasing the storage space of a UFS file system is as follows: Look at the contents the /etc/fstab file to identify the
disk partition that maps to the file system. Ensure that there is available storage space on the target disk as follows: If LSM is in use
on your system, use LSM commands to increase the size of the LSM volume as described in the Logical Storage Manager guide. If LSM is not
in use on your system, use the disklabel command or the diskconfig graphical user interface to check the current size and use of partitions
on the disk. If there is adequate space on an adjacent partition, use the disklabel command to write the current label to a file as fol-
lows: # disklabel -r dsk4 > d4label Edit the disklabel file to change the size of the partition on which your UFS file system resides.
Increase the number of disk blocks on the partition and decrease the disk block size of the adjacent partition by an equivalent number.
Use the disklabel command with the -R option to write the revised label to the raw disk as follows: # disklabel -R /dev/rdisk/dsk4 d4label
When the disk label is revised, extend the file system using the extendfs command. You can either use the full extent of the newly sized
partition or extend the file system in stages. The following example commands show both methods. To extend the file system to use all the
available space, you specify the disk partition on which the file system resides, as follows: # extendfs /dev/disk/dsk4g To extend the
file system to use only part of the available space, you specify a number of disk blocks, as follows: # extendfs -s 300000 /dev/disk/dsk4g
The remainder of the extended partion is reserved for future use.
You can extend a file system as many times as necessary, up to the physical limit of the storage device. When no more space is available
on the storage device, you must back up the file system using the dump command and restore the file system to a storage device that has
more available space.
Once you have extended a file system, the operation cannot be reversed except by a back up and restore operation. Use the dump command to
back up the file system. You can then reset the partition sizes manually and restore the file system to the storage device.
ERRORS
The disklabel command produces output similar to that of the newfs command. If a list of disk blocks is not displayed on the terminal, the
command has failed. Verify the partition settings and the mount status of the target file system.
The disklabel command does not permit you to overwrite a partition if it is in use. Refer to the disklabel(8) reference page for more
information on label errors.
FILES
Specifies the command path.
RELATED INFORMATION
diskconfig(8), disklabel(8), mount(8), and fstab(4).
extendfs(8)