[CentOS] Warning in update

2009-09-26 Thread Daniel Bruno
Hi,

Recently I updated my CentOS 4.8 and while the updates has installed,
yum show me this error some times:

/sbin/ldconfig: file /usr/lib/libtcl8.4.so;48c8dd6a is truncated

/sbin/ldconfig: File /usr/lib/libtcl8.4.so;48c78993 is empty, not checked.
/sbin/ldconfig: File /usr/lib/libstdc++.so.6.0.3;48ccd312 is empty, not checked.




thanks,


-- 
Daniel Bruno
http://danielbruno.eti.br
danielbr...@projetofedora.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS-announce Digest, Vol 55, Issue 10

2009-09-26 Thread centos-announce-request
Send CentOS-announce mailing list submissions to
centos-annou...@centos.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.centos.org/mailman/listinfo/centos-announce
or, via email, send a message with subject or body 'help' to
centos-announce-requ...@centos.org

You can reach the person managing the list at
centos-announce-ow...@centos.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CentOS-announce digest..."


Today's Topics:

   1. CESA-2009:1463 Moderate CentOS 4 i386 newt Update (Johnny Hughes)
   2. CESA-2009:1463 Moderate CentOS 4 x86_64 newt  Update
  (Johnny Hughes)
   3. CESA-2009:1459 Important CentOS 4 i386cyrus-imapd Update
  (Johnny Hughes)
   4. CESA-2009:1459 Important CentOS 4 x86_64  cyrus-imapd Update
  (Johnny Hughes)


--

Message: 1
Date: Fri, 25 Sep 2009 19:27:12 -0500
From: Johnny Hughes 
Subject: [CentOS-announce] CESA-2009:1463 Moderate CentOS 4 i386 newt
Update
To: CentOS-Announce 
Message-ID: <4abd5fe0.5070...@centos.org>
Content-Type: text/plain; charset="iso-8859-1"

CentOS Errata and Security Advisory 2009:1463 Moderate

Upstream details at : http://rhn.redhat.com/errata/RHSA-2009-1463.html

The following updated files have been uploaded and are currently
syncing to the mirrors:

Source:
newt-0.51.6-10.el4_8.1.src.rpm

i386:
newt-0.51.6-10.el4_8.1.i386.rpm
newt-devel-0.51.6-10.el4_8.1.i386.rpm



-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : 
http://lists.centos.org/pipermail/centos-announce/attachments/20090925/c06005be/attachment-0001.bin
 

--

Message: 2
Date: Fri, 25 Sep 2009 19:27:19 -0500
From: Johnny Hughes 
Subject: [CentOS-announce] CESA-2009:1463 Moderate CentOS 4 x86_64
newtUpdate
To: CentOS-Announce 
Message-ID: <4abd5fe7.5000...@centos.org>
Content-Type: text/plain; charset="iso-8859-1"

CentOS Errata and Security Advisory 2009:1463 Moderate

Upstream details at : http://rhn.redhat.com/errata/RHSA-2009-1463.html

The following updated files have been uploaded and are currently
syncing to the mirrors:

Source:
newt-0.51.6-10.el4_8.1.src.rpm

x86_64:
newt-0.51.6-10.el4_8.1.i386.rpm
newt-0.51.6-10.el4_8.1.x86_64.rpm
newt-debuginfo-0.51.6-10.el4_8.1.i386.rpm
newt-debuginfo-0.51.6-10.el4_8.1.x86_64.rpm
newt-devel-0.51.6-10.el4_8.1.x86_64.rpm


-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : 
http://lists.centos.org/pipermail/centos-announce/attachments/20090925/8cd4ea7a/attachment-0001.bin
 

--

Message: 3
Date: Fri, 25 Sep 2009 19:34:20 -0500
From: Johnny Hughes 
Subject: [CentOS-announce] CESA-2009:1459 Important CentOS 4 i386
cyrus-imapd Update
To: CentOS-Announce 
Message-ID: <4abd618c.5060...@centos.org>
Content-Type: text/plain; charset="iso-8859-1"

CentOS Errata and Security Advisory 2009:1459 Important

Upstream details at : http://rhn.redhat.com/errata/RHSA-2009-1459.html

The following updated files have been uploaded and are currently
syncing to the mirrors:

Source:
cyrus-imapd-2.2.12-10.el4_8.4.src.rpm

