SUMMARY: merging two filesystem

From: Brett Lanham <blanham_at_cleartrack.com>
Date: Wed Jan 08 2003 - 18:08:51 EST
Thanks to James Matthew Vandevegt, Doug Floer, Steven Ruby, Sean Berry, Jay
Lessert, and Glen Harrison

Seems I forgot to mention that I needed to newfs the partition after I was
done with format.  Of course I did do that, just forgot to mention it.
Otherwise everything seems fine.  Someone also mentioned that I could avoid
losing data on the first of the two partitoins I was merging by using mkfs
-G but I haven't looked into that yet.  I guess that will grow the
filesystem out to fit the new slice size.  Thanks 

Brett

> -----Original Message-----
> From: Brett Lanham [mailto:blanham@cleartrack.com]
> Sent: Wednesday, January 08, 2003 4:10 PM
> To: Sunmanagers (E-mail)
> Subject: merging two filesystem
> 
> 
> I know this question has been asked a million times but I'm 
> right now unable
> to find info about doing this.  I have a space issue on a particular
> filesystem and I'm wanting to merge the filesystem with 
> another that is not
> really being used.  I know I could do some symlink stuff but 
> that won't
> really work since the space is almost totally consumed by the 
> creation of a
> single file, and I don't have any other filesystem that is by 
> itself big
> enough.  What I want to do is merge two filesystem, and I'm 
> not worried
> about retaining the data on those filesystems while I make 
> the change.  I do
> however have other filesystems on the same disk that I will 
> not be able to
> relocate while this is done.  My thought was that I could 
> just run format on
> the disk and reorganize the two partitions in question and 
> make sure I do
> not mess with the one I don't want to change.  Then newfs my 
> new filesystem
> and remount it.  Since I couldn't find info on doing this but 
> it seemed easy
> enough I went ahead and setup a little test scenario on a 
> test box I have.
> Every thing seems to work properly but I'm concerned I might 
> be missing
> something.  It seemed too easy.  here is some more detail on 
> what I did in
> my test.
> 
> slices in test
> /dev/dsk/c2t8d0s0      95702    9946   76186    12%    /mnt/u01
> /dev/dsk/c2t8d0s3      95702    1561   84571     2%    /mnt/u02
> /dev/dsk/c2t8d0s4      95702    1561   84571     2%    /mnt/u03
> 
> want to merge u02 and u03 so I make one u02 that is 200MB.
> 
>  - unmounted u01, u02, and u03
>  - ran format on c2t8d0s2.
>  - went into partition mode
>  - set s4 to 0 size and starting point
>  - set s3 to start where it normally started but end where s4 
> used to end.
> (BTW can you specify what block to end at instead of the size 
> of the slice?)
> 
>  - ran label to save changes
>  - quit from format
>  - remounted drives
> 
> after reconfig
> /dev/dsk/c2t8d0s0      95702    9946   76186    12%    /mnt/u01
> /dev/dsk/c2t8d0s3     192790       9  173502     1%    /mnt/u02
> 
> All data on u01 is still there and accessible.
> 
> Damn this email is long considering it's just to get some 
> confirmation that
> what I'm doing isn't totally braindead.  Thanks.
> 
> Brett Lanham
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Jan 8 18:15:56 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:01 EST