07-07-2013
you can change the filesystem while it is running but you are asking for a disaster to happen ... essentially, you will be creating files and then messing up the filesystem underneath it ... it would be similar to jumping into a sand pit expecting a fairly solid spot but getting quick sand instead ...
i strongly advise against resizing filesystems while they are running or in use but if you really want to try it -- try testing the process you envision on a "disposable" server with LVM enabled and confirm if the risks involved are acceptable ...
10 More Discussions You Might Find Interesting
1. AIX
Hi..
I have to resize a partition(filesystem). I mean reduce the size one particular partition and increase the size of another. What should I do?? Pls help
Bala (5 Replies)
Discussion started by: balaji_prk
5 Replies
2. Solaris
This is actually a VxVM question. I have a volume/filesystem spread over 4*146G disks. Now I want to shrink the filesystem - which I can do using vxresize. However, I want to shrink so that two of the four disks that the filesystem occupies are removed from the volume. Can I do that? (3 Replies)
Discussion started by: blowtorch
3 Replies
3. Solaris
Hi,
I am working on SunOS perlrate 5.10 Generic_127111-09 sun4v sparc SUNW,SPARC-Enterprise-T5120.
The server has an LSISAS3801E HBA card installed and is connected to a StorageTek 2530 array.
I have made a volume on arrary using Common Array Manager.
I can see the volume on server:
... (2 Replies)
Discussion started by: seanban
2 Replies
4. Solaris
Hi,
I need to increase a veritas filesystem I have currently mounted on a Solaris 10 server. We can resize the LUN on the NetApp filer no problem. What I need to know is what do I do next on the Solaris 10 server I have so that it will see the increase in size. Do I run 'devfsadm' to... (3 Replies)
Discussion started by: gwhelan
3 Replies
5. SuSE
Hello Experts,
I am very new to unix environment.
Root filesystem in one of our Linux boxes has almost reached 100%. is there a procedure/ way to resize the root filesystem.
******************************************************
ld8331:/ # df -h|more
Filesystem Size Used... (2 Replies)
Discussion started by: ashok1784
2 Replies
6. AIX
Anyone know how to resize a LUN (if SAN disk array has increased the LUN size) and have AIX LVM know about it? Or is it automatic?
Equivalent vxvm command is something like: vxdisk resize size= (3 Replies)
Discussion started by: apra143
3 Replies
7. UNIX for Dummies Questions & Answers
i am facing a problem, i would like to resize a file system called /pcard04 i am not useing any voulme manager and we have a NETAPP center storge.
what i did is
root@cms-dev # df -h | grep /pcard04
/dev/dsk/c4t60A9800043346C35636F2D6D4F354743d0s0 5.2G 4.0G 1.0G 80% /pcard04
then... (1 Reply)
Discussion started by: q8devilish
1 Replies
8. Red Hat
I'm new to linux and need information on how do I create a filesytem on a dedicated on LUN for RHEL 4 and 5? I want the filesystem to be a ext3
---------- Post updated at 10:00 AM ---------- Previous update was at 08:56 AM ----------
Found the answer. This thread can be closed. (1 Reply)
Discussion started by: soupbone38
1 Replies
9. Solaris
Is it possible to increase the root filesystem size without reboot ?? (4 Replies)
Discussion started by: gowthamakanthan
4 Replies
10. AIX
Good afternoon!
Help with a solution
I have AIX 7.1
works through vios
I expanded Lun
that it is necessary to make that aix saw this change and to expand the section lvm
Sorry for my English (1 Reply)
Discussion started by: iformats
1 Replies
LEARN ABOUT REDHAT
e2fsadm
E2FSADM(8) System Manager's Manual E2FSADM(8)
NAME
e2fsadm - ext2 filesystem / LVM administration
SYNOPSIS
e2fsadm [-d|--debug] [-h|--help] {[-l|--extents] [+|-]LogicalExtentsNumber|" [-L|--size] [+|-]LogicalVolumeSize[kKmMgGtT]} [-n|--nofsck]
[-v|--verbose] [--version] LogicalVolumePath
DESCRIPTION
e2fsadm allows resizing of a logical volume containing a mounted or unmounted ext2 filesystem. For unmounted filesystems it can extend the
logical volume and grow the filesystem using resize2fs(8) or ext2resize(8), or shrink the filesystem and then reduce the logical volume
afterwards. For mounted filesystems it can extend the logical volume and grow the filesystem using ext2online(8).
OPTIONS
-d, --debug
Enables additional debugging output (if compiled with DEBUG).
-h, --help
Print a usage message on standard output and exit successfully.
-l, --extents [+|-]LogicalExtentsNumber
Resize the filesystem/logical volume to or by the number of logical extents. If you use + or - then the number will be relative the
th current size of the logical volume, otherwise the volume will be resized to LogicalExtentsNumber extents.
-L, --size [+|-]LogicalVolumeSize[kKmMgGtT]
Resize the filesystem/logical volume to or by the given size. If you use + or - then the number will be relative the the current
size of the logical volume, otherwise the volume will be resized to LogicalVolumeSize. A size suffix of K for kilobytes, M for
megabytes, G for gigabytes or T for terabytes can be used.
-n, --nofsck
Avoid the filesystem check before the resize operation. A filesystem check is mandatory before resize2fs(8), but is optional for
ext2resize(8), and is not allowed for ext2online(8) because the filesystem is mounted. Useful if a check has been done before
starting e2fsadm.
-t, --test
Test run without real resizing.
-v , --verbose
Gives verbose runtime information about e2fsadm's activities.
--version
Print version number and exit successfully.
DIAGNOSTICS
e2fsadm calls e2fsck(8), lvextend(8), lvreduce(8), and resize2fs(8), ext2resize(8), or ext2online(8) internally. By default, for mounted
filesystems e2fsadm will look for resize2fs first, and failing that it will look for ext2resize. For mounted filesystems it will try to
run ext2online. It returns an exit code of 0 for success or > 0 for error:
1 the filesystem size is invalid
2 the logical volume name is missing
3 the logical volume name is invalid
4 the logical volume doesn't exist
5 an error occured while reading the VGDA
6 an error occured while resizing the filesystem
7 /proc/mounts is not available
8 the filesystem is mounted
9 the filesystem type is not ext2
10 the e2fsck(8) command is missing or was not found
11 resize2fs(8) is missing or was not found
12 unable to run e2fsck(8)
13 unable to run resize2fs(8)
14 an error occured while reading the logical volume
15 logical volume size error
16 lvextend(8) is missing or was not found
17 unable to run lvextend(8)
18 lvreduce(8) is missing or was not found
19 unable to run lvreduce(8)
95 driver/module not in kernel
96 invalid I/O protocol version
97 error locking logical volume manager
98 invalid lvmtab (run vgscan(8))
99 invalid command line
ENVIRONMENT VARIABLES
E2FSADM_RESIZE_CMD
Command to call instead of resize2fs(8).
E2FSADM_RESIZE_OPTS
Options for the EXT2_RESIZE_CMD.
E2FSADM_ONLINE_CMD
Command to call instead of ext2online(8).
E2FSADM_ONLINE_OPTS
Options for the EXT2_ONLINE_CMD.
SEE ALSO
lvm(8), lvcreate(8), lvextend(8), lvreduce(8), resize2fs(8), ext2resize(8), ext2online(8)
AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com>
Heinz Mauelshagen LVM TOOLS E2FSADM(8)