Err,
I just tried an online resize of a test ext3 FS on a test VxVM virtual
machine and resize2fs froze the system (fully patched 5.7 host, though).
So, YMMV but it's true that it -should- work but perhaps its safer to do
that vxresize says.. The offline method works, of course:
[root@rh5x64 ~]# vxdg init testdg sdb sdc sdd sde sdf sdg sdh sdi sdj sdk sdl
sdm sdn sdo sdp sdq
[root@rh5x64 ~]# vxassist -g testdg make test_lv 512m
[root@rh5x64 ~]# vxassist -g testdg maxsize
Maximum volume size: 1175552 (574Mb)
[root@rh5x64 ~]# mke2fs -j /dev/vx/dsk/testdg/test_lv
mke2fs 1.39 (29-May-2006)
Filesystem label=
[.....]
[root@rh5x64 ~]# mount -t ext3 /dev/vx/dsk/testdg/test_lv /mnt
[root@rh5x64 ~]# df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/vx/dsk/testdg/test_lv
496M 19M 452M 4% /mnt
[root@rh5x64 ~]# vxassist -g testdg growby test_lv 512M
[root@rh5x64 ~]# vxprint -g testdg -v
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v test_lv fsgen ENABLED 2097152 - ACTIVE - -
[root@rh5x64 ~]# /etc/vx/bin/vxresize -g testdg test_lv 1024M
VxVM vxresize ERROR V-5-1-14314 Online ext2/ext3 resize not supported, please
unmount the filesystem and rerun vxresize
[root@rh5x64 ~]# umount /mnt
[root@rh5x64 ~]# e2fsck -f /dev/vx/dsk/testdg/test_lv
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vx/dsk/testdg/test_lv: 11/131072 files (9.1% non-contiguous), 35308/524288
blocks
[root@rh5x64 ~]# resize2fs /dev/vx/dsk/testdg/test_lv
resize2fs 1.39 (29-May-2006)
Resizing the filesystem on /dev/vx/dsk/testdg/test_lv to 1048576 (1k) blocks.
The filesystem on /dev/vx/dsk/testdg/test_lv is now 1048576 blocks long.
[root@rh5x64 ~]# mount -t ext3 /dev/vx/dsk/testdg/test_lv /mnt
[root@rh5x64 ~]# df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/vx/dsk/testdg/test_lv
992M 19M 922M 2% /mnt
Regards,
Vincent
_______________________________________________
rhelv5-list mailing list
rhelv5-list@redhat.com
https://www.redhat.com/mailman/listinfo/rhelv5-list