error while converting an LVM to qemu image

2010-10-04 Thread Tapas Mishra
I executed following command
qemu-img convert -c -f raw -O qcow2 /dev/nintendo/lvm2 /root/lvm2.img
qemu-img: error while compressing sector 22151296
what does this mean and how can I get rid of this and take the backup?
I am on Ubuntu 10.04 server 64 bit.

-- 
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: problem while mounting an LVM

2010-10-04 Thread Serge E. Hallyn
Quoting Tapas Mishra (mightydre...@gmail.com):
> On Mon, Oct 4, 2010 at 8:37 PM, Serge E. Hallyn
>  wrote:
> snip.
> > so fuseblk is what is actually returning -EBUSY.
> >What kind of fs is actually on nintendo-backupos?
> When I used cfdisk to create filesystem on it I created two partitions
> type 83 was big size and type 82 was swap space.

Ok - in that case I hope someone else can tell you the right
way to mount this (and it may well be fuseblk, but i've not
used that myself) and I'll read the answer and learn :)

In the past, for something like this I would have done

mount -o loop,offset=32256 /dev/mapper/nintendo-backupos /mnt/backups

but that probably isn't right for you, and isn't helpful (well,
it become arduous to calculate the offset) if the type 83 partition
wasn't the first one.

-serge

-- 
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: Best way to work with files with groups of people

2010-10-04 Thread Andy Graybeal
 >
 > Are you sure you're copying the file from the thumb drive, and not
 > moving? mv attempts to preserve the original ACL, if possible. Also, `cp
 > - -P` will attempt to preserve the ACL.
 >
 > That's all I could come up with that might be hindering you. My next
 > step would be to check for evil gnomes, but that may be regional.
 >
 > HTH,
 > Paul

I've been (and my users) have been using nautilus; drag and drop the 
files.. which is a copy (atleast i think).

I've done the copy from gnome-terminal just for testing, and the same 
thing happens, plain cp, no -p.

I don't know :)

I'm thinking about running a script that would change the files to the 
correct permission.. but this seems like a terrible way to go about 
fixing this.

man acl says:
Under "Object Creation and Default ACLs"
  1.   The new object inherits the default ACL of the containing 
directory as its access ACL.

This works great :)

I don't think man acl says anything about copying an object into a 
folder and what should happen to it, if it does I don't understand the 
words it's using.

How do ACL's work when files get copied from somewhere to somewhere else 
(such as my jump drive to my ACL enabled partition)?

Thank you for your consideration Paul. I will be on the lookout for evil 
regional gnomes :)

-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: Server Team 20100928 Meeting Minutes

2010-10-04 Thread Scott Moser
>  Agree on next meeting date and time 
> Next meeting will be on Tuesday, October 12th at 18:00 UTC in
> #ubuntu-meeting.

Correction:
   The next meeting is Tuesday, October 5 at 18:00 UTC

-- 
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: Best way to work with files with groups of people

2010-10-04 Thread Paul Nuffer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 10/02/2010 07:15 AM, Andy Graybeal wrote:
> The problem I'm running into is when a user takes work home with them or 
> creates files from home, comes into work the next day and puts it onto 
> the server from a flash drive.
> ...
> This file inherited the 'group ownership' so that's good, but it doesn't 
> inherit the permissions.
> 
> How do I make this so that when someone copies a file from their jump 
> drive into their folder, it inherits the permissions from the folder 
> (well everything but execute obviously)?
> 

Are you sure you're copying the file from the thumb drive, and not
moving? mv attempts to preserve the original ACL, if possible. Also, `cp
- -P` will attempt to preserve the ACL.

That's all I could come up with that might be hindering you. My next
step would be to check for evil gnomes, but that may be regional.

HTH,
Paul
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkyqAQYACgkQGSnk2uvWQRex4QCgglBnlwMQDfOcgEf1cUx59tob
CusAnAhMpMBSW6jgMc0i04j0VALlRwNt
=fXGA
-END PGP SIGNATURE-

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


Server Team 20100928 Meeting Minutes

