LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-18-2013, 04:40 PM   #1
waslit
LQ Newbie
 
Registered: Sep 2003
Location: Ireland
Posts: 23

Rep: Reputation: 0
Solaris 10 - ZSH displays a . when pwd on nfs mount


To give you a base understanding firsly the client system is running :
SunOS sacqtzl16 5.10 Generic_137112-02 i86pc i386
the host is running :
CentOS release 5.4 (Final)

The cent host is providing a few NFS shares to the solaris box. The share are mounted in a fomat of

host:/zldata01 - /v/host/zldata01 nfs 0 yes vers=3,proto=tcp
host:/zldata02 - /v/host/zldata02 nfs 0 yes vers=3,proto=tcp
host:/zldata03 - /v/host/zldata03 nfs 0 yes vers=3,proto=tcp
host:/zldata04 - /v/host/zldata04 nfs - yes vers=3,proto=t

now those folders are then symlinks to something say /u/data1 -----> /v/host/zldata01
/u/data2 -----> /v/host/zldata02
/u/data3 -----> /v/host/zldata03
/u/data4 -----> /v/host/zldata04

The issue that I'm seeing which is very weird. Is when I go into folder /u/data4/folder/ and run #pwd it returns with #. instead of the full path. This weirdness is only present when using the zsh shell, and appears in both the symlink and the absolute path. And whats even worse is its only on data04. All the others work just as expected. Some things I have noticed is if I run a truss -o test.txt pwd it actually returns the correct path and not a dot. My collegue ran a truss and managed to get an error or 79 which I found out is a overrun of the buffer declaring a variable. Usually when there is a large file involved. Except this is a directory not a file and then name scheme is pretty simple. All the mounts are the same. The underlying file system is xfs. There are no weird errors in messages and we havent rebooted or anything. I have been unable to reproduce this in a lab enviroment either.
 
Old 03-19-2013, 09:01 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,035

Rep: Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338
you can probably try /bin/pwd
check if there is a function, an alias or something unusual what will make the trick.
 
Old 03-19-2013, 09:10 AM   #3
waslit
LQ Newbie
 
Registered: Sep 2003
Location: Ireland
Posts: 23

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
you can probably try /bin/pwd
check if there is a function, an alias or something unusual what will make the trick.
Very weird but yes that did actually work =) it produced an output. However there is no alias set for pwd??.... hmm very strange and even still why only on 1 folder.
 
Old 03-19-2013, 09:20 AM   #4
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,035

Rep: Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338
by default pwd is a shell builtin, but also a binary executable exists (that is /bin/pwd). you can check it with the command type pwd. The builtin has some options and also can be ruled by environment variables.
Quote:
pwd [ -rLP ]
Print the absolute pathname of the current working directory. If
the -r or the -P flag is specified, or the CHASE_LINKS option is
set and the -L flag is not given, the printed path will not
contain symbolic links.
 
Old 03-19-2013, 09:39 AM   #5
waslit
LQ Newbie
 
Registered: Sep 2003
Location: Ireland
Posts: 23

Original Poster
Rep: Reputation: 0
So its the pwd shell version from zsh thats the issue. I'll have to investigate more to find out why. so when I run a truss on the command which is it running? The shell or the binary? I assume the binary since running truss pwd did produce an output as expected. That also isolates it even further to zsh since auto complete does not appear to work. on the folders inside.
 
Old 03-19-2013, 09:53 AM   #6
waslit
LQ Newbie
 
Registered: Sep 2003
Location: Ireland
Posts: 23

Original Poster
Rep: Reputation: 0
Okay very interestingly I have found a coloration with what you mentioned and the buffer over flow my colleague found. Which it all makes sense now. ZSH is a 32bit version and the xfs file system installed is inode64. So it now makes sense that ZSH built in shell command is erroring out when trying to do a listing of the current directory. the next question tho is what to do lol. don't wanna redo everything. So I'll have to figure out something.
 
Old 03-19-2013, 09:57 AM   #7
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,035

Rep: Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338
you need to check the beginning of the output (of truss). you need to find /bin/pwd.
probably you can try truss -o <file> zsh -c pwd to use the builtin
 
Old 03-19-2013, 09:59 AM   #8
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,035

Rep: Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338Reputation: 1338
probably you can try an alias or function to remap to /bin/pwd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mount solaris NFS share in RHEL 4 ZAMO Linux - Enterprise 2 04-28-2010 08:55 PM
trouble with nfs mount on Solaris hak_uc Linux - Networking 2 10-26-2006 01:40 PM
Some useful info on jumpstart and NFS mount of solaris CD's neo77777 Solaris / OpenSolaris 1 09-10-2003 06:13 PM
nfs mount of solaris drive starkeylabs Linux - Networking 4 06-20-2003 11:16 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration