02-10-2006
1. Why wouldn't it work (growfs)? Just make sure the space isn't already used (raw devices being used by a Oracle/Sybase/other product) - as long as the space isn't used by something else, you shouldn't have any issues otherwise.
2. No clue (that was helpful, wasn't it). I think it's the same amount of time it takes to newfs a new 72GB filesystem (again, really helpful info here)
3. Very doubtful you would lose anything - growfs automatically locks the filesystem so no writes can happen while it working. From the 4.2 docs:
Quote:
The growfs(1M) command will "write-lock" (see lockfs(1M)) a mounted file system when expanding. The length of time the file system is write-locked can be shortened by expanding the file system in stages. For instance, to expand a 1 Gbyte file system to 2 Gbytes, the file system can be grown in 16 Mbyte stages using the -s option to specify the total size of the new file system at each stage.
During the expansion, the file system is not available for write access because of write-lock. Write accesses are transparently suspended and are restarted when growfs(1M) unlocks the file system. Read accesses are not affected, though access times are not kept while the lock is in effect.
9 More Discussions You Might Find Interesting
1. Programming
What does "extern" do?
ex. extern int x;
and another question, what about using static in functions? like: static void foo(), why? (2 Replies)
Discussion started by: Esaia
2 Replies
2. Solaris
Hello Everbody
I hope you can give me a hand, I have some questions
The first one itīs about some message that I donīt know what means, I was looking about it. but nothing. This is the message
rsh: connection from bad port
bsd-gw: Error reading from connection: Bad file number
And my... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies
3. UNIX for Advanced & Expert Users
How do you locate all nonblank lines that don't begin with #, /* ,or // ? (3 Replies)
Discussion started by: pulsar2587
3 Replies
4. Programming
hey all, I have question when am writing simple shell...
in the child am calling execvp, i want the parent to know when execvp returns - 1. how can i let the parent know the result of execvp
thanks in advance (9 Replies)
Discussion started by: joey
9 Replies
5. Solaris
OS: Solaris 10
Issue: metastat shows 12GB /var, df shows 3 GB /var.
Solution: growfs
Error:
# growfs -M /var /dev/md/rdsk/d6
/dev/md/rdsk/d6: Unable to find Media type. Proceeding with system determined parameters.
failed to disable logging.
I think the "unable to find Media type" is... (8 Replies)
Discussion started by: aixlover
8 Replies
6. Solaris
Hi Gurus
Im workin in solaris platform..Actually i just want to kno the procedure that is followed before growing a file system using growfs command.V are having SAP installed in our server and its in cluster..v logged into our storage and created volumes now v need to map the luns and... (1 Reply)
Discussion started by: madanmeer
1 Replies
7. Shell Programming and Scripting
Hey all,
Thanks for all the help you have given me. Two more things I am trying to figure out.
I need to issue a command..example
ps -ef | grep <process>
This would return about 10-15 running processes. I need to verify that there are x amount of processes running. What is... (7 Replies)
Discussion started by: jeffs42885
7 Replies
8. Homework & Coursework Questions
1.) I am to write scripts that will be phasetest folder in the home directory.
2.) The folder should have a set-up,phase and display files
I have written a small script which i used to check for the existing users and their password.
What I need help with:
I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I would like to know how we can highlight/select a section of a file in vi and delete that section if we don't want to use the dd command to delete one line at at time. There is one where we don't want to delete the whole line , but up to a certain word. (2 Replies)
Discussion started by: Pouchie1
2 Replies
LEARN ABOUT REDHAT
sdl_locksurface
SDL_LockSurface(3) SDL API Reference SDL_LockSurface(3)
NAME
SDL_LockSurface- Lock a surface for directly access.
SYNOPSIS
#include "SDL.h"
int SDL_LockSurface(SDL_Surface *surface);
DESCRIPTION
SDL_LockSurface sets up a surface for directly accessing the pixels. Between calls to SDL_LockSurface and SDL_UnlockSurface, you can write
to and read from surface->pixels, using the pixel format stored in surface->format. Once you are done accessing the surface, you should use
SDL_UnlockSurface to release it.
Not all surfaces require locking. If SDL_MUSTLOCK(surface) evaluates to 0, then you can read and write to the surface at any time, and the
pixel format of the surface will not change.
No operating system or library calls should be made between lock/unlock pairs, as critical system locks may be held during this time.
It should be noted, that since SDL 1.1.8 surface locks are recursive. This means that you can lock a surface multiple times, but each lock
must have a match unlock.
.
.
SDL_LockSurface( surface );
.
/* Surface is locked */
/* Direct pixel access on surface here */
.
SDL_LockSurface( surface );
.
/* More direct pixel access on surface */
.
SDL_UnlockSurface( surface );
/* Surface is still locked */
/* Note: Is versions < 1.1.8, the surface would have been */
/* no longer locked at this stage */
.
SDL_UnlockSurface( surface );
/* Surface is now unlocked */
.
.
RETURN VALUE
SDL_LockSurface returns 0, or -1 if the surface couldn't be locked.
SEE ALSO
SDL_UnlockSurface
SDL
Tue 11 Sep 2001, 23:01 SDL_LockSurface(3)