LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Resize file systen UFS (https://www.linuxquestions.org/questions/solaris-opensolaris-20/resize-file-systen-ufs-706775/)

czezz 02-23-2009 04:40 AM

Resize file systen UFS
 
Is there any way to resize UFS filesystem online (with mounted and working file system) or offline (with unmounted filesystem) and not to lose datas ?

Eg. Let's say I have /opt with 10 Gb capacity and I have 5 Gb unformated space. I'd like to add that 5 Gb to /opt not to lose datas on /opt
Is this possible under Solaris 10

Once I did that with ext3 fs with tool parted (not gparted). The only thing was to run fsck after all. And it had to be done offline.

ilikejam 02-23-2009 06:21 AM

Hi.

If the space is continuous on disk (i.e. you can add the 5GB directly on to the end of the 10GB /opt area), you can edit the partition layout in 'format', then do 'growfs -M /opt /dev/rdsk/cXtYdZsN' to grow the filesystem.

Dave

bjmgeek 09-21-2010 02:55 PM

resizing filesystems
 
On Linux, if resizing an ext2 / ext3 / ext4 file system, the file system may be safely grown online (i.e. while mounted) using resize2fs. Shrinking requires umounting the file system first. For Solaris UFS, growfs does not require the file system to be unmounted.


All times are GMT -5. The time now is 06:03 AM.