LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-23-2009, 04:40 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
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.
 
Old 02-23-2009, 06:21 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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
 
Old 09-21-2010, 02:55 PM   #3
bjmgeek
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transfer windows xp to xen virtual systen ?? prince amir Linux - Server 0 11-25-2008 07:11 AM
difference:: extX and ufs file system anwerreyaz Linux - General 3 07-13-2006 03:05 AM
difference:: ext/ufs file systems anwerreyaz General 1 07-12-2006 11:40 PM
UFS file system corrupt Tsuroerusu *BSD 3 11-22-2005 10:20 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration