Expand ufs Filesystems


 
Thread Tools Search this Thread
Operating Systems Solaris Expand ufs Filesystems
# 1  
Old 10-29-2008
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


# 2  
Old 10-29-2008
Hi,

just a small question about this.

Do you like to use ZFS or would you take the "old fashioned" way Smilie ?.
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 ?
# 3  
Old 10-30-2008
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
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
# 5  
Old 10-30-2008
ZFS can definitely coexist with UFS.
# 6  
Old 10-31-2008
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?).
# 7  
Old 10-31-2008
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

How to expand three LVMs?

Hello All, It goes like this.. I have increased the data hard drive of server by 100GB and rebooted the server. I want to expand each of the LVM's by 30GB each .There are totally three LVMS to be expanded.Any help on complete commands that needs to be followed?Thanks (4 Replies)
Discussion started by: gull05
4 Replies

2. AIX

Expand LV

Under the df command, one of my logical volumes, /dev/hd4, was showing 100% Used, so I added 2 logical partitions, but its still showing 100% used. Is there a separate command I need to execute to reallocate? (5 Replies)
Discussion started by: markper
5 Replies

3. AIX

Expand LUN

Hello all, I have the following env: * DS4300 storage SAN * AIX 5.3 Lpar (storage through vio server) * AIX 5.3 Server Some FS are too small do I'm setting up a process to increase the size of the FS. To expand the size of the FS I plan to do the following for the physical AIX server,... (1 Reply)
Discussion started by: petervg
1 Replies

4. UNIX for Dummies Questions & Answers

How to expand who command?

When I do the who command it doesn't show all my info: $w gscn 6:08PM up 4 days, 20:33, 177 users, load averages: 7.46, 3.78, 3.43 USER TTY FROM LOGIN@ IDLE WHAT gscn R1 pool-92-199-17-1 5:46PM - w gscn Like in the 'From' column.... (8 Replies)
Discussion started by: guitarscn
8 Replies

5. Shell Programming and Scripting

How to expand the same word?

Hi All, May I know how to expand the words? e.g: a aa aaa aaaa I have try to use for (i=0;i<5;i++) do c="a" echo -n $c done but the output is aaaaa. Is it need to use array?:confused: Thanks for your help! (5 Replies)
Discussion started by: natalie23
5 Replies

6. Solaris

Want to expand Solaris 10_x86 root UFS partition

OS: Solaris 10_x86. Problem: Server needs to be patched, but root "/" is near full. /dev/dsk/c1t1d0s0 4.2G 3.9G 284M 94% / The /exports/home dir has a lot more space, and I'd like to either move root "/" to it, or delete it all together: /dev/dsk/c1t1d0s7 12G ... (20 Replies)
Discussion started by: b1f30
20 Replies

7. Shell Programming and Scripting

expand logic for > and <

Hi Input A12345678901234567890 < A12345678901234567890 AND C12345678901234567890 < D12345678901234567890 AND E12345678901234567890 > F12345678901234567890 If the length of the line at any point exceed more than 60 chars it should come to next line but it should not break a variable... (0 Replies)
Discussion started by: pbsrinivas
0 Replies

8. UNIX for Advanced & Expert Users

Terminal Expand

hi guys. i have written a script/program and i would strongly prefer if this script automatically expands the user's terminal whenever he or she starts the script. this is so the script/program can fit on the user's screeen without user having to manually drag and spread his screen. what... (2 Replies)
Discussion started by: Terrible
2 Replies
Login or Register to Ask a Question