i386:
cyrus-imapd-2.2.12-10.el4_8.4.i386.rpm
cyrus-imapd-devel-2.2.12-10.el4_8.4.i386.rpm
cyrus-imapd-murder-2.2.12-10.el4_8.4.i386.rpm
cyrus-imapd-nntp-2.2.12-10.el4_8.4.i386.rpm
cyrus-imapd-utils-2.2.12-10.el4_8.4.i386.rpm
perl-Cyrus-2.2.12-10.el4_8.4.i386.rpm


-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : 
http://lists.centos.org/pipermail/centos-announce/attachments/20090925/3a10ba8f/attachment-0001.bin
 

--

Message: 4
Date: Fri, 25 Sep 2009 19:34:26 -0500
From: Johnny Hughes 
Subject: [CentOS-announce] CESA-2009:1459 Important CentOS 4 x86_64
cyrus-imapd Update
To: CentOS-Announce 
Message-ID: <4abd6192.80...@centos.org>
Content-Type: text/plain; charset="iso-8859-1"

CentOS Errata and Security Advisory 2009:1459 Important

Upstream details at : http://rhn.redhat.com/errata/RHSA-2009-1459.html

The following updated files have been uploaded and are currently
syncing to the mirrors:

Source:
cyrus-imapd-2.2.12-10.el4_8.4.src.rpm

x86_64:
cyrus-imapd-2.2.12-10.el4_8.4.x86_64.rpm
cyrus-imapd-devel-2.2.12-10.el4_8.4.x86_64.rpm
cyrus-imapd-murder-2.2.12-10.el4_8.4.x86_64.rpm
cyrus-imapd-nntp-2.2.12-10.el4_8.4.x86_64.rpm
cyrus-imapd-utils-2.2.12-10.el4_8.4.x86_64.rpm
perl-Cyrus-2.2.12-10.el4_8.4.x86_64.rpm


-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size:

Re: [CentOS] Warning in update

2009-09-26 Thread Daniel Bruno
I did a "ls -la" in /usr/lib/libtcl8.4*, and show this result:

-rwxr-xr-x  1 root root 683136 Jul 25  2008 /usr/lib/libtcl8.4.so
-rw-r--r--  1 root root  0 Set 10  2008 /usr/lib/libtcl8.4.so;48c78993
-rw-r--r--  1 root root   4096 Set 11  2008 /usr/lib/libtcl8.4.so;48c8dd6a

Somebody know what is "/usr/lib/libtcl8.4.so;48c78993" and
"/usr/lib/libtcl8.4.so;48c8dd6a"?

I can remove it?

On Sat, Sep 26, 2009 at 12:03 PM, Daniel Bruno
 wrote:
> Hi,
>
> Recently I updated my CentOS 4.8 and while the updates has installed,
> yum show me this error some times:
>
> /sbin/ldconfig: file /usr/lib/libtcl8.4.so;48c8dd6a is truncated
>
> /sbin/ldconfig: File /usr/lib/libtcl8.4.so;48c78993 is empty, not checked.
> /sbin/ldconfig: File /usr/lib/libstdc++.so.6.0.3;48ccd312 is empty, not 
> checked.
>
>
>
>
> thanks,
>
>
> --
> Daniel Bruno
> http://danielbruno.eti.br
> danielbr...@projetofedora.org
>



-- 
Daniel Bruno
http://danielbruno.eti.br
danielbr...@projetofedora.org
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Niki Kovacs
Matt a écrit :
> I have always used Ubuntu for desktop linux and CentOS for servers.
> Have never tried CentOS as a desktop.  Perhaps I should?
> 

One look is worth a thousand words, as they say :

http://www.microlinux.fr/captures.html

My Linux desktop, based on CentOS 5.3, tweaked to death with all the 
extra stuff like working Flash, working Java plugin, working codecs, 
extra packages from RPMForge as well as my own repository. Will play 
every audio and video format under the sun, and it's just about to make 
coffee also :o)

This is the exact same desktop I usually install for my clients. Comes 
on two homegrown custom CDs with install scripts, so installing it on a 
fairy recent desktop takes no more than half an hour.

Does everything that the average Ubuntu/Mint desktop is supposed to do, 
that is, minus the bugs and the worries.

Policy: I install it, the user uses it. Period.

Works like a charm.

Cheers,