2010-10-04 Thread Scott Moser
The Server Team Meeting minutes for the 20100928 meeting are below.
For more information, see https://wiki.ubuntu.com/ServerTeam


 Meeting Actions 
 * [ACTION] SpamapS to chase drizzle in maverick decide between "broken"
 * and "removed" with slight possibility of "beta"
 * [ACTION] jiboumans to send an email to ubuntu-server@ and/or blog post
 * for call for ideas
 * [ACTION] (carryover) mathiaz to send out a call for ideas on ubuntu to
 * the puppet community

 Review ACTION points from previous meeting 
 * SpamapS will continue to follow up on drizzle in maverick.

 Maverick development (jib) 
 * RC is Thursday the 30th, with release on Sunday October 10.
 * Please add ideas for Natty development to
 * [[https://wiki.ubuntu.com/ServerTeam/NattyIdeaPool]].  That will serve
 * as input for UDS Sessions.

 RC release status (ttx) 
 * Only critical issue at that time was Eucalyptus upgrade

 The road to 10.10.10 release (ttx) 
 * ISO testing is in progress (subsequently finished with all tests run
 * and on time)
 * Daily triage is particularly important right now.  Please take care to
 * find high impact issues.
 * EC2 Images for RC were waiting on [[Bug:649833]]
 * Daviey and Mathaiz will cover general RC release issues, with smoser
 * handling UEC images

 Weekly Updates & Questions for the QA Team (hggdh) 
 * hggdh sent a mail to ubuntu-devel proposing a change on the usage of
 * 'regression-*' tags.  Comments are appreciated.

 Weekly Updates & Questions for the Kernel Team (jjohansen) 
 * user-data corruption bug bug is fixed
 * [[Bug:574910]] is expected to move into SRU this week
 * there will be a 0 day kernel update that the kernel team is queuing
 * fixes for

 Weekly Updates & Questions for the Documentation Team (sommer) 
 * no discussion

 Weekly Updates & Questions for the Ubuntu Community Team (kim0) 
 * This week, kim0 is collecting feedback from "newcomer" Ubuntu server
 * ocmmunity.  The goal being to understand if we're doing a good job
 * accepting new community members, availing helpful data, things to work
 * on, and guidance along the path.
 * kim0 has recieved pings from a dozen people who would like to
 * contribute
 * cloud portal (http://cloud.ubuntu.com) is expected to be released soon.
 * To see the cloud portal now, add "217.139.24.3 kimos.com" to /etc/hosts
 * and visit kimos.com.

 Open Discussion 
 * Bug:582963 in apache2 was discussed some, it is being deferred to
 * Natty.

 Agree on next meeting date and time 
Next meeting will be on Tuesday, October 12th at 18:00 UTC in
#ubuntu-meeting.



-- 
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: problem while mounting an LVM

2010-10-04 Thread Tapas Mishra
On Mon, Oct 4, 2010 at 8:37 PM, Serge E. Hallyn
 wrote:
snip.
> so fuseblk is what is actually returning -EBUSY.
>What kind of fs is actually on nintendo-backupos?
When I used cfdisk to create filesystem on it I created two partitions
type 83 was big size and type 82 was swap space.

>Are there any interesting
> messages in syslog?
U can't say
here is the complete syslog

Oct  4 06:30:11 tapas-server rsyslogd: [origin lvm1="rsyslogd"
swVersion="4.2.0" x-pid="738" x-info="http://www.rsyslog.com";]
rsyslogd was HUPed, type 'lightweight'.
Oct  4 06:39:01 tapas-server CRON[27170]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 07:09:01 tapas-server CRON[31664]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 07:17:01 tapas-server CRON[420]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Oct  4 07:39:01 tapas-server CRON[3955]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 08:09:01 tapas-server CRON[8457]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 08:17:01 tapas-server CRON[9652]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Oct  4 08:39:01 tapas-server CRON[12949]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 09:08:01 tapas-server CRON[17278]: (root) CMD
(/etc/webmin/cron/tempdelete.pl #Delete Webmin temporary files)
Oct  4 09:08:01 tapas-server postfix/pickup[5597]: EC2744B975: uid=0 from=
Oct  4 09:08:01 tapas-server postfix/cleanup[17282]: EC2744B975:
message-id=<20101004033801.ec2744b...@openworld.iimb.ernet.in>
Oct  4 09:08:01 tapas-server postfix/qmgr[1795]: EC2744B975:
from=, size=627, nrcpt=1 (queue active)
Oct  4 09:08:02 tapas-server postfix/local[17284]: EC2744B975:
to=, orig_to=, relay=local,
delay=0.12, delays=0.07/0.01/0/0.03, dsn=2.0.0, status=sent (delivered
to mailbox)
Oct  4 09:08:02 tapas-server postfix/qmgr[1795]: EC2744B975: removed
Oct  4 09:09:01 tapas-server CRON[17437]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 09:17:01 tapas-server CRON[18625]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Oct  4 09:39:01 tapas-server CRON[21924]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 10:09:01 tapas-server CRON[26644]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 10:17:01 tapas-server CRON[27840]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Oct  4 10:39:01 tapas-server CRON[31160]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 11:09:01 tapas-server CRON[3432]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 11:17:01 tapas-server CRON[4637]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Oct  4 11:39:01 tapas-server CRON[8011]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 12:09:01 tapas-server CRON[12538]: (root) CMD (  [ -x
/usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find
/var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 |
xargs -n 200 -r -0 rm)
Oct  4 12:17:01 tapas-server CRON[13739]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Oct  4 12:17:38 tapas-server kernel: [410835.539910] sd 2:0:0:0: [sda]
Sense Key : Recovered Error [current] [descriptor]
Oct  4 12:17:38 tapas-server kernel: [410835.539917] Descriptor sense
data with sense descriptors (in hex):
Oct  4 12:17:38 tapas-server kernel: [410835.539920] 72 01 00
1d 00 00 00 0e 09 0c 00 00 00 00 00 00
Oct  4 12:17:38 tapas-server kernel: [410835.539929] 00 00 00 00 00 00
Oct  4 12:17:38 tapas-server kernel: [410835.539934] sd 2:0:0:0: [sda]
Add. Sense: ATA pass through information available
Oct  4 12:17:38 tapas-server kernel: [410835.690798] sd 2:0:0:0: [sda]
Sense Key 

Re: how to transfer an LVM Guest OS on KVM Lucid to another server

2010-10-04 Thread Serge E. Hallyn
Quoting Tapas Mishra (mightydre...@gmail.com):
> > If you want it to be really fast, make sure that the VM backing stores
> > are shared between the two servers,
> Ok
> > and at the same pathnames on both.
> You mean to say NFS or iSCSI type of thing,

Yes.

-serge

-- 
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: problem while mounting an LVM

2010-10-04 Thread Serge E. Hallyn
Quoting Tapas Mishra (mightydre...@gmail.com):
> 20525 stat("/sbin/mount.fuseblk", 0x7fff0dd22560) = -1 ENOENT (No such
> file or directory)
> 20525 mount("/dev/mapper/nintendo-backupos", "/mnt/backup/",
> "fuseblk", MS_MGC_VAL, NULL) = -1 EBUSY (Device or resource busy)

so fuseblk is what is actually returning -EBUSY.  What kind of
fs is actually on nintendo-backupos?  Are there any interesting
messages in syslog?

-serge

-- 
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: how to transfer an LVM Guest OS on KVM Lucid to another server

2010-10-04 Thread Tapas Mishra
On Mon, Oct 4, 2010 at 6:24 PM, Serge E. Hallyn
 wrote:
> Can you define 'extra work'?
extra work: creating an LVM and making a filesystem populating that
filesystem with rsync backup and then copying xml
files and then some how booting from this one.
This some how is what I am not clear with and trying.

> If you want it to be really fast, make sure that the VM backing stores
> are shared between the two servers,
Ok
> and at the same pathnames on both.
You mean to say NFS or iSCSI type of thing,

> With maverick you can ask libvirt to move the backing store for you.
Ok that would be released in a week so I have to wait till then,
but still I want to explore this thing.

-- 
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: problem while mounting an LVM

2010-10-04 Thread Tapas Mishra
On Mon, Oct 4, 2010 at 7:16 PM, Serge E. Hallyn
 wrote:
> Hm, interesting.  How about the contents of outout after doing:
>
>        strace -f -ooutout mount /dev/mapper/nintendo-backupos /mnt/backup
>
I got on terminal
mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/ busy


and contents of outout
are



20525 execve("/bin/mount", ["mount", "/dev/mapper/nintendo-backu"...,
"/mnt/backup/"], [/* 18 vars */]) = 0
20525 brk(0)= 0x18f3000
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 mmap(NULL, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea24
20525 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
20525 open("/etc/ld.so.cache", O_RDONLY) = 3
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=34118, ...}) = 0
20525 mmap(NULL, 34118, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f5dea237000
20525 close(3)  = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libblkid.so.1", O_RDONLY) = 3
20525 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\...@x\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=126536, ...}) = 0
20525 mmap(NULL, 2221608, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9e04000
20525 mprotect(0x7f5de9e2, 2093056, PROT_NONE) = 0
20525 mmap(0x7f5dea01f000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f5dea01f000
20525 close(3)  = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libuuid.so.1", O_RDONLY) = 3
20525 read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\25\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=19008, ...}) = 0
20525 mmap(NULL, 2113920, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9bff000
20525 mprotect(0x7f5de9c03000, 2093056, PROT_NONE) = 0
20525 mmap(0x7f5de9e02000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f5de9e02000
20525 close(3)  = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libselinux.so.1", O_RDONLY) = 3
20525 read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20Y\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=117592, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea236000
20525 mmap(NULL, 2217480, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de99e1000
20525 mprotect(0x7f5de99fd000, 2093056, PROT_NONE) = 0
20525 mmap(0x7f5de9bfc000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f5de9bfc000
20525 mmap(0x7f5de9bfe000, 1544, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5de9bfe000
20525 close(3)  = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libsepol.so.1", O_RDONLY) = 3
20525 read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340D\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=244576, ...}) = 0
20525 mmap(NULL, 2341536, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de97a5000
20525 mprotect(0x7f5de97df000, 2097152, PROT_NONE) = 0
20525 mmap(0x7f5de99df000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f5de99df000
20525 close(3)  = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libc.so.6", O_RDONLY)  = 3
20525 read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\355\1\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0755, st_size=1568136, ...}) = 0
20525 mmap(NULL, 3676200, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de9423000
20525 mprotect(0x7f5de959b000, 2097152, PROT_NONE) = 0
20525 mmap(0x7f5de979b000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x178000) = 0x7f5de979b000
20525 mmap(0x7f5de97a, 18472, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f5de97a
20525 close(3)  = 0
20525 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
20525 open("/lib/libdl.so.2", O_RDONLY) = 3
20525 read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\0\0\0\0\0"...,
832) = 832
20525 fstat(3, {st_mode=S_IFREG|0644, st_size=14696, ...}) = 0
20525 mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5dea235000
20525 mmap(NULL, 2109696, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f5de921f000
20525 mprotect(0x7f5de9221000, 2097152, PROT_NONE) = 0
20525 mmap(0x7f5de9421000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f5de9421000
20525 close(3)  

Re: problem while mounting an LVM

2010-10-04 Thread Tapas Mishra
On Mon, Oct 4, 2010 at 6:36 PM, Serge E. Hallyn
 wrote:
> Well, it's possible that you have it mounted in another namespace.
> Can you provide output of:
>
> 1. ls -l /mnt/backup

 ls -l /mnt/backup/
total 0

>        (make sure that directory exists :)
> 2. ls -l /dev/mapper


crw-rw 1 root root  10, 59 2010-09-29 17:57 control
brw-rw 1 root disk 251,  0 2010-10-04 13:12 nintendo-backupos
brw-rw 1 root disk 251,  2 2010-10-04 13:57 nintendo-backupos1
brw-rw 1 root disk 251,  3 2010-10-04 13:57 nintendo-backupos2
brw-rw 1 root disk 251,  6 2010-10-04 18:56 nintendo-lvm1
brw-rw 1 root disk 251,  1 2010-10-04 18:56 nintendo-lvm2
brw-rw 1 root disk 251,  5 2010-10-04 18:56 nintendo-lvm3
brw-rw 1 root disk 251,  4 2010-10-04 18:56 nintendo-lvm4

> 3. cat /proc/self/mountinfo

15 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
16 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
17 19 0:5 / /dev rw,relatime - devtmpfs none
rw,size=4086108k,nr_inodes=1021527,mode=755
18 17 0:12 / /dev/pts rw,nosuid,noexec,relatime - devpts none
rw,gid=5,mode=620,ptmxmode=000
19 1 8:1 / / rw,relatime - ext4
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6
rw,errors=remount-ro,barrier=1,data=ordered
21 15 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl none rw
22 15 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
23 15 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
24 17 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
25 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
26 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
27 19 0:19 / /lib/init/rw rw,nosuid,relatime - tmpfs none rw,mode=755

> 4. cat /proc/self/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=4086108k,nr_inodes=1021527,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6 / ext4
rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0

> 5. cat /proc/1/mountinfo
15 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
16 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
17 19 0:5 / /dev rw,relatime - devtmpfs none
rw,size=4086108k,nr_inodes=1021527,mode=755
18 17 0:12 / /dev/pts rw,nosuid,noexec,relatime - devpts none
rw,gid=5,mode=620,ptmxmode=000
19 1 8:1 / / rw,relatime - ext4
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6
rw,errors=remount-ro,barrier=1,data=ordered
21 15 0:15 / /sys/fs/fuse/connections rw,relatime - fusectl none rw
22 15 0:7 / /sys/kernel/debug rw,relatime - debugfs none rw
23 15 0:10 / /sys/kernel/security rw,relatime - securityfs none rw
24 17 0:16 / /dev/shm rw,nosuid,nodev,relatime - tmpfs none rw
25 19 0:17 / /var/run rw,nosuid,relatime - tmpfs none rw,mode=755
26 19 0:18 / /var/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw
27 19 0:19 / /lib/init/rw rw,nosuid,relatime - tmpfs none rw,mode=755

> 6. cat /proc/1/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=4086108k,nr_inodes=1021527,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/disk/by-uuid/6876c294-0c70-4b4e-87a2-636ea19e5ed6 / ext4
rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0

-- 
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: how to transfer an LVM Guest OS on KVM Lucid to another server

2010-10-04 Thread Serge E. Hallyn
Quoting Tapas Mishra (mightydre...@gmail.com):
> I am searching for some information.
> I used virt-manager to create 4 guest OS on KVM.
> Let us call this server A
> I am running another server where KVM is running call this server B.
> Is is some how possible guest running on server A can be transferred to B
> so that I can run it and do not have to do any extra work.

Can you define 'extra work'?

If you want it to be really fast, make sure that the VM backing stores
are shared between the two servers, and at the same pathnames on both.
With maverick you can ask libvirt to move the backing store for you.

-serge

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


problem while mounting an LVM

2010-10-04 Thread Tapas Mishra
I am trying to mount an LVM
mount /dev/nintendo/backupos /mnt/backup/
mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/ busy

where as if I do umount /mnt/backup
then
umount: /mnt/backup/: not mounted

So what might be wrong?
-- 
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: problem while mounting an LVM

2010-10-04 Thread Serge E. Hallyn
Well, it's possible that you have it mounted in another namespace.
Can you provide output of:

1. ls -l /mnt/backup
(make sure that directory exists :)
2. ls -l /dev/mapper
3. cat /proc/self/mountinfo
4. cat /proc/self/mounts
5. cat /proc/1/mountinfo
6. cat /proc/1/mounts

thanks,
-serge

Quoting Tapas Mishra (mightydre...@gmail.com):
> mount output is
> /dev/sda1 on / type ext4 (rw,errors=remount-ro)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> none on /sys type sysfs (rw,noexec,nosuid,nodev)
> none on /sys/fs/fuse/connections type fusectl (rw)
> none on /sys/kernel/debug type debugfs (rw)
> none on /sys/kernel/security type securityfs (rw)
> none on /dev type devtmpfs (rw,mode=0755)
> none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
> none on /dev/shm type tmpfs (rw,nosuid,nodev)
> none on /var/run type tmpfs (rw,nosuid,mode=0755)
> none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
> none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
> none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
> 
> nintendo is a volume group which holds these LVMs
> 
> On Mon, Oct 4, 2010 at 2:20 PM, Jordon Bedwell  wrote:
> 
> > On Mon, 2010-10-04 at 14:13 +0530, Tapas Mishra wrote:
> > > mount /dev/nintendo/backupos /mnt/backup/
> > > mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/
> > > umount: /mnt/backup/: not mounted
> >
> > What is '/dev/nintendo'? Did you run the 'mount' command as is to see
> > what it lists so you can see if it's already mounted for real and then,
> > if it is, unmount it so you can remount it at the mount point you
> > choose?  Just typing 'sudo mount' will list everything that's mounted.
> >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-us...@lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >

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


-- 
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: problem while mounting an LVM

2010-10-04 Thread Tapas Mishra
mount output is
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)

nintendo is a volume group which holds these LVMs

On Mon, Oct 4, 2010 at 2:20 PM, Jordon Bedwell  wrote:

> On Mon, 2010-10-04 at 14:13 +0530, Tapas Mishra wrote:
> > mount /dev/nintendo/backupos /mnt/backup/
> > mount: /dev/mapper/nintendo-backupos already mounted or /mnt/backup/
> > umount: /mnt/backup/: not mounted
>
> What is '/dev/nintendo'? Did you run the 'mount' command as is to see
> what it lists so you can see if it's already mounted for real and then,
> if it is, unmount it so you can remount it at the mount point you
> choose?  Just typing 'sudo mount' will list everything that's mounted.
>
>
> --
> ubuntu-users mailing list
> ubuntu-us...@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

copying an rsync backup in a new LVM

2010-10-04 Thread Tapas Mishra
I am not clear if I am doing the correct thing so some one point me to
the correct thing.
I created a snapshot Volume of an LVM which holded a guest OS.
I mounted this snapshot and using I took a backup on a server
connected remotely.

Now on Server A I created a new LVM this server A is different from
all the above servers.
I created a filesystem on this LVM and want to copy the rsync backup
in this filesystem on A.
But after creating the new LVM which has just a filesystem but no OS
installed how do I mount it
so that the rsync backup which  I am having some where I can copy and
use this to have a new VM
on A.

-- 
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: how to transfer an LVM Guest OS on KVM Lucid to another server

2010-10-04 Thread Tapas Mishra
Ok

On Mon, Oct 4, 2010 at 11:32 AM, Dan Sheffner  wrote:
..snip

> The other option I have used is shutdown the virtual machine and just
> manually move over the xml and the file that runs the virtual machine.
>
> Which file are you referring to above is that LVM that holds VM or some
thing else you are referring.

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

modifying a running VM on fly with libguesfs

2010-10-04 Thread Tapas Mishra
Has any one tried this on Ubuntu server
http://libguestfs.org/
-- 
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: how to transfer an LVM Guest OS on KVM Lucid to another server

2010-10-04 Thread Dan Sheffner
Tapas,

There is a command virsh migrate --live instanceName
qemu+ssh://vmserver06/system.  Though I haven't had much luck with it.
Check out the last post in this forum:

http://ubuntuforums.org/showthread.php?t=1152271

The other option I have used is shutdown the virtual machine and just
manually move over the xml and the file that runs the virtual machine.

I would like to hear your take on any of this if you ever get it working
correctly across 3 or more machines.  The pain point is also having a shared
NFS location for each server running KVM.  I don't have any fancy SAN/NAS
devices so I/O through gigabyte ethernet is a concern when running many
virtual machine all trying to do disk I/O.

On Mon, Oct 4, 2010 at 12:25 AM, Tapas Mishra wrote:

>
>
> I am searching for some information.
> I used virt-manager to create 4 guest OS on KVM.
> Let us call this server A
> I am running another server where KVM is running call this server B.
> Is is some how possible guest running on server A can be transferred to B
> so that I can run it and do not have to do any extra work.
>
>
> --
> ubuntu-server mailing list
> ubuntu-server@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam
>
-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

how to transfer an LVM Guest OS on KVM Lucid to another server

2010-10-04 Thread Tapas Mishra
I am searching for some information.
I used virt-manager to create 4 guest OS on KVM.
Let us call this server A
I am running another server where KVM is running call this server B.
Is is some how possible guest running on server A can be transferred to B
so that I can run it and do not have to do any extra work.
-- 
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: problem while mounting an LVM

2010-10-04 Thread Serge E. Hallyn
Quoting Tapas Mishra (mightydre...@gmail.com):
> On Mon, Oct 4, 2010 at 6:36 PM, Serge E. Hallyn
>  wrote:
> > Well, it's possible that you have it mounted in another namespace.
> > Can you provide output of:

Hm, interesting.  How about the contents of outout after doing:

strace -f -ooutout mount /dev/mapper/nintendo-backupos /mnt/backup

-serge

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