Change the size of a file system - please help

Change the size of a file system - please help

Post by spyr.. » Sat, 03 Jul 1999 04:00:00



Hi,

System: Solaris 2.6 on Sun SPARCstation 20

Question:
I plan to take 1GB away from /test and give it to /prod.
Is there a way to dynamically change the size of /prod base on the
filesystem table below?

Filesystem              Kbytes          Used            Avail
Capacity        Mount on

/dev/dsk/c1t0d1s5       3847976         3272758         571371
86%             /prod
/dev/dsk/c1t0d1s7       2379083         1549789         826915
66%             /home
/dev/dsk/c0t0d0s0       4126203         3293196         791745
81%             /develop
/dev/dsk/c0t2d0s0       4126203         2753140         1331801
68%             /test

Thanks,

 
 
 

Change the size of a file system - please help

Post by saa.. » Sat, 03 Jul 1999 04:00:00




> Hi,

> System: Solaris 2.6 on Sun SPARCstation 20

> Question:
> I plan to take 1GB away from /test and give it to /prod.
> Is there a way to dynamically change the size of /prod base on the
> filesystem table below?

> Filesystem         Kbytes          Used            Avail
> Capacity   Mount on

> /dev/dsk/c1t0d1s5          3847976         3272758         571371
> 86%                /prod
> /dev/dsk/c1t0d1s7          2379083         1549789         826915
> 66%                /home
> /dev/dsk/c0t0d0s0          4126203         3293196         791745
> 81%                /develop
> /dev/dsk/c0t2d0s0          4126203         2753140         1331801
> 68%                /test

Since you don't appear to be using volume management software like
Veritas (Sun StorEdge) or Solstice Disksuite, the answer is "no".  You'd
have to use format and destroy all data there.  You can't even do that,
though because /test is on a different physical disk and you can't have
a partition span disks like that.  I would recommend backing up the data
and licensing Solstice Disksuite to create a volume that spans multiple
disks.  You will also be able to grow that volume in the future without
destroying existing data.

SEAN

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Change the size of a file system - please help

Post by Dav » Sun, 04 Jul 1999 04:00:00


[ snip ]

Quote:> > Filesystem            Kbytes          Used            Avail
> > Capacity      Mount on

> > /dev/dsk/c1t0d1s5     3847976         3272758         571371
> > 86%                   /prod
> > /dev/dsk/c1t0d1s7     2379083         1549789         826915
> > 66%                   /home
> > /dev/dsk/c0t0d0s0     4126203         3293196         791745
> > 81%                   /develop
> > /dev/dsk/c0t2d0s0     4126203         2753140         1331801
> > 68%                   /test

> Since you don't appear to be using volume management software like
> Veritas (Sun StorEdge) or Solstice Disksuite, the answer is "no".  You'd
> have to use format and destroy all data there.  You can't even do that,
> though because /test is on a different physical disk and you can't have
> a partition span disks like that.

You may be able to borrow some data from /home.  Can you move the
/home directory from c1d0d1s7 to c0t0d0s? and then add the old /home
space to /prod?  

Note: you will still have to make a backup of /prod as it is now, use
format to allocate /home's old space to /prod, newfs /prod, and
restore the data from backup.  This may be a solution if you can't
afford solstice.

As always backup all of your data before doing anything!

cheers,
Dave
+---------------------+---------------+


+---------------------+---------------+