Niki
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Les Mikesell
Niki Kovacs wrote:
> Matt a écrit :
>> I have always used Ubuntu for desktop linux and CentOS for servers.
>> Have never tried CentOS as a desktop.  Perhaps I should?
>>
> 
> One look is worth a thousand words, as they say :
> 
> http://www.microlinux.fr/captures.html
> 
> My Linux desktop, based on CentOS 5.3, tweaked to death with all the 
> extra stuff like working Flash, working Java plugin, working codecs, 
> extra packages from RPMForge as well as my own repository. Will play 
> every audio and video format under the sun, and it's just about to make 
> coffee also :o)
> 
> This is the exact same desktop I usually install for my clients. Comes 
> on two homegrown custom CDs with install scripts, so installing it on a 
> fairy recent desktop takes no more than half an hour.
> 
> Does everything that the average Ubuntu/Mint desktop is supposed to do, 
> that is, minus the bugs and the worries.
> 
> Policy: I install it, the user uses it. Period.
> 
> Works like a charm.

Can the install script be simplified to rpm installs of the http urls to the 
yum 
repo release files followed by yum installs of a list of packages?  And if so, 
can someone publish that script?

-- 
   Les Mikesell
lesmikes...@gmail.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos 5.3 - kickstart configuration

2009-09-26 Thread Bill Campbell
On Fri, Sep 25, 2009, Jim Wildman wrote:
>On Fri, 25 Sep 2009, Bill Campbell wrote:
>
>>
>> yum list installed
>>
>
>rpm -qa --queryformat '%{name}\n' will give you more useful output for
>kickstart

Except that jumpstart likes packages which that will not provide,
only the individual RPMs.

Bill
-- 
INTERNET:   b...@celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:  (206) 236-1676  Mercer Island, WA 98040-0820
Fax:(206) 232-9186  Skype: jwccsllc (206) 855-5792

Virtually everything is under federal control nowadays except the
federal budget.  -- Herman E. Talmadge, 1975
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Niki Kovacs
Les Mikesell a écrit :

> Can the install script be simplified to rpm installs of the http urls to the 
> yum 
> repo release files followed by yum installs of a list of packages?  And if 
> so, 
> can someone publish that script?
> 

Not really. Before discovering CentOS (around 2006), I've been a 
die-hard Slackware user, so my two install CDs are a bit like a set of 
two Slackware CDs. Which means, a loose set of directories with stuff in 
them, plus scripts to install them. For example, directories like x11/, 
nvidia/, ati/ and compiz/, with stuff in them, which I install only if 
needed. As for the configuration, I do everything (X11, network, ...) by 
hand, using Vi.

Here's an example. I have a directory java/, with the latest java from 
sun.com, plus the following script:

#!/bin/bash
#
CWD=`pwd`
cp jre-6u14-linux-i586.bin /opt
chmod +c /opt/jre-6u14-linux-i586.bin
{
   cd /opt
   rm -rf jre1.6.0_14
   rm -f /usr/lib/mozilla/plugins/libjavaplugin_oji.so
   sh jre-6u14-linux-i586.bin
   rm -f jre-6u14-linux-i586.bin
}
ln -s /opt/jre1.6.0_14/plugin/i386/ns7/libjavaplugin_oji.so \
   /usr/lib/mozilla/plugins/
cat > /etc/profile.d/java.sh << EOF
export J2RE_HOME=/opt/jre1.6.0_14
export PATH=$J2RE_HOME/bin:$PATH
EOF
chmod +x /etc/profile.d/java.sh
source /etc/profile.d/java.sh
alternatives --install /usr/bin/java java /opt/jre1.6.0_14/bin/java 2
alternatives --config java

Or, other example, the w32codecs/ directory with the following script:

#!/bin/bash
#
# codecs-install.sh

CWD=`pwd`

rm -rf /usr/lib/codecs
rm -rf /usr/lib/win32

tar xjf $CWD/all-20071007.tar.bz2 -C /usr/lib
{
   cd /usr/lib
   mv all-20071007 codecs
   ln -s codecs win32
}

This logic applies pretty much to everything. But it's not really an 
installer.

Of course, it *could* be possible to publish some more user-friendly set 
of install CDs, but this would be a hell of a lot of work, and you'd end 
up with something like Yellowdog Linux (which is based on CentOS).

Cheers,

