Re: [libvirt] need some help/asdive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 30, 2009 at 04:47:31AM -0400, Gene Czarcinski wrote:
> On Sunday 28 June 2009 11:35:55 Daniel P. Berrange wrote:
> > > My second question concerns the location of the disk images:  what is the
> > > "best practical way" to move these out of the root partition?  I have
> > > come up with these different approaches which could/may work:
> > >
> > > 1. change the "path" value in /etc/libvirt/storage/default.xml to point
> > > to a directory in a different partition.
> > >
> > > 2. Use a /etc/fstab entry to "bind mount" a directory in a separate
> > > partition onto /var/lib/libvirt/images
> > >
> > > 3. Just use an /etc/fstab entry to mount a partition on
> > > /var/lib/libvirt/images or, perhaps, on /var/lib/libvirt. [This could be
> > > done during system installation]
> > >
> > > OK, any comments on these??
> >
> > There's no real 'right' answer here, but I'd recommend 1. really.
> 
> There might not be a right answer but 1 is definitely a wrong answer.

No it isn't.

> Changing /etc/libvirt/storage/default.xml to point to a directory in a 
> separate partition with lost of free space was easy.  However, when I tried to 
> create a new guest using virt-manager and the creation "wizard", for the disk 
> image, it still showed the free space available in the root partition (8GB) 
> rather than that of the other partition (120GB),

Sounds like you didn't reload the configuration after editing it. If you
edit the file directly you need to send SIGHUP to the daemon. It is better
to use the 'virsh pool-edit' command which ensures it is immediately
reloaded.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]