mkfile -n question


 
Thread Tools Search this Thread
Operating Systems Solaris mkfile -n question
# 1  
Old 10-20-2011
mkfile -n question

Hi,

I made an ldom with 160 GB of disk space (makefile -n 160g ldg1). Inside the ldom I have a slice, say /mount1 of size 30G. Assuming that I keep the /mount1 unmounted, i-e, it will never be used, is it safe to say that the file ldg1 will never grow past 130G?
# 2  
Old 10-20-2011
Your question is not clear.

Do you mean to say you have presented 160 GB file as a disk to the LDOM and have created a 30 GB partition on that disk and that is mounted as /mount1 in the LDOM.

Also, can you help us with some outputs from your control and guest domain.

Regards,
Vishal
# 3  
Old 10-20-2011
I am not at work right now can't give ldom detail output:
- I created an guest ldom
- Created a 160GB file on local disk (mkfile -n 160g ldg1)
- Presented this file as hard drive to the ldom
- Partitioned the disk and installed the O.S (Solaris 10)
- Among the slices is one 30GB slice which is no longer required and hence unmounted

I created the 160GB file using mkfile -n command, which i suppose means that the file can grow to a max of 160GB if required. Now since the 30GB slice will no longer be used is safe to assume that the effect size of the file will max out at 130 GB (160 - 30 = 130GB)

Hope this is a bit clear.

Note: LDOM is running fine, there are no issues with either the ldom manager or guest domain. I would just like to know the hard disk space i have for creating future ldoms.
# 4  
Old 10-21-2011
Thanks for the information.

Consider the below scenario.

partition 1 : 50g
partition 2 : 30g
partition 3 : 30g

Partition 2 will have disk blocks between partition 1 and 3, hence, if we remove this partition then we can create again only a partition of size 30g or lower, we cannot extend this to use the remaining 50g as that is after partition 3.

But if we delete partition 3, then things are contiguous and we can create a larger partition also.

This is how I perceive the situation, hope this helps.

Regards,
Vishal
# 5  
Old 10-21-2011
sorry, i think I complicated the question. Below is the gist of the question:

I create a file with the following command: mkfile -n 160GB ldg1.img
I only put data in it for 130GB.
What will be the effective size of the file?
# 6  
Old 10-21-2011
I have never presented a file created with -n option to a LDOM, I have always use mkfile without -n.

But I think when we present a file with -n to a LDOM as above then it will be visible as a disk with 160g size, its usage will be governed by the actual disk usage which you can confirm through the below commands.
Code:
 
ls -ltrh ldg1.img
du -sh ldg1.img

Hence the first command will give you 160g whereas the second one will give you actual disk space used by the file which will be 130g.

Regards,
Vishal
# 7  
Old 10-21-2011
Thanks.

I think the same as well, it should go to 130 max. Lets see.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Solaris

Why mkfile decreases available memory?

Hi, we are experiencing very odd behavior. After "mkfile 1g <somefile>" the available memory seen through vmstat memory free column decreases by the same ammount. It doesn't matter where the <somefile> is located, even when the file is on NAS, the available memory decreases. When the file is... (2 Replies)
Discussion started by: jan_bar
2 Replies

2. Programming

C++ little question

Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are equal. Here is what I wrote: #include <iostream>... (11 Replies)
Discussion started by: faizlo
11 Replies

3. AIX

OS Question

What AIX version I need to run a software in a R6000 model 6015/6020 in a IBM P5??? Im implementing a Hot SIte. Is this possible or I need identical systems hardware and software? (1 Reply)
Discussion started by: IBravo
1 Replies

4. UNIX for Dummies Questions & Answers

question?

Is there any way to use sed and count the number of alphabetic characters in a sentence? (4 Replies)
Discussion started by: brentdeback
4 Replies

5. UNIX for Dummies Questions & Answers

another question?

what happens if the script doesn't get Y,y,N, or n? Will it just loop back up and ask the question again? I tried to get mine to give me another response to tell me my input was invalid, but ran into problems with it. (8 Replies)
Discussion started by: wmosley2
8 Replies

6. UNIX for Dummies Questions & Answers

Next Question:

what is the function of swap in linux why i have to create apsolutely a particion for the swap when i install (i installed lnx4win mandrake and made an automat. disk particion and the install program one of my disk partitions that was 3gb devidet in 4 one native 700mb swap 600mb and the others i... (1 Reply)
Discussion started by: user666
1 Replies

7. UNIX for Dummies Questions & Answers

Well, im getting it, but i have ONE question

Hay everyone, i would like to take this opportunity to thank all of you who helped me make the decision to get a linux distro. As a newbie, Im defininately considering buying Mandrake Linux... I went to the site and phew..... 2300 applications, i think ill have a good time. But i do have a... (5 Replies)
Discussion started by: LolapaloL
5 Replies
Login or Register to Ask a Question