Niki
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Les Mikesell
Niki Kovacs wrote:
> Les Mikesell a écrit :
> 
>> Can the install script be simplified to rpm installs of the http urls to the 
>> yum 
>> repo release files followed by yum installs of a list of packages?  And if 
>> so, 
>> can someone publish that script?
>>
> 
> Not really. Before discovering CentOS (around 2006), I've been a 
> die-hard Slackware user, so my two install CDs are a bit like a set of 
> two Slackware CDs. Which means, a loose set of directories with stuff in 
> them, plus scripts to install them. For example, directories like x11/, 
> nvidia/, ati/ and compiz/, with stuff in them, which I install only if 
> needed. As for the configuration, I do everything (X11, network, ...) by 
> hand, using Vi.
> 
> Here's an example. I have a directory java/, with the latest java from 
> sun.com, plus the following script:
> 
> #!/bin/bash
> #
> CWD=`pwd`
> cp jre-6u14-linux-i586.bin /opt
> chmod +c /opt/jre-6u14-linux-i586.bin
> {
>cd /opt
>rm -rf jre1.6.0_14
>rm -f /usr/lib/mozilla/plugins/libjavaplugin_oji.so
>sh jre-6u14-linux-i586.bin
>rm -f jre-6u14-linux-i586.bin
> }
> ln -s /opt/jre1.6.0_14/plugin/i386/ns7/libjavaplugin_oji.so \
>/usr/lib/mozilla/plugins/
> cat > /etc/profile.d/java.sh << EOF
> export J2RE_HOME=/opt/jre1.6.0_14
> export PATH=$J2RE_HOME/bin:$PATH
> EOF
> chmod +x /etc/profile.d/java.sh
> source /etc/profile.d/java.sh
> alternatives --install /usr/bin/java java /opt/jre1.6.0_14/bin/java 2
> alternatives --config java
> 
> Or, other example, the w32codecs/ directory with the following script:
> 
> #!/bin/bash
> #
> # codecs-install.sh
> 
> CWD=`pwd`
> 
> rm -rf /usr/lib/codecs
> rm -rf /usr/lib/win32
> 
> tar xjf $CWD/all-20071007.tar.bz2 -C /usr/lib
> {
>cd /usr/lib
>mv all-20071007 codecs
>ln -s codecs win32
> }
> 
> This logic applies pretty much to everything. But it's not really an 
> installer.
> 
> Of course, it *could* be possible to publish some more user-friendly set 
> of install CDs, but this would be a hell of a lot of work, and you'd end 
> up with something like Yellowdog Linux (which is based on CentOS).

But that leaves you in charge of maintaining and updating every piece you 
install or leaving the systems in a lurch if you don't and there are subsequent 
security/bug fixes.  The whole point of having an enterprise-type long-life 
distribution is that you don't have to do that. If there is a well maintained 
3rd party repo that has the components you need packaged for yum it would be 
much better to take advantage of it.   Sun java used to be something of a 
special case because few sites were willing to host a copy packaged to 
accommodate the RH-style wierdness (I generally used the k12ltsp distro based 
on 
Centos specifically for this) but now that openjdk is included in 5.3 and in 
epel it is not so much of an issue.

-- 
   Les Mikesell
lesmikes...@gmail.com



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread mark
Niki Kovacs wrote:
> Les Mikesell a écrit :

> Here's an example. I have a directory java/, with the latest java from 
> sun.com, plus the following script:

I've just become familiar with alternatives, and now wonder why no one created 
that a decade ago.

mark
-- 
"The very powerful and the very stupid have one thing
  in common.  Instead of altering their views to fit the
  facts, they alter the facts to fit their views...which
  can be very uncomfortable if you happen to
  be one of the facts that needs altering." - Doctor Who

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Les Mikesell
mark wrote:
> Niki Kovacs wrote:
>> Les Mikesell a écrit :
> 
>> Here's an example. I have a directory java/, with the latest java from 
>> sun.com, plus the following script:
> 
> I've just become familiar with alternatives, and now wonder why no one 
> created 
> that a decade ago.

It's not a real good fit for things like java where you really want to be able 
to run multiple versions simultaneously, depending on the user, the app, or the 
intended purpose (perhaps testing the next release while production apps 
continue to use the older one).

-- 
   Les Mikesell
lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread mark
Les Mikesell wrote:
> mark wrote:
>> Niki Kovacs wrote:
>>> Les Mikesell a écrit :
>> 
>>> Here's an example. I have a directory java/, with the latest java from 
>>> sun.com, plus the following script:
>> 
>> I've just become familiar with alternatives, and now wonder why no one 
>> created 
>> that a decade ago.
> 
> It's not a real good fit for things like java where you really want to be 
> able 
> to run multiple versions simultaneously, depending on the user, the app, or 
> the 
> intended purpose (perhaps testing the next release while production apps 
> continue to use the older one).
> 
I gather, thought that is what JAVA_HOME is for

