- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to make the size of kernel configurable parame...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 02:20 AM
02-11-2002 02:20 AM
I am porting my code from Solaris to HP-UX 11.0. While compiling one of my components i am getting error as follows
"/usr/ccs/bin/ld: Write failed in sst_mgr
/usr/ccs/bin/ld: Invalid argument." Where sst_mgr is my component name.
I think this is something related to Space problem. As i got enough disk space,i want to make all the Kernel configurable parametre sizes unlimited.
So can anybody tell me what the command i have to use to do this in HP-UX 11.0.
Regards
Vamsi.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 03:28 AM
02-11-2002 03:28 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Look at ulimit
From man sh-posix
ulimit [-HSacdfnst] [limit]
Set or display a resource limit. The limit for a specified resource is set when limit is specified. The value of limit can be a number in the unit specified with each resource, or the keyword unlimited.
The -H and -S flags specify whether the hard limit or the soft limit is set for the given resource. A hard limit cannot be increased once it is set. A soft limit can be increased up to the hard limit. If neither -H nor -S is specified, the limit applies to both. The current resource limit is printed when limit is omitted. In this case, the soft limit is printed unless -H is specified. When more than one resource is specified, the limit name and unit are printed before the value.
If no option is given, -f is assumed.
-a List all of the current resource limits.
-c The number of 512-byte blocks in the size of core dumps.
-d The number of kilobytes in the size of the data area.
-f The number of 512-byte blocks in files written by child processes (files of any size can be read).
-n The number of file descriptors.
-s The number of kilobytes in the size of the stack area.
-t The number of seconds to be used by each process.
Use ulimit -a to see
then
ulimit unlimited files
or other value
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 04:38 AM
02-11-2002 04:38 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Thank you very much for your response. Still i got some clarifications. I am giving the output of "ulimit -a" on ,my root login.
=========================================
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 2015464
stack(kbytes) 81612
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 200
=========================================
So can you please advise me whether should i make the sizes of data,stack,coredump and nofiles should be unlimited?? If yes can i do like the following in my root login?
ulimit unlimited data
Do you think that the error i am getting can be resolved by doing this?? Am i going in the right way?? Need your valuable advise.
Regards
Vamsi.
Regards
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 04:49 AM
02-11-2002 04:49 AM
Re: How to make the size of kernel configurable parametres to unlimited.
If you mean "unlimited" as meaning infinity or some very large number, and applying it to all kernel configurable parameters, then the answer is NO. Most kernel parameters have a direct relationship with how much memory they will consume. For example, semaphores, although I haven't spent any time caring about how much memory they consume, you can not set it's value to infinity, or even to 2 billon semaphores. Even the term "unlimited" has a limit, as seen in "ulimit -a".
I think you can find the info here, but I can't verify it because docs.hp.com is down:
http://docs.hp.com/hpux/onlinedocs/B2355-90701/B2355-90701_top.html
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 05:06 AM
02-11-2002 05:06 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Your values look ok.
Check whether quotas are enabled.
You may be over Disc Quota
quotacheck -a
look at kmtune -l for file parameters
Also look at /var/adm/syslog/syslog.log for faults
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 05:37 AM
02-11-2002 05:37 AM
Re: How to make the size of kernel configurable parametres to unlimited.
I think i am getting the error because of space only. I had gone through the file "/var/adm/syslog/syslog.log". But since i don't have any knowledge on System Administration i could not understand the contents except that it has given some write error at the end of the file. I am sending you this file.Can you please go through it?? I am troubling you a lot but this is very high priority task for me. Also i am reminding you the problem i am getting. While compiling one particular component in my project i am getting an error as follows.
"/usr/ccs/bin/ld Write Failed in sst_mgr
/usr/ccs/bin/ld Invalid Argument"
Where sst_mgr is my Component name.
I hop you understood my problem.
Regards
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 07:47 AM
02-11-2002 07:47 AM
Re: How to make the size of kernel configurable parametres to unlimited.
From the messages you are trying to write to a read only device such as a CD rom.
please supply
1)bdf
2)ioscan -nf
3)swlist -l fileset -a title -a revision -a state
4)uname -a
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 07:50 AM
02-11-2002 07:50 AM
Re: How to make the size of kernel configurable parametres to unlimited.
You may have a bad connection somewhere.
What is the output of the super user command
dmesg.
Check all cables and terminators.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 11:39 PM
02-11-2002 11:39 PM
Re: How to make the size of kernel configurable parametres to unlimited.
Is it possible that the output file already exists and you cannot write to it with your login.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 02:27 AM
02-12-2002 02:27 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Sorry for the late reply.Now i am sending all the details asked by you.Please go through them.
I included all the details in one single document(Which is attached) called Outputs_Of_RequiredCommands.txt with proper headings inbetween like
"OUTPUT OF xxx COMMAND ON MY ROOT LOGIN".
So there won't be any confusion to you.
Please let me know if you want any other details.And once again thank you very much for the trouble you are taking for me.
Regards
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 02:49 AM
02-12-2002 02:49 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Did you use quotacheck as I asked.
Why am I receiving the following error messages
from my C++ compiler?
/usr/ccs/bin/ld: write failed in executable
This problem has been known to be caused by having disk quotas set too low.
Increase any quotas.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 05:25 AM
02-12-2002 05:25 AM
Re: How to make the size of kernel configurable parametres to unlimited.
You asked me to check the quotacheck. Actually my login user name is "elt" and it is created under a directory "eltbak".One complete disk is allocated to eltbak. So i am giving the output of "df -k eltbak" to you.
/eltbak (/dev/dsk/c1t1d0):
8618172 total allocated Kb. 8510436 free allocated Kb
107736 used allocated Kb
1 % allocation used.
So i don't think there is any problem of disk space as it is showing 99% is free for me. But one thing i observed is, i tried giving the command "quotacheck -a" both on my login and root login also. But no output is specified.Is this because of some problem with my system?
You also told me another thing like -
"From the messages you are trying to write to a read only device such as a CD rom". What exactly this mean???
If you still feel that the space is the only problem then what else shouild i check??
Regards
Vamsi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 10:27 PM
02-12-2002 10:27 PM
Re: How to make the size of kernel configurable parametres to unlimited.
From the syslog messages, at the end of the file, I feel like the disk on which you are trying to write had been corrupted.
Or it even might be the case that a particular sector on the disk is damaged and hence ur file cannot be written on to the disk.
Try running fsck on the filesystem on which you are getting the error. For this you need to umount the filesystem first.
I donot exactly if there is any command to fix the sector errors on the disk but there should be definitely some alternative.
Steve,
Am I right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 11:55 PM
02-12-2002 11:55 PM
Re: How to make the size of kernel configurable parametres to unlimited.
quotacheck -a looks ok.
If you have a full disk available then we have indeed to consider corruption or write difficulties.
1)As the user can you write another file to the disk.
2)Does your user have write permission to the output file.
If 1 and 2 are yes then
unmount the disk
fsck it with -m
-m Perform a sanity check only. fsck will return 0 if the file system is suitable for mounting. If the file system needs additional checking, the return code is 32. If the file system is mounted, the return code is 33. Error codes larger than 33 indicate that the file system is badly damaged.
To fix
example
fsck -F vxfs -o full /dev/vg02/rlvol2
* *
vxfs or device name
hfs
Also check for the output file approaching 2gb and no largefiles being available on the disc.
You can try renaming the current output file and starting again then if there is a bad sector it is occupied by the old copy.
Also take a backup of this disc asap to preserve your current data.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 12:22 AM
02-13-2002 12:22 AM
Re: How to make the size of kernel configurable parametres to unlimited.
1)check that these patches are on your box.
hp-ux_patches/s700_800/11.X/PHKL_18543
hp-ux_patches/s700_800/11.X/PHCO_23651
hp-ux_patches/s700_800/11.X/PHCO_21187
hp-ux_patches/s700_800/11.X/PHKL_25188
hp-ux_patches/s700_800/11.X/PHKL_24027
hp-ux_patches/s700_800/11.X/PHKL_20016
hp-ux_patches/s700_800/11.X/PHKL_22589
hp-ux_patches/s700_800/11.X/PHKL_24117
2)post output of
swlist -l fileset -a title -a revision -a state
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 01:34 AM
02-13-2002 01:34 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Just now i received all the three new messages.I will try all your options and let you know the results within an hour or two.
Thank you very much for the efforts given by you.
Regards
Vamsi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 03:16 AM
02-13-2002 03:16 AM
Re: How to make the size of kernel configurable parametres to unlimited.
1.I unmounted my disk "/eltbak" then verfied the file system. The output of
"fsck -m /dev/dsk/c1t1d0" is
vxfs fsck: sanity check: /dev/dsk/c1t1d0 OK.
Means there is no curruption in my File system. Steve any chance of corruption in a specific sector of disk?? How to find this one.
2.I am sending you the output of the command
"swlist -l fileset -a title -a revision -a state" through attachment.
3.I verified the patches and the following patches are NOT in my system.
a)hp-ux_patches/s700_800/11.X/PHCO_23651
b)hp-ux_patches/s700_800/11.X/PHKL_25188
c)hp-ux_patches/s700_800/11.X/PHKL_24027
d)hp-ux_patches/s700_800/11.X/PHKL_22589
e)hp-ux_patches/s700_800/11.X/PHKL_24117
Will it make any difference as i don't have the above patches.
And regarding the questions u asked in the begining like....Can i write another file to the disk and does my user have write permissions to output file...can you please elaborate it.i didn't get the exact meaning.
But now i am getting the feeling that we can solve the problem.Thank you very much steve.
Regards
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 03:31 AM
02-13-2002 03:31 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Do this
1)ll sst_mgr
Put the output visible
2)As user and in the same directory as sst_mgr
do
echo test > test
Does it work.
3)The last 2 of the patches you do not have could help.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 04:52 AM
02-13-2002 04:52 AM
Re: How to make the size of kernel configurable parametres to unlimited.
Just now i verified the output of the following commands and i am getting a feeling that my disk partition is not perfect or there is some problem . Need your comments.
1.Output of :pvdisplay -v /dev/dsk/c1t1d0 is
pvdisplay: Couldn't find the volume group to which physical volume "/dev/dsk/c1t1d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c1t1d0".
Note: Here /dev/dsk/c1t1d0 is the disk (named /eltbak under which my user elt is created)i am using.
2.lvdisplay -v /dev/dsk/c1t1d0
lvdisplay: Couldn't find the volume group to which logical volume "/dev/dsk/c1t1d0" belongs.
lvdisplay: Cannot display logical volume "/dev/dsk/c1t1d0".
Also verify the attached document to find out the outputs of 'vgdisplay -y' and 'ftsmaint ls'
Need your valuable comments on this Steev.
I will send you my output on your last mail soon.
Regards
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 05:09 AM
02-13-2002 05:09 AM
SolutionIt is not in a logical volume
Publish
cat /etc/mnttab
You will see hfs next to the disc
As root run
fsadm -F hfs /dev/???????
for the disc
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 05:40 AM
02-13-2002 05:40 AM
Re: How to make the size of kernel configurable parametres to unlimited.
So after all these discussions what you want to conclude regarding my problem?? And do we have any solution? Irrespective of the problem,Really i am very happy to interact with you. In these few days i learned a lot from you.Thank you very much for your continuos co-operation.
Regards
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 05:50 AM
02-13-2002 05:50 AM
Re: How to make the size of kernel configurable parametres to unlimited.
lets try a bit longer
Attempt to make another file and send me
ll of the output and /etc/mnttab
Your patches are good
Your disc is not in a logical volume.
Maybe you need to unmount it and check the mountpoint permissions.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 07:30 AM
02-13-2002 07:30 AM
Re: How to make the size of kernel configurable parametres to unlimited.
grep -i shmmax *
core-hpux:*range shmmax<=0x10000000000
core-hpux:*range shmmax>=2*1024
core-hpux:shmmax SHMMAX 0X4000000
then edit the core-hpux file to change the maximum allowable range. I've never tried to get an unlimited range, but set it high enough should do the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 10:18 PM
02-13-2002 10:18 PM
Re: How to make the size of kernel configurable parametres to unlimited.
I am sending the required output to you.
Output of ll sst_mgr is:
-rw-rw-rw- 1 elt elt 0 Feb 4 11:32 sst_mgr
If you see i am getting only 0 bytes executable.
Output of /etc/mnttab is attached Output_mnttab.txt. Please verify. Also you asked me to unmount the disk and verify the mount permissions. What are the ideal permissions should i have?? Like should i have all the r,w and x permissions???
I also verified the command
echo test>test under my user and in the sst_mgr directory also and it worked fine.What is in your mind by running this command??
Tell me what happens if the disc is not in a logical volume?? As i told you my rest of the components are working perfectly. And i observed another thing also which i want to share with you. May be this is not logical but still i want to discuss with you. In my component compilation there 32 .c files are invloved. But if i remove 2 specific files which are very big in size 113446 and 43621 then i am getting some compilation errors but not this write failed error. But if i keep any of these files and remove some 10 files and compile i am getting compilation errors + write failed error also. What may be the reason.So if i increase maxdsiz(Current value is 0x7b03a000) will this problem will resolve?
Vamsi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2002 10:53 PM
02-13-2002 10:53 PM
Re: How to make the size of kernel configurable parametres to unlimited.
Thank God..my problem was solved..but because of you only..after u gave me the suggestion saying that my disk is not in logical volums.So i moved my source code to another disk which is in logical volume and it worked out. Thank you ver much.
I want to be in touch with you just as a fre. My mail id is
vamsi_sudhakar@opussoft.com
When ever u r free mail me...
Bye and THANK YOU VERY MUCH FOR YOUR HELP
Vamsi