Expand ufs Filesystems | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Expand ufs Filesystems

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-29-2008
atogunde atogunde is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 31 October 2008, 11:14 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Expand ufs Filesystems

Hi All,

I need to expand a number of Filesystems on a Sun machine running Solaris 10 OS. But first I am confused;

1. Is it possible to expand a ufs filesystem such as /dev/dsk/c1t1d0s0 (that is not managed by SVM) without lossing existing data?

2. Is it possible to have such a filesystem span over more than 1 physical disks?

At present I have the following filesystems which are almost full;

/dev/dsk/c1t1d0s0 141179002 121798695 17968517 88% /mainDB
/dev/dsk/c1t4d0s0 141179002 130083737 9683475 94% /mainHOME
/dev/dsk/c1t3d0s0 141179002 139767832 0 100% /webapps

Each of these flesystems were created on 1 physical disk each taking the whole space. ( The entrie disk has been taken up by the filesystems)

I wish to expand these filesystems; I have added five new disks to the system.

How do I expand these file systems without loosing the existing data?

I thought of the following;

1. Partition the new disks and create metadevices on them, ->create 3 volumes using SVM, -> mount the new volumes on 3 different fielsystems, -> then backup or copy the existing filesystems to the newly mounted ones (how do I do that?), -> edit the /etc/vfstab, change the mount devices for the filesystems so that the system mounts the newly created metadevices on the old mount points, re-partition the old disks and make them into metadevices, use growfs to expand the the 3 filesystems on the fly.

I haven't done this before, I just some opinions please. What steps can I take for these please

Thanks

atogunde


Sponsored Links
    #2  
Old 10-29-2008
Serano Serano is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 8 March 2013, 3:51 AM EST
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

just a small question about this.

Do you like to use ZFS or would you take the "old fashioned" way ?.
With zfs you make a pool with your new disks an cut out your filesystems from the whole bunch.

Think about it. zfs could be the better way, possible the easier. SVM or ZFS ?
Sponsored Links
    #3  
Old 10-30-2008
atogunde atogunde is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 31 October 2008, 11:14 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Serano,

I don't know much about ZFS now; and I don't know if it can be implemented on this system without lossing the existing data. Then, will zfs co-exist with ufs? I forgot to mention that there are some other filesystems on this system that are already being managed by SVM.

I just read a brief about ZFS and it seems like it'll be the best, but it should have been implemented from the begining, right?

What do I have to do if it's SVM or ZFS?
    #4  
Old 10-30-2008
Serano Serano is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 8 March 2013, 3:51 AM EST
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

no,you can add zfs pools whenever you like.
The problem with your plan above is that you will have at the end a concated filessystem, no raid, no mirror, just a concat.

Does that help for beginning?
ZFS Tutorial Part 1
Sponsored Links
    #5  
Old 10-30-2008
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 19 December 2014, 9:00 AM EST
Location: Paris
Posts: 4,471
Thanks: 17
Thanked 482 Times in 434 Posts
ZFS can definitely coexist with UFS.
Sponsored Links
    #6  
Old 10-31-2008
atogunde atogunde is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 31 October 2008, 11:14 AM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Serano,

Yes I agree, maybe a concat filesystem for now as there's not enough disks for mirror. But there may be enough for raid. What do you suggest?

Maybe we can add a raid zpool on the new disks, create filesystems on the pool then copy the existing/old filesystems to the new ones on zfs (would that work? how?).
Sponsored Links
    #7  
Old 10-31-2008
jlliagre jlliagre is offline Forum Advisor  
ɹǝsn sıɹɐlos
 
Join Date: Dec 2007
Last Activity: 19 December 2014, 9:00 AM EST
Location: Paris
Posts: 4,471
Thanks: 17
Thanked 482 Times in 434 Posts
You can create a RAIDZ pool with your five disks and then create as many file systems as you need there to move your data.

This can easily be done assuming you can turn off the application accessing the data during the move.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Expand LUN petervg AIX 1 04-21-2011 04:09 AM
How to expand who command? guitarscn UNIX for Dummies Questions & Answers 8 08-31-2010 08:27 AM
expand logic for > and < pbsrinivas Shell Programming and Scripting 0 08-10-2007 10:59 AM
Terminal Expand Terrible UNIX for Advanced & Expert Users 2 06-07-2006 01:02 PM



All times are GMT -4. The time now is 06:40 PM.