mark

-- 
America was *not* built by "rugged individualists". - whitroth
"We must all hang together, or we shall all hang separately" - B. Franklin

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Les Mikesell
mark wrote:
> Les Mikesell wrote:
>> mark wrote:
>>> Niki Kovacs wrote:
 Les Mikesell a écrit :
>>> 
 Here's an example. I have a directory java/, with the latest java from 
 sun.com, plus the following script:
>>> 
>>> I've just become familiar with alternatives, and now wonder why no one 
>>> created 
>>> that a decade ago.
>> It's not a real good fit for things like java where you really want to be 
>> able 
>> to run multiple versions simultaneously, depending on the user, the app, or 
>> the 
>> intended purpose (perhaps testing the next release while production apps 
>> continue to use the older one).
>>
> I gather, thought that is what JAVA_HOME is for

Yes, but you also need to know where that is, and the correct path to the 
executable you want, which the alternatives system goes out of its way to hide. 
  And if you want different builds/patchlevels of the same minor rev, the RPM 
system itself will make it difficult.

-- 
Les Mikesell
  lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS for non-tech user

2009-09-26 Thread Niki Kovacs
Les Mikesell a écrit :

> But that leaves you in charge of maintaining and updating every piece you 
> install or leaving the systems in a lurch if you don't and there are 
> subsequent 
> security/bug fixes.  The whole point of having an enterprise-type long-life 
> distribution is that you don't have to do that. 

Well, 'yum update' should fix that, except for the odd extra package 
(Java, OpenOffice.org, codecs etc.)

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread Devraj Mukherjee
Hi all,

I am trying to mount images that I previously created with dd and the
images have two partitions (swap and LVM). I use these images to house
data for my Xen Guests.

For some reason (possibly Kernel conflicts for paravirtualized
domains) I am unable to boot my Guest images. Failing which I would
like to mount the disk images and atleast get my data out of them.

dd -o loop server.img /media/diskimage

asks me to provide a file system. How can I mount these images?

I have been Googling around for this and have failed to find and
answer, can someone please point me in the right direction.

Appreciate your time.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread Alan Sparks
Devraj Mukherjee wrote:
> Hi all,
>
> I am trying to mount images that I previously created with dd and the
> images have two partitions (swap and LVM). I use these images to house
> data for my Xen Guests.
>   

You'll probably need at least kpartx to mount the partitions out of the
image.  Maybe even the LVM tools, if you've created some of the
filesystems inside the image as LVs.

Perhaps the page at the following may give you some inspiration:
http://www.centos.org/docs/5/html/Virtualization-en-US/ch-virt-accessing-data.html

-Alan
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread aurfalien
Is your local host using LVMs and if so, is your volume group  
something like VolGroup00?

Is your image file also of a VolGroup00?

- aurf
On Sep 26, 2009, at 7:56 PM, Devraj Mukherjee wrote:

> Hi all,
>
> I am trying to mount images that I previously created with dd and the
> images have two partitions (swap and LVM). I use these images to house
> data for my Xen Guests.
>
> For some reason (possibly Kernel conflicts for paravirtualized
> domains) I am unable to boot my Guest images. Failing which I would
> like to mount the disk images and atleast get my data out of them.
>
> dd -o loop server.img /media/diskimage
>
> asks me to provide a file system. How can I mount these images?
>
> I have been Googling around for this and have failed to find and
> answer, can someone please point me in the right direction.
>
> Appreciate your time.
>
> -- 
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread Devraj Mukherjee
Hi aurf,

On Sun, Sep 27, 2009 at 1:09 PM,   wrote:
> Is your local host using LVMs and if so, is your volume group
> something like VolGroup00?
>

Yes it uses LVM and has VolGroup00

> Is your image file also of a VolGroup00?
>
> - aurf

Yes this is true as well.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread aurfalien
Ok, this is what I did in the exact same situation (solution below  
gotten from the xen list).

I use it religiously.

Lucky I'm on both forums.


**

First make sure your guest isn't running unless you want to trash its  
file systems.

