New to AIX need help Installing/Upgrading Samba on AIX 7.1?


 
Thread Tools Search this Thread
Operating Systems AIX New to AIX need help Installing/Upgrading Samba on AIX 7.1?
# 1  
Old 02-14-2014
Hammer & Screwdriver New to AIX need help Installing/Upgrading Samba on AIX 7.1?

Hello,

I am trying to update Samba on my AIX 7.1 system as there is an issues with it, the smbd process coredumps and I have had no luck figuring it out why.

My approach is to try to re-install a newer samba and I have found the latest 3.x package for samba in ppc.rpm format at perlz.org

Looking at my current system, it has 3.6 installed. It seems that this was not installed using RPM as I don't see samba in the list when I run "rpm -qa".

However, I did find it using "lslpp -L | grep "samba" returns..

Code:
pware53.samba.rte

So I think at some point installed using installp??

Judging from the "pware53" name I think it was obtained from an IBM AIX repository at pware.hvcc.edu (which no longer works).

So my goal is to first uninstall the existing samba package (smbd, nmbd, winbindd) and installing the latest 3.6.22 from perlz.org.

My issue is, I have no idea how to install the package (noob to aix/unix) and i'd like to do this as clean as possible.

As a test, I downloaded all the ppc.rpm packages below and placed them in one folder..

Code:
samba-3.6.22-1.aix7.1.ppc.rpm
samba-client-3.6.22-1.aix7.1.ppc.rpm
samba-common-3.6.22-1.aix7.1.ppc.rpm
samba-doc-3.6.22-1.aix7.1.ppc.rpm
samba-domainjoin-gui-3.6.22-1.aix7.1.ppc.rpm
samba-swat-3.6.22-1.aix7.1.ppc.rpm
samba-winbind-3.6.22-1.aix7.1.ppc.rpm
samba-winbind-clients-3.6.22-1.aix7.1.ppc.rpm
samba-winbind-devel-3.6.22-1.aix7.1.ppc.rpm
samba-winbind-krb5-locator-3.6.22-1.aix7.1.ppc.rpm
libsmbclient-3.6.22-1.aix7.1.ppc.rpm
libsmbclient-devel-3.6.22-1.aix7.1.ppc.rpm

When I ran rpm -ivh *.rpm I got a bunch of failed dependencies.

My issues right now are...

Should I be installing the ppc.rpm package or the src.rpm package? If I download all the dependencies and run ipm -ivh *.rpm will that install the package? What happens to things you usually have to pass in when building the package such as /configure -- /make etc.. (such as in ubuntu).

How do I properly uninstall/clean the current pware53 samba/nmbd/winbindd installation so I don't end up with two different versions?

Thank you.

Moderator's Comments:
Mod Comment edit by bakunin: moved the thread over to the AIX forum. Perhaps there you can be helped better.

Last edited by Don Cragun; 02-17-2014 at 02:53 PM.. Reason: Add CODE tags.
# 2  
Old 02-17-2014
Quote:
Originally Posted by c3rb3rus
However, I did find it using "lslpp -L | grep "samba" returns..

pware53.samba.rte

So I think at some point installed using installp??
Yes, it looks like this. Issue "lslpp" with the "-h" (history) switch to get a date when it was installed (just in case you are interested).

Quote:
Originally Posted by c3rb3rus
So my goal is to first uninstall the existing samba package (smbd, nmbd, winbindd) and installing the latest 3.6.22 from perlz.org.

My issue is, I have no idea how to install the package (noob to aix/unix) and i'd like to do this as clean as possible.
(btw: i suggest you do a "man smit", because this - using SMIT - is usually the easiest and fastest way for a non-AIX admin to get things done in AIX)

The easiest way is to do a "smitty remove" from the commandline. This brings up SMIT (system management interface tool) with the "removal of software" screen already preselected. All the fields marked with a "+" can be expanded with "PF4" (on some terminals "ESC"+"4" instead). Do this and a list of isntalled packages comes up from which you can select. Select more than one using "PF7" (ESC+7), then press ENTER to return to this screen. Yes/No fields can be selected using the TAB key. Finally press ENTER to do it.

TIP: set the "preview only"-field to "yes" to just simulate removal. All the check will be done normally and give errors in case something would go wrong. Once feeling safe change "preview" to "no" and proceed.

The Perzl software is very fine-grained and hence contains many dependencies. Read Michael Perzls solution to this. The real problem behind this is that IBM still uses an very very old (v3) rpm binary. rpm-v4 would be able to deal with software repositories.

Finally: install the *src* packages only if you plan on compiling new packages. Otherwise take the binary packages and install these. Compilation/configuration/etc. is already done and you do not have to bother with these.

I hope this helps.

bakunin

Last edited by bakunin; 02-17-2014 at 08:00 AM..
# 3  
Old 02-17-2014
Thanks bakunin,

