cfdisk error

2010-09-28 Thread Tapas Mishra
I  am getting following error on cfdisk

FATAL ERROR: Bad primary partition 1: Partition ends in the final
partial cylinder

Press any key to exit cfdisk

what does it mean how can I overcome this.
-- 
Tapas

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


libvirt: virtual lans and virt-install command with two nics?

2010-09-28 Thread Andy Graybeal
first off, how do i do a virt-install with two nics?

i'm on ubuntu 10.04.

here's my command with one nic:

sudo virt-install --connect=qemu:///system 
--name=pfsense --ram=512 
--file=/srv/vm/pfsense/pfsense.qcow2 --file-size=5 
--network=bridge:br0 --accelerate 
--cdrom=/srv/Desktop/Tech/Software/os/pfSense-1.2.3-RELEASE-LiveCD-Installer.iso.gz
 
   --hvm --vnc

i don't understand the virt-install manpage enough to figure out how to 
do multiple nics.

also i don't grasp how to create vlans in virsh.  i understand that 
net-define points to network definition .xml file, but i can't find any 
of the files in my /usr/share/libvirt folder.  where does the 
default.xml (default network) live?

i also understand that net-create create the .xml file...
can i see some net-create examples?

-andy

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Matt Darcy
On 28/09/10 16:20, Jorge Armando Medina wrote:

>> Since the mount command as above suggested is asking me to specify the
>> filesystem type which I gave
>> as
>> mount -t lvm /dev/nintendo/lvm1 /mnt -o ro
>>
>> gave following error
>> mount: unknown filesystem type 'lvm'


lvm isn't a file system - you should know what file system you put on
them, ext3, ext4, xfs etc.

use -t $filesystem-you-chose,

eg: mount -t ext4 /dev/nintendo/lvm1 -o ro /mnt

Matt

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Jorge Armando Medina
Tapas Mishra wrote:
> On Tue, Sep 28, 2010 at 2:27 PM, Alvin  wrote:
>   
>> One way to take a backup is to convert the LVM volumes to compressed qcow2
>> images, like this:
>> # qemu-img convert -c -f raw -O qcow2 /dev/nintendo/lvm1 /backup/lvm1.img
>>
>> 
> Hmm but I do not have that much space that if the LVM is 100Gb then
> another 100 Gb of qemu image.
> Or if the filesystem is not completely occupied it is possible to see
> occupying less space.
>
> Is there any other way?
> Since the mount command as above suggested is asking me to specify the
> filesystem type which I gave
> as
> mount -t lvm /dev/nintendo/lvm1 /mnt -o ro
>
> gave following error
> mount: unknown filesystem type 'lvm'
>   
LVM is not a filesystem, it is just another block device, you need to
especify the filesistem in the LV.

If you can't mount it with simply mount command, probably it is LV
partitioned, probably you need to use kpartx with the LV.
> mount -t lvm2 /dev/nintendo/lvm1 /mnt -o ro
>
> gave following error
> mount: unknown filesystem type 'lvm2'
>
> mount  /dev/nintendo/lvm1 /mnt -o ro
> mount: you must specify the filesystem type
>
> all the above three have given me errors.
>
> There does exist a filesystem but out of 100 Gb only 15 Gb are
> occupied in each case.
> Also
>   

It doesnt care, mount the guest filesystem and copy your data with cp,
tar or whatever other method.

For VMs  basically I do something like this:

- Stop the VM
- Create a snapshot of LV
- Start the VM
- Mount the snapshot
- backup the data on the snapshot

For informataion about VM management read the documentation of the
product you are using, for more info about LVM read the official howto,
it has a lot of examples, and of course read the kpartx and mount man page.


> It is a Dell Power Edge R710 server with 500Gb of hard disk.450Gb of
> which is available.
> and in this  I have used 400 Gb to created the above LVMs I mentioned.
>
>   


-- 
Jorge Armando Medina
Computación Gráfica de México
Web: http://www.e-compugraf.com
Tel: 55 51 40 72, Ext: 124
Email: jmed...@e-compugraf.com
GPG Key: 1024D/28E40632 2007-07-26
GPG Fingerprint: 59E2 0C7C F128 B550 B3A6  D3AF C574 8422 28E4 0632



-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: taking lvm backup

2010-09-28 Thread Clint Byrum

On Sep 28, 2010, at 1:39 AM, Tapas Mishra wrote:

> On Tue, Sep 28, 2010 at 11:11 AM, Clint Byrum  wrote:
>> 
>> These are just the symlinks to the device nodes. If you look in
>> /dev/mapper, you'll see type "b" files nintendo-lvm1, nintendo-lvm2,
>> etc.
> 
> Yes I saw this is there.
> 
>> These block devices have their size defined by LVM, which you can
>> see in 'lvdisplay' from above as "LV Size".
> Yes
>> Do they have filesystems on them?
> Yes
>> For each one, try something like:
>> 
>> mount /dev/nintendo/lvm4 /mnt -o ro
> These filesystems are used to install Guest OSeS.
> So the filesystems are active.
> Do I need to shutdown the Operating Systems on these LVMs.
> Each LVM holds one Guest OS.
> It is a virtualization setup.
> 

If these guests are changing the filesystem, then you will probably
want to ensure that any databases or such are stopped or locked
when you back the files up.

As somebody else noted, they are probably partitioned, so that is
probably why you cannot mount them.

