changing filesystem partitions?

changing filesystem partitions?

Post by Elliot C. Jolesc » Thu, 08 Jul 1999 04:00:00



I am new to Sun and Solaris.  We installed Solaris with the following
filesystem.  After a couple of weeks it was decided that we really
needed to increase the size of /var.  We have unused space on /bogus.
Is there anyway to increase the size of /var and decrease the size of
/bogus without reinstalling the system?

I did look at Infodoc 17303 on sunsolve but was still confused on this
issue.  We are using ufs as the filesystem.

Filesystem            kbytes    used   avail capacity  Mounted on
/proc                      0       0       0     0%    /proc
/dev/dsk/c0t0d0s0     144172   56652   73103    44%    /
/dev/dsk/c0t0d0s6    1018382  552443  404837    58%    /usr
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t0d0s3      37871   11221   22863    33%    /var
/dev/dsk/c0t0d0s5    3530595 1223161 2272129    35%    /usr/local
/dev/dsk/c0t0d0s1     482824  280553  153989    65%    /usr/openwin
swap                 1409328     296 1409032     1%    /tmp

Thanks for the help.

Elliot
==================================================================

Sr. Network Administrator               440-775-6930
Center for Information Technology       440-775-8573 FAX
Oberlin College
Oberlin, OH 44074
==================================================================

 
 
 

changing filesystem partitions?

Post by saa.. » Thu, 08 Jul 1999 04:00:00




Quote:

> --------------68C99825E7328627109C3A39
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit

> I am new to Sun and Solaris.  We installed Solaris with the following
> filesystem.  After a couple of weeks it was decided that we really
> needed to increase the size of /var.  We have unused space on /bogus.
> Is there anyway to increase the size of /var and decrease the size of
> /bogus without reinstalling the system?

> I did look at Infodoc 17303 on sunsolve but was still confused on this
> issue.  We are using ufs as the filesystem.

> Filesystem            kbytes    used   avail capacity  Mounted on
> /proc                      0       0       0     0%    /proc
> /dev/dsk/c0t0d0s0     144172   56652   73103    44%    /
> /dev/dsk/c0t0d0s6    1018382  552443  404837    58%    /usr
> fd                         0       0       0     0%    /dev/fd
> /dev/dsk/c0t0d0s3      37871   11221   22863    33%    /var
> /dev/dsk/c0t0d0s5    3530595 1223161 2272129    35%    /usr/local
> /dev/dsk/c0t0d0s1     482824  280553  153989    65%    /usr/openwin
> swap                 1409328     296 1409032     1%    /tmp

> Thanks for the help.

Well I don't see a /bogus up there, but from what I see I'd say "no."
/var is not critical to the current operation of the system (like, say,
/usr) so you could do the following:

1. Make a new mount point, say /varnew
2. Copy /var to /varnew
3. use format to increase the size of the partition (back up the other
partition if there is data there)
4. mv /varnew /var

Now for the caveats:

the partition you are taking from _MUST BE ADJACENT TO /var_!  You
cannot have a non-contiguous partition.  If the space is separated,
consider using a volume manager like Solstice Disksuite or Veritas, but
there are other issues with that.

You also need enough disk space to copy the contents of /var to; from
your vfstab file above, it looks like you do for /var, but I don't know
about the filesystem you're taking the space from -- remember that data
will be destroyed unless you back up the donor filesystem.

Good luck!

SEAN

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

 
 
 

changing filesystem partitions?

Post by Dav » Fri, 09 Jul 1999 04:00:00



> [ snip ]
> 1. Make a new mount point, say /varnew
> 2. Copy /var to /varnew
> 3. use format to increase the size of the partition (back up the other
> partition if there is data there)
> 4. mv /varnew /var

> [ snip ]

Don't forget to newfs the newly increased /var before moving
everything back to /var from /varnew.  Also, be sure that you increase
the size of /var, using space that was previously allocated to /bogus

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


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

 
 
 

changing filesystem partitions?

Post by Andrew Gabri » Fri, 09 Jul 1999 04:00:00




Quote:

>Well I don't see a /bogus up there, but from what I see I'd say "no."
>/var is not critical to the current operation of the system (like, say,
>/usr) so you could do the following:

/var (and if separate, /var/adm) are essential to operation
of the system, at least at boot time, because init requires
access to /var/adm/utmp and /var/adm/wtmp.
I havn't tried pulling them out from under a running system.

--
Andrew Gabriel
Consultant Software Engineer

 
 
 

1. changed root partition's filesystem from ext3 to ext2 and not fstab so startup bombing

Hello everyone.

I am running RH 7.2 (no upgrades).

I wanted to convert my root partition from ext3 to ext2, so I used
tune2fs.  My fstab file still had that partition as ext3, but the
/etc/fstab file was read-only, so I decided to reboot to see what
would happen.  The boot crashes at the same point everytime (even if I
use my boot disk) and I get these errors:

mount: error 22 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
Freeing unused kernel memory: 220k freed
Kernel panic: No init found.  Try passing init= option to kernel.

I think the first line is the source of all of my trouble.  My root
partition is not mounting.  I have tried lilo boot paramaters with no
luck.  I can not boot into the system, so I can not change the
/etc/fstab file.  Does anyone have a solution for me?

I read many old posts, but I could not find my exact problem.

Thanks.

Andrew

remove string NOTPART from e-mail address above to e-mail me

2. Help: sharing a keyboard between Linux and Windows

3. Changing Linux partitions to DOS FAT partitions

4. simple async comm question

5. Changing from UMSDOS to Linux partition w/swap partition?

6. What's difference between AIX3.1 and AIX3.2?

7. Changing DOS partition to Linux partition

8. Linux PPP connections

9. Change Mac Partition into Linux Partition?

10. changing the linux partition to a DOS partition

11. Is there a partitioning tool that will allow me to change partition types

12. change an msdos partition to linux partition

13. Disk partitioning and moving filesystems.