I did notice the dependency hell on perilz which prevented me from getting Samba installed on the AIX OS, I was finding that it needed dependency A which needed dependency B, and so on the chain was huge.

I will look over the link you showed as it seems to be the answer to my dependency issues.

---------- Post updated at 07:36 AM ---------- Previous update was at 07:35 AM ----------

I was also succesful at removing Samba, however I did notice that using..

lssrc -g Samba config. remained behind, showing the samba group (nmbd, winbindd, and smbd services). perhaps the previous admin manually created the service group thus the removal did not take care of it.
# 4  
Old 02-17-2014
Quote:
Originally Posted by c3rb3rus
I did notice the dependency hell on perilz which prevented me from getting Samba installed on the AIX OS, I was finding that it needed dependency A which needed dependency B, and so on the chain was huge.
Michael Perzl is probably the most structured worker i ever came across. Yes, that means that "packageA" really contains only A and not a iota of B, which might create a dependency to B, but you will come to appreciate the robustness and dependability his packages offer. Something unexpected practically never happens. This is arguably the best site for third-party AIX software and the packages are way better than the rpm-packages IBM itself offers.

Quote:
Originally Posted by c3rb3rus
I was also succesful at removing Samba, however I did notice that using..

lssrc -g Samba config. remained behind, showing the samba group (nmbd, winbindd, and smbd services). perhaps the previous admin manually created the service group thus the removal did not take care of it.
hmm....

"lssrc" ist listing running ("active") and stopped ("inoperative") subsystems (~=daemons), not files. It is the interface to the "System Resource Controller" (SRC), a sort-of super-daemon. You will find some information here if you search for it.

It might well be that the previous admin created some users/groups himself. There are some easy commands to find out what belongs to where:

"lslpp -l" lists all installed packages in a long list

"lslpp -f <package-name>" lists all the files/directories belonging to the package

"lslpp -w <file>" lists the package a file belongs to (if any)

You can even "take apart" lpp-packages and look into their pre-/post-install-scripts, which would be responsible for creating users, groups and the like.

I hope this helps.

bakunin
# 5  
Old 02-17-2014
This is starting to all make sense now Smilie

I am making progress, I have downloaded the "binary" version of the software from perlz.org and grabbed the dependency list and downloaded all using wget as described in the FAQ.


I put all the dependencies and the binary file I am trying to install (samba-3.6.22-1.aix7.1.ppc.rpm) in one directory and ran "rpm -Uvh *.rpm" and it returned with..

Code:
dr-host# rpm -Uvh *.rpm
error: failed dependencies:
        libX11.a(shr4.o) is needed by cairo-1.12.12-1
        libXext.a(shr.o) is needed by cairo-1.12.12-1
        libX11.a(shr4.o) is needed by cairo-1.12.14-1
        libXext.a(shr.o) is needed by cairo-1.12.14-1
        libX11.a(shr4.o) is needed by gtk2-2.20.1-2
        libXext.a(shr.o) is needed by gtk2-2.20.1-2
        libX11.a(shr4.o) is needed by libXcursor-1.1.14-1
        pkg-config is needed by libXcursor-devel-1.1.14-1
        libX11.a(shr4.o) is needed by libXrender-0.9.8-1
        libX11.a(shr4.o) is needed by pango-1.24.5-1

From what I've gathered this particular library is from AIX's X11 which I do not have installed as we don't use the GUI.

Code:
dr-host# lslpp -L | grep X11.base.rte
dr-host#

This returns nothing, so I need this installed.. I could not find the libraries or perlz.org so I assume this has to come directly from IBM.

