I want to make a 3GB of space reserve on Solaris. Let me know whether there is a way by creating empty file of 3GB so that i can delete that file in future to utilize that space. Or any other better ways for space reserve.
the find command, du, and other command line tools can monitor space. I am not sure if filling up your HD with dummy files to take up space only to delete them later on is a good practice. Seems like a lot of work for something that can be accomplished in a better way.
This is usually done by reigning in the size of a filesystem.
But you can create a sparse file:
This should take less than a second to create. But this is probably not what you want.
If you want to reserve space as contiguously as possible to be used later by a database, then you should not create a sparse file, but a dense file:
This will take a lot longer to create, as it fills the entire file with zeroes.
Use caution with the dd command though. You should read the man page first to understand what it does and think twice before issuing a command as it is a very powerful command that can easily destroy things.
Not every dd understands G and M, but only k as a signifier. I that is the case then you should be able to use 1024k instead of 1M or 3145728k instead of 3G in the examples above.
If you create both files and you issue
then you should see both files and they should have the same size.
will show the difference
S.
---------- Post updated at 09:22 ---------- Previous update was at 08:53 ----------
Since you are on Solaris. check out:
Last edited by Scrutinizer; 01-22-2010 at 04:29 AM..
Hello Guys,
I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var.
I know we can use that logical volume and create a virtual... (2 Replies)
Hi All,
Its urgent.. pls help me out.. I want to create a KSH which should generate a report with the list of users and the files larger than 5 GB created by them in a direcorty and send autogenerated e-mail to them.
my input would be users list,directory path and the file size (say 5 GB)
... (11 Replies)
my apps use port 40001; however, for example, firstly, I ftp to other server, it made a high port locally, remote is port 21, unfortunately, it hit my port 40001 and my apps is unable to startup. This chance is very very little, but I hit it. Can resevse my port 40001? otherwise command don't use it (5 Replies)
Hi
I have a ticket to Reserve ports for SAS install in SAS servers.
Does anyone knows the procedure how to do it.
it will be helpful for me please
Thanks in Advance (4 Replies)
Hi,
What is the command or how to create a user with the restricted usage of space on a disk.
Also let me know how to change the limit of the space size allotted in future for the same user.
~Vinodh Kumar V M (3 Replies)
Hi Guys,
Anybody come across this error when formating a harddisk. "Reserved Failed"
Supected hardisk failure, is my assumption correct.
Thanks (5 Replies)