Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Solaris HELP. root full. Any SUN guru on here?

SOLVED
Go to solution
Joseph C. Denman
Honored Contributor

Solaris HELP. root full. Any SUN guru on here?

Hello folks,

Sorry to post a sun question, but i'm in need of some help and you guys are the best. Here is the problem. My root fs is fill and I would like to move it to a different slice on the same disk. Can and how is this done? ufsdump?

Any comments appreciated!!

Thanks,

...jcd...
If I had only read the instructions first??
8 REPLIES
linuxfan
Honored Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

Hi Joseph,


Like in HP, first check and see what directory is filling up root,

du -kd / |sort -n > /tmp/du.out

Once you have the list, you can think of deleting some stuff, look for core files, huge files in /dev directory etc.

If nothing else, you may have to create another partition on the disk (to check the partitioning of the disk, use the format command, which is a menu based utility, choose the disk, type partition, print) and if there is a free partition, create a new partition and move the contents from the root partition over to the new partition.

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Joseph C. Denman
Honored Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

Thanks Ramesh,

So, If I have another slice that that has plenty of space. I can just copy / to the other slice, modity the vfstab, and I should be good to go?

I just did not know if the root fs has to be on s0.

Thanks,

...jcd...
If I had only read the instructions first??
Bernie Vande Griend
Respected Contributor
Solution

Re: Solaris HELP. root full. Any SUN guru on here?

I'm a bit rusty, but I think I can help.
Yes, you should be able to move / from s0 to another slice on the same disk. You'll have to do the following:

-use format to set up the new slice (probably is already)
-Run newfs on the new slice.
-Mount the new slice to /mnt or some other temp directory.
-ufsdump 0f - / | (cd /mnt;ufsrestore xvf -)
-umount /mnt
-Modify /etc/vfstab, change the slice for /
-Run installboot /lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s? on the new slice. Note, the path for the bootblk might be wrong depending on what version of Solaris you're using.
-eeprom boot-device=/dev/dsk/c0t0d0

Basically you have to put a bootblk on the new slice and make sure to either manually boot off that device or use eeprom to point the server to the new slice.

Let me know if you need any thing else.
-bernie
Ye who thinks he has a lot to say, probably shouldn't.
Bernie Vande Griend
Respected Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

I forgot to mention this, in case booting to the new slice doesnot work, you should still be able to boot to the old one by typing the device in at the OK> when booting. You'll probably want to boot single user mode first and then straighten out the vfstab.
Ye who thinks he has a lot to say, probably shouldn't.
linuxfan
Honored Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

Hi Joseph,


Not sure how big is your / partition, but i would rather create partitions for non-OS related directories and move it to the new partition.

Did you see what is filling up the root partition?

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Joseph C. Denman
Honored Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

That is what I needed to know.

Thanks!

Joe...
If I had only read the instructions first??
Joseph C. Denman
Honored Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

No, I'm just attempting to fix someone elses mistake. They created one large root fs. no fs for var, opt, tmp, or anything.

I think I've got a game plan now. If all else fail, I can always punt!!

Thats guys

Joe...
If I had only read the instructions first??
linuxfan
Honored Contributor

Re: Solaris HELP. root full. Any SUN guru on here?

Hi Joseph,

I know you have the solution, but just wanted to pass on this doc from SUN.

http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=finfodoc%2F48

when installing the boot block , change the slice number.

-Regards
Ramesh
They think they know but don't. At least I know I don't know - Socrates