Data Backup and Recovery
Data Backup and Recovery
I recently received a copy of 3.5.0c. Untarred it onto a new CentOS 5.7 and placed it into /usr/local as per the 3.4 documentation (don't know if there is a 3.5 docs anywhere).
Then went to run it and received ...
[root@81377-sanperf scServer3.5.0c]# ./snapcreator --profile setup
Panic: '/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so' is not an ActivePerl library
A quick ldd …
[root@81377-sanperf scServer3.5.0c]# ldd snapcreator
linux-vdso.so.1 => (0x00007fff413fd000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003985200000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003982e00000)
libm.so.6 => /lib64/libm.so.6 (0x0000003983600000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003984a00000)
libutil.so.1 => /lib64/libutil.so.1 (0x0000003985a00000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003983e00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003982a00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003982600000)
Not sure where to go from here
Thanks,
Jim
Solved! See The Solution
I found out that the template that I was using for CentOS had a noexec /tmp partition. snapcreator runs now.
Can you try the 32bit version of the linux binary for SC? Also can you run the following command: strace ./snapcreator --version. This will produce a stack trace. Also a plain ./snapcreator --version would be good.
I have CentOS 5.5 and it works fine, we rarely here of issues like this but it is some kind of incompatibility
You can also try installing ActiveState perl, www.activestate.com and setting that perl before other perl in search path
Let me know
Regards,
Keith
Keith,
Here's the quick info....
[root@81377-sanperf scServer3.5.0c]# ./snapcreator --version
Panic: '/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so' is not an ActivePerl library
[root@81377-sanperf scServer3.5.0c]# strace ./snapcreator --version
execve("./snapcreator", ["./snapcreator", "--version"], [/* 21 vars */]) = 0
brk(0) = 0x9f8d000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b497409c000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b497409d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=35380, ...}) = 0
mmap(NULL, 35380, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b497409e000
close(3) = 0
open("/lib64/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240@ \2059\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=114352, ...}) = 0
mmap(0x3985200000, 2194096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3985200000
mprotect(0x3985215000, 2093056, PROT_NONE) = 0
mmap(0x3985414000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x3985414000
mmap(0x3985416000, 6832, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3985416000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16\340\2029\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=23360, ...}) = 0
mmap(0x3982e00000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3982e00000
mprotect(0x3982e02000, 2097152, PROT_NONE) = 0
mmap(0x3983002000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3983002000
close(3) = 0
open("/lib64/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`>`\2039\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=615136, ...}) = 0
mmap(0x3983600000, 2629848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3983600000
mprotect(0x3983682000, 2093056, PROT_NONE) = 0
mmap(0x3983881000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x3983881000
close(3) = 0
open("/lib64/libcrypt.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\t\240\2049\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=48600, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b49740a7000
mmap(0x3984a00000, 2322880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3984a00000
mprotect(0x3984a09000, 2093056, PROT_NONE) = 0
mmap(0x3984c08000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0x3984c08000
mmap(0x3984c0a000, 184768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3984c0a000
close(3) = 0
open("/lib64/libutil.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\16\240\2059\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18152, ...}) = 0
mmap(0x3985a00000, 2105616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3985a00000
mprotect(0x3985a02000, 2093056, PROT_NONE) = 0
mmap(0x3985c01000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x3985c01000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240W\340\2039\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=145824, ...}) = 0
mmap(0x3983e00000, 2204528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3983e00000
mprotect(0x3983e16000, 2093056, PROT_NONE) = 0
mmap(0x3984015000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x3984015000
mmap(0x3984017000, 13168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3984017000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\332\241\2029\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1722304, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b49740a8000
mmap(0x3982a00000, 3502424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3982a00000
mprotect(0x3982b4e000, 2097152, PROT_NONE) = 0
mmap(0x3982d4e000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14e000) = 0x3982d4e000
mmap(0x3982d53000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3982d53000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b49740a9000
arch_prctl(ARCH_SET_FS, 0x2b49740a9670) = 0
mprotect(0x3982d4e000, 16384, PROT_READ) = 0
mprotect(0x3984015000, 4096, PROT_READ) = 0
mprotect(0x3985c01000, 4096, PROT_READ) = 0
mprotect(0x3984c08000, 4096, PROT_READ) = 0
mprotect(0x3983881000, 4096, PROT_READ) = 0
mprotect(0x3983002000, 4096, PROT_READ) = 0
mprotect(0x3985414000, 4096, PROT_READ) = 0
mprotect(0x398281c000, 4096, PROT_READ) = 0
munmap(0x2b497409e000, 35380) = 0
set_tid_address(0x2b49740a9700) = 18983
set_robust_list(0x2b49740a9710, 0x18) = 0
futex(0x7fffce05eeac, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x3983e05380, [], SA_RESTORER|SA_SIGINFO, 0x3983e0eb70}, NULL, 😎 = 0
rt_sigaction(SIGRT_1, {0x3983e052b0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x3983e0eb70}, NULL, 😎 = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 😎 = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
readlink("/proc/self/exe", "/usr/local/scServer3.5.0c/snapcreator"..., 260) = 37
brk(0) = 0x9f8d000
brk(0x9fae000) = 0x9fae000
open("/usr/local/scServer3.5.0c/snapcreator", O_RDONLY) = 3
lseek(3, -12, SEEK_END) = 6344148
read(3, "\274U!\253\2\0\0\0004Z_\0", 12) = 12
mmap(NULL, 6250496, PROT_READ, MAP_SHARED, 3, 0x17000) = 0x2b49740aa000
mmap(NULL, 6250496, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b49746a0000
close(3) = 0
futex(0x39830030ec, FUTEX_WAKE_PRIVATE, 2147483647) = 0
geteuid() = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1696, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4974c96000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1696
read(3, "", 4096) = 0
close(3) = 0
munmap(0x2b4974c96000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=35380, ...}) = 0
mmap(NULL, 35380, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b4974c96000
close(3) = 0
open("/lib64/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\37\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=53880, ...}) = 0
mmap(NULL, 2139432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2b4974c9f000
mprotect(0x2b4974ca9000, 2093056, PROT_NONE) = 0
mmap(0x2b4974ea8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9000) = 0x2b4974ea8000
close(3) = 0
mprotect(0x2b4974ea8000, 4096, PROT_READ) = 0
munmap(0x2b4974c96000, 35380) = 0
open("/etc/passwd", O_RDONLY) = 3
fcntl(3, F_GETFD) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=1439, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4974c96000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 1439
close(3) = 0
munmap(0x2b4974c96000, 4096) = 0
mkdir("/tmp/pdk-root/", 0755) = -1 EEXIST (File exists)
mkdir("/tmp/pdk-root/990f144bacb50cb035b7702a643c4708", 0755) = -1 EEXIST (File exists)
open("/tmp/pdk-root/990f144bacb50cb035b7702a643c4708/libperl.so", O_RDONLY) = 3
close(3) = 0
open("/tmp/pdk-root/990f144bacb50cb035b7702a643c4708/libperl.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000Z\3\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1614981, ...}) = 0
mmap(NULL, 2550728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = -1 EPERM (Operation not permitted)
close(3) = 0
open("/usr/local/scServer3.5.0c/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/sbin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/usr/kerberos/bin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/sbin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/bin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/perl", 0x7fffce05ec30) = -1 ENOENT (No such file or directory)
stat("/usr/bin/perl", {st_mode=S_IFREG|0755, st_size=19200, ...}) = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b49740a9700) = 18984
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b4974c96000
read(3, "archlibexp='/usr/lib64/perl5/5.8"..., 1024) = 63
close(3) = 0
wait4(18984, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 18984
munmap(0x2b4974c96000, 4096) = 0
stat("/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so", {st_mode=S_IFREG|0755, st_size=1262416, ...}) = 0
open("/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\34c\2059\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1262416, ...}) = 0
mmap(0x3985600000, 3363680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3985600000
mprotect(0x398572c000, 2093056, PROT_NONE) = 0
mmap(0x398592b000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b000) = 0x398592b000
mmap(0x3985934000, 4960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3985934000
close(3) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=35380, ...}) = 0
mmap(NULL, 35380, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b4974c96000
close(3) = 0
open("/lib64/libresolv.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2402`\2069\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=92736, ...}) = 0
mmap(0x3986600000, 2181864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3986600000
mprotect(0x3986611000, 2097152, PROT_NONE) = 0
mmap(0x3986811000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0x3986811000
mmap(0x3986813000, 6888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3986813000
close(3) = 0
mprotect(0x3986811000, 4096, PROT_READ) = 0
munmap(0x2b4974c96000, 35380) = 0
write(2, "Panic: '/usr/lib64/perl5/5.8.8/x"..., 102Panic: '/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE/libperl.so' is not an ActivePerl library) = 102
write(2, "\n", 1
) = 1
munmap(0x2b49746a0000, 6250496) = 0
munmap(0x2b49740aa000, 6250496) = 0
exit_group(1) = ?
Ok I sent this to some of the devs, I am not sure we have ever seen this. It is very odd that Snap Creator would be loading libperl.so from perl5 directory, something isn't right.
I have two more things you can try:
1. Take perl5 out of the path so it doesnt find the libperl.so, this may at least point us to source of problem. If you get a new error, then grab an strace.
2. Try the 32bit version not the 64bit version. There could be some missing libs required for 64bit on your OS.
Let me know
Regards,
Keith
Hi Jim,
I somehow missed this and now it is starting to make sense
Snap Creator bundles its own libperl.so, like I said we dont require external software.
What I believe is happening is Snap Creator is not finding the libperl.so it comes with and so it moves on to libperl.so which is found under perl5
open("/usr/local/scServer3.5.0c/libperl.so", O_RDONLY) = -1 ENOENT (No such file or directory)
This open and others fail and that is the problem
The reason why this could happen is tmp is full or there is no tmp directory. SC requires a tmp directory.
Verify if tmp has space if it doesnt free up some space, make sure temp is writable as well.
Re-run ./snapcreator --version
Let me know if this helps
Regards,
Keith
Keith,
Looks like I have enough space ....
[root@81377-sanperf ~]# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 2.0G 44M 1.8G 3% /tmp
[root@81377-sanperf ~]# ls -ald /tmp
drwxrwxrwt 13 root root 4096 Jan 12 16:36 /tmp
[root@81377-sanperf ~]# sum Snap_Creator_Community_Release_3.5.0-Linux64.tar
42018 68710
Ok that rules out tmp being issue. I just did cksum on tarball and on binary this is what i see and it is working:
1081640792 70359040 Snap_Creator_Community_Release_3.5.0-Linux64.tar
1665762593 6344160 snapcreator
Can you do a cksum on snapcreator binary and verify?
Regards,
Keith
[root@81377-sanperf scServer3.5.0c]# cksum snapcreator
1665762593 6344160 snapcreator
[root@81377-sanperf ~]# cksum Snap_Creator_Community_Release_3.5.0-Linux64.tar
1081640792 70359040 Snap_Creator_Community_Release_3.5.0-Linux64.tar
This is interesting... still looking for ActivePerl...
[root@81377-sanperf scServer3.5.0c]# bash
[root@81377-sanperf scServer3.5.0c]# export PATH=/usr/local/bin
[root@81377-sanperf scServer3.5.0c]# echo $PATH
/usr/local/bin
[root@81377-sanperf scServer3.5.0c]# ./snapcreator --version
Error: Can't locate libperl.so
Make sure the ActivePerl bin directory is in your PATH
PATH=/usr/local/bin
Ok then let's try the 32bit version and see if that work
Regards,
Keith
Keith,
In poking around, I found some interesting stuff in /tmp. Is pdk-root from SC? I am guessing so....
I started the 64-bit test in the morn and 32-bit test in the eve.
[root@81377-sanperf ~]# find /tmp -name libperl.so -ls -exec file {} \;
131075 1584 -rw-r--r-- 1 root root 1614981 Jan 12 09:07 /tmp/pdk-root/990f144bacb50cb035b7702a643c4708/libperl.so
/tmp/pdk-root/990f144bacb50cb035b7702a643c4708/libperl.so: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), not stripped
131077 1412 -rw-r--r-- 1 root root 1440083 Jan 12 20:25 /tmp/pdk-root/8a5466952c718e5e0b84210ae7ff7605/libperl.so
/tmp/pdk-root/8a5466952c718e5e0b84210ae7ff7605/libperl.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
The 32-bit version gave me...
[root@81377-sanperf scServer3.5.0c]# ./snapcreator --version
Error: Can't locate libperl.so
Make sure the ActivePerl bin directory is in your PATH
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
That is normal, SC unpacks libs and leaves them under /tmp.
For some reason SC simply can't load the libs it comes with. This probably indicates some incompatibility with the libs and OS. I think we are going to have to reproduce this issue to understand it.
Is there anyway you can use some other OS? SuSE or RedHat, maybe even a different CentOS system or even windows?
Regards,
Keith
Keith,
From what you said earlier, you package your own libperl.so, and from my earlier strace and the latest with the 32-bit, I see that it is being found.
[root@81377-sanperf scServer3.5.0c]# strace ./snapcreator --version 2>&1 | egrep 'tmp.*libperl'
open("/tmp/pdk-root/8a5466952c718e5e0b84210ae7ff7605/libperl.so", O_RDONLY|O_LARGEFILE) = 3
open("/tmp/pdk-root/8a5466952c718e5e0b84210ae7ff7605/libperl.so", O_RDONLY) = 3
[root@81377-sanperf scServer3.5.0c]# cd ../scServer3.5.0c-64/
[root@81377-sanperf scServer3.5.0c-64]# strace ./snapcreator --version 2>&1 | egrep 'tmp.*libperl'
open("/tmp/pdk-root/990f144bacb50cb035b7702a643c4708/libperl.so", O_RDONLY) = 3
open("/tmp/pdk-root/990f144bacb50cb035b7702a643c4708/libperl.so", O_RDONLY) = 3
For the 32-bit version, I'm not sure why it is looking in /root/bin/perl
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\34c\2059\0\0\0"..., 512) = 512
close(3) = 0
stat64("/root/bin/perl", 0xfff0b440) = -1 ENOENT (No such file or directory)
write(2, "Error: Can't locate libperl.so\nM"..., 199Error: Can't locate libperl.so
As Keith said for some reason libperl.so present in snapcreator is not getting loaded. Could you do a ldd on /tmp/pdk-root/8a5466952c718e5e0b84210ae7ff7605/libperl.so. Some dependencies mite be missing. I just ran snapcreator on CentOs 6.2. It works like a charm.
Regards,
Justin Skariah.
Yep I think Justin is right, something is missing. Just tested CentOS 5 and it worked as well.
Regards,
Keith
Justin, Keith,
Keith - could one of you do a "yum grouplist" for me? Maybe I don't have a dependent development library installed.
Justin -
Can't ldd the .so as it is not a dynamic executable.
[root@81377-sanperf 990f144bacb50cb035b7702a643c4708]# chmod 755 libperl.so ; ldd libperl.so ; chmod 644 libperl.so
not a dynamic executable
Hi Jim,
I am running CentOS 5.3, here is the yum grouplist:
Loaded plugins: fastestmirror
Setting up Group Process
Loading mirror speeds from cached hostfile
* base: ftp.oss.eznetsols.org
* extras: ftp.oss.eznetsols.org
* updates: ftp.oss.eznetsols.org
Installed Groups:
Administration Tools
Dialup Networking Support
Editors
FTP Server
GNOME Desktop Environment
Graphical Internet
Graphics
Legacy Network Server
Mail Server
MySQL Database
Network Servers
Office/Productivity
Printing Support
Server Configuration Tools
System Tools
Web Server
X Window System
Yum Utilities
Available Groups:
Authoring and Publishing
Base
Beagle
Cluster Storage
Clustering
DNS Name Server
Development Libraries
Development Tools
Emacs
Engineering and Scientific
FreeNX and NX
GNOME Software Development
Games and Entertainment
Horde
Java
Java Development
KDE (K Desktop Environment)
KDE Software Development
KVM
Legacy Software Development
Legacy Software Support
Mono
News Server
OpenFabrics Enterprise Distribution
PostgreSQL Database
Ruby
Sound and Video
Text-based Internet
Tomboy
Virtualization
Windows File Server
X Software Development
XFCE-4.4
I am guessing Development tool or Development libraries are missing. There is simply some libraries that arent available on your machine.
Regards,
Keith
I've started add a couple from your list that I did not have. So far, no joy. My RedHat 5.3 is more restrictive that your list and the 64-bit works without issue. I wonder what is in CentOS 5.7 that is giving me grief.
"runs without issue" = doesn't panic when no params are given.
This problem is very strage we have never seen this. SC runs on 1000s of systems and a lot are linux and we have never seen this. We also cant reproduce it. We have tried CentOS 5.3 (works) and CentOS 6.2 (works). I can install 5.7 but wont get to it until the weekend, maybe 5.7 has some bugs and we can reproduce it, or something is missing (more likely the case).
Why cant you install SC on some other system? I dont understand why it has to be 5.7 and this particular system, this is just for testing so anything will do. we just need a server that can talk to vCD and vCenter, that is it.
Regards,
Keith
I found out that the template that I was using for CentOS had a noexec /tmp partition. snapcreator runs now.
Hi Jim,
This is great news! I was about to test CentOS 5.7 to reproduce issue but I
guess I will save myself that effort
Please let us know if you have any other questions and if you get vCD
backup/restore working.
Regards,
Keith