Want to expand Solaris 10_x86 root UFS partition


 
Thread Tools Search this Thread
Operating Systems Solaris Want to expand Solaris 10_x86 root UFS partition
# 1  
Old 08-14-2008
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 4.7G 7.1G 40% /export/home

Note: Server *can* have downtime, but I *don't* have another disk in the system I can install onto or partition.

/etc/vfstab:

Code:
# cat /etc/vfstab 
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c1t1d0s1       -       -       swap    -       no      -
/dev/dsk/c1t1d0s0       /dev/rdsk/c1t1d0s0      /       ufs     1       no      -
/dev/dsk/c1t1d0s7       /dev/rdsk/c1t1d0s7      /export/home    ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -

Ideas?
# 2  
Old 08-14-2008
looking for the output of format as far as the disk with the root partition on it. we can make a better assessment with that.

however, you would have to back up /export/home. change start cylinder of /export/home (shrinking this), change cylinders for swap and then change the end cylinder for root (thus making it larger). save, label etc.

once out growfs /dev/rdsk/c1t1d0s0. newfs /export/home. restore /export/home

something to this effect.
# 3  
Old 08-14-2008
Bug

Quote:
Originally Posted by pupp
looking for the output of format as far as the disk with the root partition on it. we can make a better assessment with that.

however, you would have to back up /export/home. change start cylinder of /export/home (shrinking this), change cylinders for swap and then change the end cylinder for root (thus making it larger). save, label etc.

once out growfs /dev/rdsk/c1t1d0s0. newfs /export/home. restore /export/home

something to this effect.
Any of these items need to be done in single user mode per se?

I'm following your thought here - makes sense - but I'm just trying to apply what I know.

Thanks for the insight. I will start doing some RTFM before I post more 'WTF'.

;-)
# 4  
Old 08-14-2008
I don't think there is anything to change with swap which should be located elsewhere assuming you used the default layout.

To be sure, post the output of this command:
Code:
# prtvtoc /dev/dsk/c1t1d0s2

However, there is an issue with these steps. The growfs command cannot be used with the root partition according to its documentation. That means this won't work even in single user mode.

One possible workaround would be to boot on an installation media and run all of that from a shell there.

In any case, you should really make a reliable backup of your system before attempting this.
# 5  
Old 08-14-2008
interesting. i see what you mean jiliagre. thanks for pointing that out. i thought i had seen it before but i guess the documentation proves me wrong (i've actually never attempted to grow the root fs but i've done this with other FSs).

when i get home i want to try this out on the root fs though. see if it truly is the case.
# 6  
Old 08-14-2008
Quote:
Originally Posted by jlliagre
I don't think there is anything to change with swap which should be located elsewhere assuming you used the default layout.

To be sure, post the output of this command:
Code:
# prtvtoc /dev/dsk/c1t1d0s2

However, there is an issue with these steps. The growfs command cannot be used with the root partition according to its documentation. That means this won't work even in single user mode.

One possible workaround would be to boot on an installation media and run all of that from a shell there.

In any case, you should really make a reliable backup of your system before attempting this.
Code:
# prtvtoc /dev/dsk/c1t1d0s2
* /dev/dsk/c1t1d0s2 partition map
*
* Dimensions:
*     512 bytes/sector
*      63 sectors/track
*     255 tracks/cylinder
*   16065 sectors/cylinder
*    2211 cylinders
*    2209 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector 
*    35471520     16065  35487584
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00    1092420   8964270  10056689   /
       1      3    01      16065   1076355   1092419
       2      5    00          0  35487585  35487584
       7      8    00   10056690  25414830  35471519   /export/home
       8      1    01          0     16065     16064

I found a huge vmcore file that was 600+MB. None of my lab people needed it, so I backed it up to another server, then rm -rf'ed it locally. Now I've got some space to work with, and the patching seems to be coming along just fine.

I'm keeping my eye on this thread anyhow, since you make some valid points.

Thanks again for sharing your knowledge.

P.S. The command I used to find the vmcore file:

Code:
find / -size +100000

# 7  
Old 08-14-2008
I guess that file was located in the /var/crash/<your host name>/ directory.

If that is the case, that would mean you had a kernel panic.

As I was supposing, your / and /export/home filesystems are contiguous so growing the root filesystem might still be an option.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to increase the /var (UFS) filesystem and root disk under veritas control?

I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated # df -k /var Filesystem kbytes used avail capacity Mounted on /dev/vx/dsk/var 13241195 12475897 674524 96% /var # fstyp /dev/vx/dsk/var ufs # pkginfo... (1 Reply)
Discussion started by: amity
1 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. Solaris

Need Empty SPARC UFS Partition

Can anyone create a SPARC UFS Partition that is like 50 meg, DD the entire partition and zip it up and send it to me? Trying to play around with creating SPARC UFS partitions on linux and need a real one to compare to. I would do it but I do not have access to a SPARC machine anymore. I do not... (5 Replies)
Discussion started by: mooreps
5 Replies

4. Solaris

Convert UFS (root) to VxFS

Hi all, How to i use vxfs for my server? Because when i install OS, it is installed with ufs, then after Solaris 10 installation, i proceed to install vxfs. How do i convert all the ufs to vxfs? Or is it what i'm doing is the incorrect way? Please help. :wall: (9 Replies)
Discussion started by: beginningDBA
9 Replies

5. Solaris

Convert root UFS to ZFS on x86 solaris 10/09

Hello All, Good Morning, We are trying to convert the UFS root in to ZFS. Am getting below error. Any one help me out on this ? bash-3.00# zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT guru 5.95G 483M 5.48G 7% ONLINE - bash-3.00# zpool create rpool c2t10d0p0... (4 Replies)
Discussion started by: gowthamakanthan
4 Replies

6. Solaris

Mounting UFS partition on multiple servers?

Hi, I have an application on a SAN partition presented to one server only. If I share this SAN partition with a second server as well, will that cause data corruption (the partition is formatted using ufs) ? (5 Replies)
Discussion started by: Mack1982
5 Replies

7. Solaris

how to expand root partition size?

Dear All For installing an application that will seat under /opt , I need to increase my root partition size (/c0t0d0s0) . Can you please let me know how can I increase this partition size? Thank you (10 Replies)
Discussion started by: hadimotamedi
10 Replies

8. Solaris

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... (7 Replies)
Discussion started by: atogunde
7 Replies

9. UNIX for Dummies Questions & Answers

Making a UFS Partition w/ Linux

Well, the subject speaks for itself; how does one go about making a UFS partition in a Linux environment? I don't recall seeing it as an option in my version of fdisk (I'll have to check again when I go home :( ) (6 Replies)
Discussion started by: Karma
6 Replies

10. UNIX for Dummies Questions & Answers

UFS partition

Hi all, I have FreeBSD and Debian in my HD, the FreeBSD partition is very small and I'd like to change. I try to use partition magic but it does not work with UFS parition. Anyone know a good partition software? (1 Reply)
Discussion started by: SeVEn
1 Replies
Login or Register to Ask a Question

Featured Tech Videos