losetup -f /var/lib/xen/images/foo.img
losetup -a
# Make a note of which device corresponds to /var/lib/images/foo.img,
# 'll call it /dev/loopN but it's probably /dev/loop0
kpartx -va /dev/loopN

You'll get two new entries in /dev/mapper now: /dev/mapper/loopNp1  
and /dev/mapper/loopNp2.   loopNp1 is /boot (asume you have got a  
standard layout).   loopNp2 is a volume group.   You can just mount
/dev/loopNp1 to poke around the /boot file system.

Now

vgscan

This is where you might come unstuck.   The default volume group for  
Red Hat and similar is "VolGroup00".  If your dom0 is using LVM and so  
is the guest then you'll have do VolGroup00's and that's bad.   The  
best thing to do now is to boot a rescue image in a different domU and  
rename the guest's volume group.  You'll need to undo the kpartx and  
losetup (see below first) and when you've all finished then you'll  
need to either fix up the guest's /boot/initrd*.img, /etc/fstab and / 
boot/grub/grub.conf to hold the new name or you'll have to rename it  
back again in the rescue guest.

Anyway, assuming you don't get a clash:

vgchange -ay VolGroup00

The guest's file systems are now in /dev/VolGroup00 and you can mount  
them as normal.

To undo everything:

1.  umount any file systyems you mounted
2.  vgchange -an VolGroup00
3.  kpartx -d /dev/loopN
4. losetup -d /dev/loopN

And next time you build a system, change the name of its volume group  
so you don't wind up with two systems with the same volume group  
name!   And I wish Red Hat had listened to me years ago when I said  
that "VolGroup00" was a really poor idea.


**


On Sep 26, 2009, at 8:11 PM, Devraj Mukherjee wrote:

> Hi aurf,
>
> On Sun, Sep 27, 2009 at 1:09 PM,   wrote:
>> Is your local host using LVMs and if so, is your volume group
>> something like VolGroup00?
>>
>
> Yes it uses LVM and has VolGroup00
>
>> Is your image file also of a VolGroup00?
>>
>> - aurf
>
> Yes this is true as well.
>
> -- 
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread Devraj Mukherjee
Thanks a lot for that, I will give it a go. I am trying to get another
machine with CentOS 5.3 so I can use that to perform the rescue
operations.

Did you see my post on the virtualisation list?

If so do you have any thoughts on that post?

On Sun, Sep 27, 2009 at 1:16 PM,   wrote:
> Ok, this is what I did in the exact same situation (solution below
> gotten from the xen list).
>
> I use it religiously.
>
> Lucky I'm on both forums.

-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread aurfalien
Well, I would build a new system with no LVMs at all, just set  
everything as / and ext3.

This way you can rescue img files all day long without potential  
VolGroup00 clashes.

I build all my Xen dom0 and domUs w/o LVMs.

Why?

Cuz I found a bug (I guess, or its just lame) that wen your snapshot  
volume of your / goes away, and you reboot the system, you can't.

This dependancy on snapshots turned me off and I couldn't find a quick  
way to recover in case of some DR or BCP need.

- aurf

On Sep 26, 2009, at 8:21 PM, Devraj Mukherjee wrote:

> Thanks a lot for that, I will give it a go. I am trying to get another
> machine with CentOS 5.3 so I can use that to perform the rescue
> operations.
>
> Did you see my post on the virtualisation list?
>
> If so do you have any thoughts on that post?
>
> On Sun, Sep 27, 2009 at 1:16 PM,   wrote:
>> Ok, this is what I did in the exact same situation (solution below
>> gotten from the xen list).
>>
>> I use it religiously.
>>
>> Lucky I'm on both forums.
>
> -- 
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] mounting images created using dd that contain two partitions

2009-09-26 Thread aurfalien
o, i didn't see your post in the xen lists.

On Sep 26, 2009, at 8:21 PM, Devraj Mukherjee wrote:

> Thanks a lot for that, I will give it a go. I am trying to get another
> machine with CentOS 5.3 so I can use that to perform the rescue
> operations.
>
> Did you see my post on the virtualisation list?
>
> If so do you have any thoughts on that post?
>
> On Sun, Sep 27, 2009 at 1:16 PM,   wrote:
>> Ok, this is what I did in the exact same situation (solution below
>> gotten from the xen list).
>>
>> I use it religiously.
>>
>> Lucky I'm on both forums.
>
> -- 
> "The secret impresses no-one, the trick you use it for is everything"
> - Alfred Borden (The Prestiege)
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos