[Rocks-Discuss] /sbin/init: error while loading shared libraries: libsepol.so.1: cannot open shared object file: Input/output error

2,766 views
Skip to first unread message

Vadivelan Ranjith

unread,
Sep 20, 2008, 2:44:53 PM9/20/08
to Discussion of Rocks Clusters
Hi

We have configured 32-bit of rocks-4.3. We used to reboot the machine once a
month. When i rebooted the machine i got the error message


Red Hat nash version 4.2.1.10 starting
/sbin/init: error while loading shared libraries: libsepol.so.1: cannot open
shared object file: Input/output error
Kernel panic - not syncing: Attempted to kill init!


After that its not booting. Does anyone knows how to solve it.

- Velan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/d67ac1c8/attachment.html

Diego M. Vadell

unread,
Sep 20, 2008, 3:15:31 PM9/20/08
to npaci-rocks...@sdsc.edu
On Saturday 20 September 2008 15:44:53 Vadivelan Ranjith wrote:
> Hi
>
> We have configured 32-bit of rocks-4.3. We used to reboot the machine once
> a month. When i rebooted the machine i got the error message
>
>
> Red Hat nash version 4.2.1.10 starting
> /sbin/init: error while loading shared libraries: libsepol.so.1: cannot
> open shared object file: Input/output error
> Kernel panic - not syncing: Attempted to kill init!
>

Hi,

Input/output error usually means that the filesystem needs a fsck or that
the disk has io errors. Can you boot with a live CD and see if you can mount
the disk? Can you run a fsck? Can you run check where libsepol.so.1 is and
run: "ldd /path/to/libsepol.so.1? Does that gives you the same i/o error?

HTH,
-- Diego.

Vadivelan Ranjith

unread,
Sep 21, 2008, 3:06:22 AM9/21/08
to Diego M. Vadell, npaci-rocks...@sdsc.edu
Hi
Thanks for your reply. I booted the system with live CD and mount all the
partitions.


ubuntu@ubuntu:~$ mkdir sda
ubuntu@ubuntu:~$ mkdir sda1
ubuntu@ubuntu:~$ mkdir sda2
ubuntu@ubuntu:~$ mkdir sda3
ubuntu@ubuntu:~$ mkdir sda4
ubuntu@ubuntu:~$ sudo mount /dev/sda sda
mount: /dev/sda already mounted or sda busy
ubuntu@ubuntu:~$ sudo mount /dev/sda1 sda1
ubuntu@ubuntu:~$ sudo mount /dev/sda2 sda2
ubuntu@ubuntu:~$ sudo mount /dev/sda3 sda3
/dev/sda3 looks like swapspace - not mounted
mount: you must specify the filesystem type
ubuntu@ubuntu:~$ sudo mount /dev/sda4 sda4
ubuntu@ubuntu:~$ ls sda1
bin etc initrd media opt sbin srv tmp
boot export lib misc proc selinux sys usr
dev home lost+found mnt root share tftpboot var

Now i checked whereis libsepol.so.1. I found it was in two places.

/lib/libsepol.so.1
sda1/lib/libsepol.so.1

Then i did
ubuntu@ubuntu:~$ ldd sda1/lib/libsepol.so.1
ldd: sda1/lib/libsepol.so.1: No such file or directory


ubuntu@ubuntu:~$ sudo fsck /dev/sda1
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
/dev/sda1 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

/: recovering journal
/ contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inode 899469 has illegal block(s). Clear<y>?

/: e2fsck canceled.

/: ********** WARNING: Filesystem still has errors **********

I cancelled it because its keep on asking for errors. I can you please
suggest me what to do.

- Velan

-------------- next part --------------
An HTML attachment was scrubbed...

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/864d45dc/attachment.html

Sreeram_...@dell.com

unread,
Sep 21, 2008, 3:25:44 AM9/21/08
to npaci-rocks...@sdsc.edu
What does ldd /lib/libsepol.so.1 show?

Vadivelan Ranjith

unread,
Sep 21, 2008, 3:57:33 AM9/21/08
to Discussion of Rocks Clusters
On Sun, Sep 21, 2008 at 7:25 AM, <Sreeram_...@dell.com> wrote:

> What does ldd /lib/libsepol.so.1 show?

Hi
It shows

ubuntu@ubuntu:~$ ldd /lib/libsepol.so.1
linux-gate.so.1 => (0xb7f27000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7d96000)
/lib/ld-linux.so.2 (0xb7f28000)
ubuntu@ubuntu:~$

- Velan

> 0921/864d45dc/attachment.html<https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/864d45dc/attachment.html>


>
-------------- next part --------------
An HTML attachment was scrubbed...

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/152b3199/attachment.html

Vadivelan Ranjith

unread,
Sep 21, 2008, 3:54:38 AM9/21/08
to Discussion of Rocks Clusters
Hi
I not understand whether the file is available or not. When i typed cp
sda1/lib/libse [and pressed tab] it showing the following

ubuntu@ubuntu:~$ cp sda1/lib/libse
libselinux.so.1 libsepol.so.1

Then i tried to copy it

ubuntu@ubuntu:~$ cp sda1/lib/libsepol.so.1 .
cp: cannot stat `sda1/lib/libsepol.so.1': No such file or directory

Then i did ls

ubuntu@ubuntu:~$ ls sda1/lib/libse*
ls: cannot access sda1/lib/libselinux.so.1: No such file or directory
ls: cannot access sda1/lib/libsepol.so.1: No such file or directory

I not understand why its showing No such file or directory even i not
mention full name.

I have attached the screenprint of the desktop. It shows libsepol.so.1 is
available

- Velan

On Sun, Sep 21, 2008 at 7:25 AM, <Sreeram_...@dell.com> wrote:

> 0921/864d45dc/attachment.html<https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/864d45dc/attachment.html>


>
-------------- next part --------------
An HTML attachment was scrubbed...

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/e71ffd42/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 122319 bytes
Desc: not available
Url : https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080921/e71ffd42/Screenshot.png

Diego M. Vadell

unread,
Sep 21, 2008, 12:01:38 PM9/21/08
to npaci-rocks...@sdsc.edu
Hi,

First of all, please make a fsck with the filesystem unmounted, and then
keep trying to make fsck heal it. Only then, with a clean filesystem, you can
check if libsepol.so.1 is really there or not (i.e. ls -l , ldd, etc)

I you still get No such file or directory, check the last lines of dmesg.
Maybe you can get some more info there like disk errors.

HTH,
-- Diego.

On Sunday 21 September 2008 04:06:22 Vadivelan Ranjith wrote:
[...]

Vadivelan Ranjith

unread,
Sep 22, 2008, 7:10:25 AM9/22/08
to Diego M. Vadell, npaci-rocks...@sdsc.edu
Thanks Diego,

I tried fsck -y -c. After that libsepol.so.1 is not found. Now what i need
to do.

- Velan

On Sun, Sep 21, 2008 at 9:31 PM, Diego M. Vadell <
dva...@linuxclusters.com.ar> wrote:

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20080922/257c61a2/attachment.html

Diego M. Vadell

unread,
Sep 22, 2008, 10:24:09 AM9/22/08
to Vadivelan Ranjith, npaci-rocks...@sdsc.edu
Hi Velan,

Install the same version of rocks in another machine (maybe a virtual
machine) and copy libsepol.so.1 to this one. And then try to boot.

Or you can install CentOS in another machine or VM and copy libsepol.so.1
from it. Or you can find in what rpm libsepol.so.1 is, extract libsepol.so.1
from it and copy it.

You will have to see if there is something else missing. Maybe something
else is missing besides libsepol.so.1 .

-- Diego.

Vadivelan Ranjith

unread,
Oct 11, 2008, 4:52:30 AM10/11/08
to Diego M. Vadell, npaci-rocks...@sdsc.edu
Hi Diego,
Sorry for trady reply. Actually i had to travel for urgent work.
I copied the library files from another system which has the same version of
rocks. But it asked one by one library. So i copied all library files from
other machine /lib . Now frontend booted. Our machine was configures pbs and
maui. Now its not working properly. When checked that directory the was no
library file in /opt/torque/lib

[root@galaxy ~]# showq
showq: error while loading shared libraries: libtorque.so.0: cannot open
shared object file: No such file or directory
[root@galaxy ~]#
[root@galaxy ~]# qmgr
-bash: /opt/torque/bin/qmgr: Permission denied
[root@galaxy ~]#


So i think i need to rebuild the rolls. I dont know how to do it. Can you
please tell me the commands how to rebuild it.

- Velan

On Mon, Sep 22, 2008 at 7:54 PM, Diego M. Vadell <
dva...@linuxclusters.com.ar> wrote:

URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20081011/2442211c/attachment.html

Diego M. Vadell

unread,
Oct 11, 2008, 8:36:26 AM10/11/08
to Vadivelan Ranjith, npaci-rocks...@sdsc.edu
Hi Velan,

It looks like your filesystem is really damaged! Sorry, I've never rebuilt
the rolls. Wouldn't it be better to reinstall the frontend? ( backup all data
and extra programs, reinstall from scratch the same rocks version, restore
all data).

-- Diego.

Reply all
Reply to author
Forward
0 new messages