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?

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

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.

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

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?

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.

 
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

Thanks.

I think the same as well, it should go to 130 max. Lets see.