bug-coreutils
[Top][All Lists]
Advanced

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

Re: chroot bug with MD disks (software raid disks)


From: dan1
Subject: Re: chroot bug with MD disks (software raid disks)
Date: Wed, 28 Feb 2007 17:46:17 +0100

Hello, James.

Thank you, you got it! this was the problem, I had in /etc/mtab mistakenly /dev/md12 instead of /dev/md22, probably due to backups and disk moves that I did... I did change the /etc/fstab, but not the /etc/mtab!

Sorry for this. It is therefore not a bug at all.
Thank you again.

Best regards,
Daniel

----- Original Message ----- From: "James Youngman" <address@hidden>
To: "dan1" <address@hidden>
Cc: <address@hidden>
Sent: Wednesday, February 28, 2007 2:44 PM
Subject: Re: chroot bug with MD disks (software raid disks)


On 2/27/07, dan1 <address@hidden> wrote:
hello.

I have just seen a strange behaviour with chroot on a system using CentOS 4.4, with root being /dev/md2, and trying to chroot to another drive array which is /dev/md22.
When doing this with the following command:
chroot /my_folder_with_md22

What was the content of /my_folder_with_md22/etc/mtab before you
entered the chroot command?   What device numbers and inodes do you
get if you stat the various directories?

then, the chroot indicates that the mounted device is not md22 but md12:
# mount
/dev/md12 on / type ext3 (rw)

I also have a md12 array on this system.
It seems that chroot is mixing things up. However, if I place a file on the /dev/md22 array, and then chroot to it, the file is really present there, but the mount command still reports to be using the /dev/md12 array.

It's the first time I use this command, so I might also do something wrong, but it doesn't seem so.

Thanks in advance for any bug confirmation.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]