The simplest thing would be to just do the backups from inside the
guest OS's. Is there a reason you don't want to do that?

>> If it has a filesystem on it, that should detect it, and mount it
>> readonly, and you should be able to back up only what is *used* on
>> the volume, not the whole thing. Then just use whatever your favorite
>> backup method is.
> Ok.Do I not need to know the type of filesystem in these cases.
> 

As someone else stated, its likely that each volume has a partition
table on it. Given that these are essentially raw disks for guest
OS's, and not filesystems you created, I don't think its a good
idea to try and back them up from the host OS.


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Tapas Mishra
On Tue, Sep 28, 2010 at 4:12 PM, Matt Darcy
 wrote:
> Why are you trying to back the in use volumes up at a raw device level
> and not at the file system level.
I could not understand this part.
> Mount them - take a look at what's on them/size of them, back them up
> and unmount them
How do I mount them what file system type do I specify ?
If I specifiy lvm or lvm2 or none then I am getting errors.
-- 
Tapas

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Matt Darcy
On 28/09/10 09:57, Alvin wrote:

> One way to take a backup is to convert the LVM volumes to compressed qcow2 
> images, like this:
> # qemu-img convert -c -f raw -O qcow2 /dev/nintendo/lvm1 /backup/lvm1.img
> 

That's a nice trick, I like that.

Why are you trying to back the in use volumes up at a raw device level
and not at the file system level.

Mount them - take a look at what's on them/size of them, back them up
and unmount them

Matt

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Tapas Mishra
On Tue, Sep 28, 2010 at 2:27 PM, Alvin  wrote:
> One way to take a backup is to convert the LVM volumes to compressed qcow2
> images, like this:
> # qemu-img convert -c -f raw -O qcow2 /dev/nintendo/lvm1 /backup/lvm1.img
>
Hmm but I do not have that much space that if the LVM is 100Gb then
another 100 Gb of qemu image.
Or if the filesystem is not completely occupied it is possible to see
occupying less space.

Is there any other way?
Since the mount command as above suggested is asking me to specify the
filesystem type which I gave
as
mount -t lvm /dev/nintendo/lvm1 /mnt -o ro

gave following error
mount: unknown filesystem type 'lvm'

mount -t lvm2 /dev/nintendo/lvm1 /mnt -o ro

gave following error
mount: unknown filesystem type 'lvm2'

mount  /dev/nintendo/lvm1 /mnt -o ro
mount: you must specify the filesystem type

all the above three have given me errors.

There does exist a filesystem but out of 100 Gb only 15 Gb are
occupied in each case.
Also
It is a Dell Power Edge R710 server with 500Gb of hard disk.450Gb of
which is available.
and in this  I have used 400 Gb to created the above LVMs I mentioned.

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Alvin
On Tuesday 28 September 2010 10:45:58 Tapas Mishra wrote:
> On Tue, Sep 28, 2010 at 11:11 AM, Clint Byrum  wrote:
> > mount /dev/nintendo/lvm4 /mnt -o ro
> > 
> > If it has a filesystem on it, that should detect it, and mount it
> 
> I get following message when I do as above that you said.
> mount: you must specify the filesystem type

If they are used for virtual machines, the LVM volumes are probably 
partitioned. You can still mount them with -o loop, but it's not recommended.

You have to shutdown the virtual OS in order to take a safe backup.

One way to take a backup is to convert the LVM volumes to compressed qcow2 
images, like this:
# qemu-img convert -c -f raw -O qcow2 /dev/nintendo/lvm1 /backup/lvm1.img

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Tapas Mishra
On Tue, Sep 28, 2010 at 11:11 AM, Clint Byrum  wrote:
>
> mount /dev/nintendo/lvm4 /mnt -o ro
>
> If it has a filesystem on it, that should detect it, and mount it
I get following message when I do as above that you said.
mount: you must specify the filesystem type




-- 
Tapas

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: taking lvm backup

2010-09-28 Thread Tapas Mishra
On Tue, Sep 28, 2010 at 11:11 AM, Clint Byrum  wrote:
>
> These are just the symlinks to the device nodes. If you look in
> /dev/mapper, you'll see type "b" files nintendo-lvm1, nintendo-lvm2,
> etc.

Yes I saw this is there.

> These block devices have their size defined by LVM, which you can
> see in 'lvdisplay' from above as "LV Size".
Yes
> Do they have filesystems on them?
Yes
> For each one, try something like:
>
> mount /dev/nintendo/lvm4 /mnt -o ro
These filesystems are used to install Guest OSeS.
So the filesystems are active.
Do I need to shutdown the Operating Systems on these LVMs.
Each LVM holds one Guest OS.
It is a virtualization setup.

> If it has a filesystem on it, that should detect it, and mount it
> readonly, and you should be able to back up only what is *used* on
> the volume, not the whole thing. Then just use whatever your favorite
> backup method is.
Ok.Do I not need to know the type of filesystem in these cases.



-- 
Tapas

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam


Re: libvirt and bridge age

2010-09-28 Thread mightydreams
On Thu, Sep 23, 2010 at 9:39 PM, DULMANDAKH Sukhbaatar
 wrote:
> Please help me with this.
I had real hard time fixing this.
Please do have a look
http://ubuntuforums.org/showpost.php?p=9692635&postcount=4
if you find it helpful let me know.
Even if it did not worked let me know.

-- 
Tapas

-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam