03-27-2019
[ASK] decrease/shrink the size of filesystem
Hello,
I would like to reduce the size of filesystem online. We can do online for increase without any problem. So any risk can be occurred with the decrease? This is not an issue, just a discussion for decrease/shrink space with chfs command.
My AIX system is version 6.1 and the filesystem type is JFS2.
10 More Discussions You Might Find Interesting
1. Programming
using namespace std;
void g();
class A {
public :
A() { g();g();g(); cout << "Constructor of A"<< endl ;}
};
inline void g(){ cout << "vijay" <<endl; }
int main() {
A a;
}
when i use inline i get size 303488 Aug 31 12:05 a.out*
when not using inline i get size 303572 Aug 31... (1 Reply)
Discussion started by: vijaysabari
1 Replies
2. Solaris
Hi All,
I need to increase the filesystem of / and /var (two different slices)? Space will be coming from /home slice so I need to decrease it. Is that possible without reinstallation or in a single-user-mode?
Any idea or link please.
Thanks in advance. (5 Replies)
Discussion started by: itik
5 Replies
3. Shell Programming and Scripting
Hi all,
I am using
echo "$EMAILMESSAGE" | mailx -s "$SUBJECT" -b $CC "$TO"
I am receiving the mail but seems to big in font size. Is there any option mailx to decrease the size of the mail generated.
Thanks, (1 Reply)
Discussion started by: shellscripter
1 Replies
4. AIX
Hi,
is anyone aware about filesystem size restrictions on AIX? And does anyone know a solution for below problem?
I have 2 boxes attached to EMC Raid5 storage, both have huge /optware/oracle/oradata filesystems - 4.5 and 2.5 TB in size, nothing is striped or in any other way restricted. Due to... (11 Replies)
Discussion started by: zxmaus
11 Replies
5. Solaris
Hi Gurus
I want to know the command & tips regarding, how to increase or decrease inode number of the particular ufs filesystem. Is it possible to do it in a live/production environment.
Regards (3 Replies)
Discussion started by: girish.batra
3 Replies
6. AIX
Hi
I have found a problem on my AIX 5.1 server. day by day the paging size is increasing,what is the reason behind it and if percentage is at 100 what will happen. Oracle 9i is running on my server.
PAGING SPACE
size,mb 5632
% used 14.6
% free 85.3
How can i decrease the using... (6 Replies)
Discussion started by: dearsumon
6 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am using the below command to get the output in a file called "Logs.txt"
tail -f filename | egrep -i "cpu | hung " >> Logs.txt The problem is the Logs.txt file gets updated only after the buffer is 8Kb, but i want to update the file immediately and not wait for the buffer to get 8kb.
Is... (8 Replies)
Discussion started by: @bhi
8 Replies
8. UNIX for Advanced & Expert Users
Hello,
in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies
9. Programming
Hello all
i have simple server running on linux redhat 6.1
it is build with c++
in the server i have huge std vector that holds pointers to cache objects
those cache objects holds allot of data from the DB
any way ...
in some point in time there is simple API that suppose to clean the... (2 Replies)
Discussion started by: umen
2 Replies
10. Red Hat
Hello guys,
I would like to ask you kindly if you don't know some quick and safe method how to shrink ext4 filesystem and reduce the size of a Logical Volume in Linux, please?
Thank you very much. (2 Replies)
Discussion started by: los_bandidos
2 Replies
LEARN ABOUT REDHAT
resize_reiserfs
RESIZE_REISERFS(8) System Manager's Manual RESIZE_REISERFS(8)
NAME
resize_reiserfs - Reiserfs filesystem resizer
SYNOPSIS
resize_reiserfs [ -s [+|-]size[K|M|G] ] [ -j dev ] [ -fqv ] device
DESCRIPTION
The resize_reiserfs tool resizes an unmounted reiserfs file system. It enlarges or shrinks an reiserfs file system located on a device so
that it will have size bytes or size=old_size +(-) size bytes if the + or - prefix is used. If the -s option is not specified, the
filesystem will be resized to fill the given device. The size parameter may have one of the optional modifiers K, M, G, which means the
size parameter is given in kilo-, mega-, gigabytes respectively.
The resize_reiserfs program does not manipulate the size of the device. If you wish to enlarge a filesystem, you must make sure you expand
the underlying device first. This can be done using cfdisk(8) for partitions, by deleting the partition and recreating it with a larger
size (assuming there is free space after the partition in question). Make sure you re-create it with the same starting disk cylinder as
before! Otherwise, the resize operation will certainly not work, and you may lose your entire filesystem.
The resize_reiserfs program allows to grow a reiserfs on-line if there is a free space on block device.
If you wish to shrink an reiserfs partition, first use resize_reiserfs to shrink the file system. You may then use cfdisk(8) to shrink the
device. When shrinking the size of the device, make sure you do not make it smaller than the reduced size of the reiserfs filesystem.
OPTIONS
-s [+|-]size
Set the new size in bytes.
-j dev Set the journal device name.
-f Force, do not perform checks.
-q Do not print anything but error messages.
-v Turn on extra progress status messages (default).
RETURN VALUES
0 Resizing successful.
-1 In another case.
EXAMPLES
The following example shows how to test resize_reiserfs. Suppose 2Gb reiserfs filesystem is created on the device /dev/hda8 and is mounted
on /mnt. For shrinking the device we need to unmount it first, then run resize_reiserfs with a size parameter (in this case -1Gb):
df
umount /mnt
resize_reiserfs -s -1G /dev/hda8
mount /dev/hda8 /mnt
df /mnt
WARNING
Note that this is a BETA program and may corrupt filesystems.
AUTHOR
This version of resize_reiserfs has been written by Alexander Zarochentcev <zam@namesys.com>.
BUGS
Please, report about the bugs to Alexander Zarochentcev <zam@namesys.com> or to Hans Reiser <reiser@namesys.com>.
SEE ALSO
cfdisk(8), reiserfsck(8), debugreiserfs(8)
Reiserfsprogs-3.6.4 January 2002 RESIZE_REISERFS(8)