Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Growfs on /

Status
Not open for further replies.

snapshot

Technical User
Oct 26, 2001
43
GB
I need to "grow" /. I know that I can't run a growfs on / as it is mounted but if I was to boot from CD would / be mounted (I don't think so) in which case could I successfully run growfs ?
 
Before running growfs you will need to increase the size of the slice it is sitting on, have you done that?

Usually that would be difficult for the / filesystem because it either already occupies all of the disk, or it has other filesystems after it on the disk.

You can move the other filesystems around, but it's manual and fiddly.

Annihilannic.
 
Thanks Annihilannic

Yes I've done that, it's mirrored so I grew my slice on one mirror, then the other, that all went OK but I hadn't realised (or read the man page properly) that I couldn't growfs root. hence the question about booting from CD to do so!
 
I wasn't aware that you couldn't growfs root either... what's the error message?

In that case doing it from CD should be fine.

Annihilannic.
 
Error message? you don't get an error message! No, it justs locks root so you can't write anything to it and that's that! Had to reboot to get out of it. You can't growfs on /usr either!
 
How are your partitions layed out? Just about everything on / is linked to another area. My / slice is usually only about < 100MB total.... You could break your mirror and re-partition the secondary disk and then run ufsdumps onto the new drive partitions...that should work for you.
 


The growfs's command write locks the mounted filesystem , which the time can be adjusted. See the man pages for growfs.
This is probably the reason growing root is not a workable
solution.
 
Strangely, and possibly fortunately, it worked for me and I got away with it. Like snapshot, I missed it in the docs. Perhaps they should include something to check whether you're trying to growfs / and issue a warning or better still, refuse to proceed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top