Archive

Archive for September, 2011

Error extras/ata_id/ata_id.c:42:23: fatal error: linux/bsg.h: No such file or directory when compile LFS udev-166

September 21st, 2011 1 comment

For “Linux From Scratch – Version 6.8″, on part “6.60. Udev-166″, after configuration on udev, we need compile the package using make, but later, I met the error message like this:

“extras/ata_id/ata_id.c:42:23: fatal error: linux/bsg.h: No such file or directory”

After checking line 42 of ata_id.c under extras/ata_id of udev-166′s source file, I can see that:

“#include <linux/bsg.h>”

As there’s no bsg.h under $LFS/usr/include/linux, so I was sure that this error was caused by C header file loss. Checking with:
root:/sources/udev-166# /lib/libc.so.6
I can see that Glibc was 2.13, and GCC was 4.5.2:


GNU C Library stable release version 2.13, by Roland McGrath et al.
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.5.2.
Compiled on a Linux 2.6.22 system on 2011-09-04.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.

After some searching work on google, I can conclude that this was caused by GCC version. I was not going to rebuilt gcc for this, so I tried get this header file and put it under $LFS/usr/include/linux/bsg.h. You can go to http://lxr.free-electrons.com/source/include/linux/bsg.h?v=2.6.25 to download the header file.

After copy & paster & chmod, I ran make again, and it succeeded.

Categories: Kernel, Linux Tags:

Relationship between san’s HA DA FA RA WWN ZONE

September 15th, 2011 2 comments

Here’s the image(Thanks to Peter ):

 

EMC Symmetrix connectivity to a host in a switched fabric logical and physical architecture

Here’s another image of SAN architecture of EMC symmetrix arrays:

Or you may want to download the doc one:
Logicalandphysicalsanconnectivity.doc (1)

Categories: Hardware, Storage Tags:

Want your ldap password never expired? Here goes the howto

September 6th, 2011 2 comments

First, let’s check when your password will expire using ldapsearch:
root on testserver:/tmp # ldapsearch -D cn=”Directory Manager” -h ldap.testserver.com -b ou=people,dc=testserver,dc=com uid=liandy passwordexpirationtime
Enter bind password:
version: 1
dn: uid=liandy,ou=people,dc=testserver,dc=com
passwordexpirationtime: 20111005230540Z

ldapsearch -D “cn=’Directory Manager’” -h ldap.testserver.com -b ou=people,dc=testserver,dc=com uid=liandy passwordexpirationtime #this should work also
Now, let’s create a file named passwd.dn with content:
dn:uid=liandy,ou=people,dc=testserver,dc=com
changetype:modify
replace:passwordexpirationtime
passwordexpirationtime:20120612135450Z
And the last step is to change the expiration time using ldapmodify:
root on testserver:/tmp # ldapmodify -D cn=”Directory Manager” -h ldap.testserver.com -f passwd.dn
Enter bind password:
modifying entry uid=liandy,ou=people,dc=testserver,dc=com
That’s all the steps you need to change ldap password expiration time. To verify this has taken effect, fire ldapsearch to show expiration time just as the first step:
root on testserver:/tmp # ldapsearch -D cn=”Directory Manager” -h ldap.testserver.com -b ou=people,dc=testserver,dc=com uid=liandy passwordexpirationtime
Enter bind password:
version: 1
dn: uid=liandy,ou=people,dc=testserver,dc=com
passwordexpirationtime: 20120612135450Z
So you can see the ldap expiration time has been extended to 20120612.
NB:
If you want to change password for liandy on ldap.testserver.com, do the following:
Create a file named passwd2.dn with content:
In passwd2.dn:
dn:uid=liandy,ou=people,dc=testserver,dc=com
changetype:modify
replace:userPassword
userPassword:EnterYourPassword

Then run ldapmodify to modify the password:
ldapmodify -D cn=”Directory Manager” -h ldap.testserver.com -f passwd2.dn

If you want to modify directory manager’s password, here goes the step:
Create a file passwd3.dn with content:
dn: cn=config
changetype: modify
replace: nsslapd-rootpw
nsslapd-rootpw: EnterYourPassword

Then run ldapmodify to change the password:
ldapmodify -D “cn=directory manager” -h ldap.testserver.com -f passwd3.dn

If you forget the password for directory manager, you then need firstly find dse.ldap under ldap/slapd-Portal1/config, then encrypt your password, then modify nsslapd-rootpw.

Categories: Linux, Unix Tags: