| Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-14-2012, 03:23 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2012
Posts: 4
Rep: 
|
iscsi growing disk qcow2?
I am attempting to setup an ISCSI target using the qcow2 image format. It does not appear that tgtd supports the qcow2 format. The disk size will show zero or give a 250kb or so disk size. My question is what is the best way to setup a virtual disk using iscsi? For example I would like to create an ISCSI 1TB virtual disk. The disk would not consume 1TB but would have 1TB available. As data is added to it, the actual file size would grow.
Micro$oft has the ability to use VHD files to do this.I can easily setup a dd image file that consumes the entire size specified and ISCSI will work fine. But filling up an entire 1TB drive in my application is not practical. Any help would be appreciated.
|
|
|
|
03-15-2012, 04:09 PM
|
#2
|
|
Guru
Registered: Mar 2008
Posts: 8,552
|
This should work and I feel like I have seen the how to on it not too long ago.
In a very basic sense it would be the same as a virtual image on a scsi drive. We know that work. The issue here is that you may not have iscsi support in the loading. What you are trying do is boot or load some OS or virtual machine client, correct?
I wish I could remember where I saw that.
See this for some ideas to start. http://lists.gnu.org/archive/html/qe.../msg01977.html
I get the idea it was on a gpxe or ipxe site.
Last edited by jefro; 03-15-2012 at 04:14 PM.
|
|
|
|
03-16-2012, 03:16 PM
|
#4
|
|
Guru
Registered: Mar 2008
Posts: 8,552
|
I may have misunderstood this. Do you want to use the compressed virtual hard drive without a virtual machine?
|
|
|
|
03-19-2012, 03:29 PM
|
#5
|
|
LQ Newbie
Registered: Mar 2012
Posts: 4
Original Poster
Rep: 
|
Correct. I am looking for disk storage and not to boot an OS. The sparse file idea works. However, I am looking to use the Fuse file system to store the virtual drive. Sparse files do not show up correctly on a fuse file system. I am looking to mount a folder to Amazon or Rackspace using fuse, and then store a virtual disk inside the folder. ISCSI would use this virtual disk as storage and the file would grow as space is needed. I know performance would not be great but it would work for my needs. QCow2 is not necessarily a requirement as long as I do not need to allocate the full amount of space to the storage.
ISCSI > virtual disk > stored on a cloud Rackspace or AWS.
Basically an ISCSI drive that has 1TB of storage housed in a cloud. That grows as files are stored in it.
Thanks for the responses. If anyone has any further feedback that would be great. I will continue trying to pursue the idea and will post if I figure it out. Thanks!
|
|
|
|
03-19-2012, 04:02 PM
|
#6
|
|
Member
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 716
Rep:
|
why iSCSI? It is not a protocol to be used over WAN, or even over a VPN link - very heavy and noisy. I would just use sftp
|
|
|
|
03-27-2012, 04:53 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2012
Posts: 2
Rep: 
|
I'm with dyasny, use sftp
Good luck
Last edited by Olivianerden; 03-27-2012 at 04:55 AM.
|
|
|
|
03-27-2012, 02:41 PM
|
#8
|
|
Guru
Registered: Mar 2008
Posts: 8,552
|
And I don't know of a way to grow a real partition.
|
|
|
|
03-27-2012, 04:15 PM
|
#9
|
|
Member
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 716
Rep:
|
Quote:
Originally Posted by jefro
And I don't know of a way to grow a real partition.
|
man parted
man resize2fs
|
|
|
|
03-27-2012, 06:46 PM
|
#10
|
|
Guru
Registered: Mar 2008
Posts: 8,552
|
I think he wanted to grow it as needed in a transparent manner as is the case with a qcow2 image.
|
|
|
|
03-28-2012, 08:17 AM
|
#11
|
|
Member
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 716
Rep:
|
Quote:
Originally Posted by jefro
I think he wanted to grow it as needed in a transparent manner as is the case with a qcow2 image.
|
qcow2 is not a partition, and it cannot grow on it's own - something has to extend it (whether it's the underlying FS extending a sparse file, or a monitoring system that periodically runs lvextend).
And in any case, partitions can grow, in online mode, without interruption and having to remount, both in Windows and in Linux.
|
|
|
|
03-28-2012, 02:53 PM
|
#12
|
|
Guru
Registered: Mar 2008
Posts: 8,552
|
I'd like to know about that then. I have never heard of a transparent method to grow a partition as the need for it exists as is the case with qcow2 virtual drives.
I was pretty sure that qcow2 isn't a partition but thanks for pointing that out.
dyasny, you have not been following the post. We have all known all this from the beginning. The OP wanted some method to replicate the way a qcow2 disk works on a real system.
Last edited by jefro; 03-28-2012 at 02:56 PM.
|
|
|
|
03-29-2012, 05:11 AM
|
#13
|
|
Member
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 716
Rep:
|
but that's the thing - qcow2 provides a block device. Give your machine access to a larger LUN (or increase the LUN size - most SANs allow you to do that) and you've got a larger block device, but the partition on it will be the same size. Expand a qcow2 or raw file, while a VM is running, and it'll also have a larger block device attached, but the partitions will not change.
All I'm saying is that this behaviour is the same on all systems, and you can expand the partition's size live, using the OS tools, without powering down your machine.
|
|
|
|
03-29-2012, 03:11 PM
|
#14
|
|
Guru
Registered: Mar 2008
Posts: 8,552
|
The OP wanted to install a real linux system to a iscsi, not a virtual machine.
|
|
|
|
03-30-2012, 05:25 AM
|
#15
|
|
Member
Registered: Dec 2007
Location: Israel
Distribution: RHEL,Fedora
Posts: 716
Rep:
|
This conversation had strayed away from the OP's question long ago, when you started claiming partitions could not be resized
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:07 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|