Is there a way to install this using SUMA (to remotely get it from IBM web as I don't have CDs?).

My oslevel -r is 7100-01 and oslevel -g shows "Actual Level = 7.1.1.15".

Installing the X11 filesets, will this enable the GUI or just make the files available? This would be unwanted results as we try to keep the system resources to a minimum so things like X11 GUI not used.

Thanks for your help.
Moderator's Comments:
Mod Comment Please use CODE tags when showing sample input, sample output, code segments.

Last edited by Don Cragun; 02-17-2014 at 02:56 PM.. Reason: Add CODE tags.
# 6  
Old 02-18-2014
@c3rb3rus

Hi

its very easy to install and make it work. I did installed on AIX 7.1 LPAR like few months back. I don't think mine was a rpm package.

i got "samba.tar" from IBM. you can call IBM in case if you've support. and if you can google it for instructions. its very simple to setup and there are only few config files to update/change.

i will try to find the links for you.


Thanks,
# 7  
Old 02-19-2014
I finally got it installed using my original method.. thank you bakunin your pointers were useful in making it a success, especially dealing with the many dependencies from perzl.org.

The problem was with my AIX OS, I accidently copied the content of /etc from another machine to this box and things like the ODM and other various errors were popping all over the place.

It was good practice as I've never installed AIX, pretty trivial with preserve mode to only re-install rootvg.

Now I am battling samba 3.6.22, when I try to start winbindd, smbd and nmbd I get..

Code:
Could not fetch our SID - did we join?

So my first though was to join the AIX server to AD, but it is not working..

Code:
ads_connect: no logon servers
Join to domain is not valid: no logon servers

My /etc/krb5/krb5.conf is setup correctly pretty sure as I can kinit and get a ticket and also login via SSH using AD account (sshd_config set to use Kerberos as well)..

So why I am getting the above error is beyond me right now..

I also tired..

Code:
net rpc testjoin
Unable to find a suitable server for domain WORKGROUP
Join to domain 'WORKGROUP' is not valid: NT_STATUS_UNSUCCESSFUL

My domain is not WORKGROUP, so confused where its getting that from?

In smb.conf I got..

Code:
workgroup = MYDOMAIN
realm = FQDN
netbios name = my-aix-hostname

More troubleshooting, this time with smbclient..

smbclient -U AD-USER-ID -L DC-IP

I am able to get list of shares on the WIN2008R2 box, however at the bottom I also see..

Code:
session request to 172.16.4.2 failed (called name not present)
session request to 172 failed (called name not present)
session request to *SMBSERVER failed (called name not present)
NetBIOS over TCP disabled -- no workgroup available


Last edited by c3rb3rus; 02-19-2014 at 12:35 AM.. Reason: mentions
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. AIX

Upgrading to AIX 7 vs migrating

Hi all, I have this weird notion that upgrading the TL does not cause the machine to wipe, but upgrading a major version (from aix 6 to 7) means it's actually a fresh install and will wipe the date and i have to install the software again (TSM server, for instance). Trying to google it, i came... (3 Replies)
Discussion started by: tde3000
3 Replies

3. AIX

Regarding Upgrading RAM in AIX 6.1

Hi Folks, Currently we are having the below configuration in one of our AIX 6.1 server. RAM:- 8 GB Paging space :- 19 GB CPU processor:- 1 CPU type: 64 bit But we would like to upgrade the configuration to below to improve the system performance and resolve some memory issues. ... (11 Replies)
Discussion started by: sumanmca2006
11 Replies

4. AIX

Upgrading from aix 5.3 to ?

Hey guys, since AIX 5.3 reaches EOS on april 2012, I really need to update my systems asap. Any experience on upgrading directly to 7.1, with sap/db2/oracle? could do fresh installs and import my sap/db vgs, but this would be a lot of work cheers Funksen (4 Replies)
Discussion started by: funksen
4 Replies

5. AIX

Upgrading from native MPIO to SDDPCM AIX 6.1

We have AIX 6.1 system attached to SAN disks (DS4700 and DS8100) thru SVC. Initially when the system was I forgot to install sddpcm drivers. and wanted to know how can i go with the installation of the sddpcm drivers. My understandin going thru the manual ... (3 Replies)
Discussion started by: mk8570
3 Replies

6. AIX

Upgrading AIX from 5.3 to 6.1

Hi, I am having 2 Hard disk one for os and another for data,I would like to know for Upgrading AIX 5.3 to 6.1,wheather I have to varry off datavg while upgrading, or any other files needs to be backup. Please suggest Regards, Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies

7. AIX

Upgrading AIX 5.2 to AIX 6.1 - GCC compatibility

Hi All, We are in the processing of upgrading our AIX server OS from 5.2.0.0 to 6.1. And we have a set of highly critical running C applications in AIX box. I have a question like whether this upgradation of OS will affect any C code compilation and C runtime enviornment... how does AIX 6.1... (1 Reply)
Discussion started by: karthikc
1 Replies

8. AIX

Using SAMBA in AIX 5.3

Please help, I'm wicked... :confused: I'm trying to get Samba to work on an IBM pseries machine (AIX 5.3) to provide access to the server for a user to retrieve reports from her WinXP desktop. I've made the proper entires in the smb.conf file and tried runing the smbpasswd command to add the user... (4 Replies)
Discussion started by: trandall
4 Replies

9. AIX

Installing Samba on AIX 5.3

Hello, I need assistance installing Samba on AIX 5.3 TL06. Smitty Install produces the following error message: Command: failed stdout: yes stderr: no Before command completion, additional instructions may appear below. geninstall -I "a -cgNQqwXY -J" -Z -d... (5 Replies)
Discussion started by: tgray71
5 Replies

10. AIX

Upgrading AIX Unix

Hi all, I've got a question about an OS upgrade. I'm planning to do a upgrade from AIX UNIX 4.3.2 to 4.3.3 in a few weeks. I haven't got that much information. Could someone give me some general tips or hints, things I should think of before? Things I should know, or general errors. I know... (9 Replies)
Discussion started by: Erik Rooijmans
9 Replies
Login or Register to Ask a Question