- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Large File systems in Bash Shell
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
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
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
тАО05-31-2005 09:23 PM
тАО05-31-2005 09:23 PM
Large File systems in Bash Shell
My application is residing in a HP UX 9000/800 Superdome Machine. I am using a bash shell ( my application requires it ) and some time I will have to manupilate files more than 2 GB of size . In bash shell I am not able to do it . It is showing the error " File too large".
The disk supports large file system and in SH shell I am able to do . Is there any way to manipulate large files in Bash shell .
Regards
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 09:33 PM
тАО05-31-2005 09:33 PM
Re: Large File systems in Bash Shell
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 09:39 PM
тАО05-31-2005 09:39 PM
Re: Large File systems in Bash Shell
Could this be a ulimit problem?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1117618489969+28353475&threadId=114562
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 09:58 PM
тАО05-31-2005 09:58 PM
Re: Large File systems in Bash Shell
So I feel it has something to do with shells.
Regards
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 10:03 PM
тАО05-31-2005 10:03 PM
Re: Large File systems in Bash Shell
1. Run "fsadm [-F vxfs] path_of_mount_pt" on the filesystem where this command is giving error. If the o/p is nolargefiles, then you would need to enable largefile support to this filesystem:
# fsadm -F vxfs -o largefiles path_of_mount_pt
2. Issue "ulimit" command, and check the o/p, if o/p normally is unlimited, if not, then set it to unlimited:
# ulimit -Hf unlimited
# ulimit -f unlimited
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 10:07 PM
тАО05-31-2005 10:07 PM
Re: Large File systems in Bash Shell
OPTIONS
-a All current limits are reported.
-c The maximum size of core files created.
-d The maximum size of a process's data segment.
-f The maximum size of files created by the shell. (This is the default option)
-H Change and report the hard limit associated with a resource.
-l The maximum size that may be locked into memory.
-m The maximum resident set size.
-n The maximum number of open file descriptors.
-p The pipe buffer size.
-s The maximum stack size.
-S Change and report the soft limit associated with a resource.
-t The maximum amount of cpu time in seconds.
-u The maximum number of processes available to a single user.
-v The maximum amount of virtual memory available to the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 11:41 PM
тАО05-31-2005 11:41 PM
Re: Large File systems in Bash Shell
core file size (blocks) 2097151
data seg size (kbytes) 1048576
file size (blocks) unlimited
max memory size (kbytes) unlimited
open files 1200
pipe size (512 bytes) 16
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 1001
virtual memory (kbytes) unlimited
My concern is if we were able to do file manipulation in SH shell , then why we are not able to do it in BASH Shell. Does bash have any limit for the max data size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 04:30 PM
тАО06-01-2005 04:30 PM
Re: Large File systems in Bash Shell
Did u check the ulimit -a output by changing your current shell to bash shell?
Within the script, try increasing ulimit...
#!/bin/bash
ulimit -Hf unlimited
ulimit -f unlimited
..
..
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 05:42 PM
тАО06-01-2005 05:42 PM
Re: Large File systems in Bash Shell
BASH
bash-2.05$ ulimit -a
core file size (blocks) 2097151
data seg size (kbytes) 1048576
file size (blocks) unlimited
max memory size (kbytes) unlimited
open files 1200
pipe size (512 bytes) 16
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 1001
virtual memory (kbytes) unlimited
SH Shell
ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 8192
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 1200
As you can see it is some setting issue with Bash shell , but could not figure out which one....
Hope you have some idea of what is happening ?
Regards
Kiran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 07:57 PM
тАО06-01-2005 07:57 PM
Re: Large File systems in Bash Shell
I've been working on it for long, and at last i am able to get something. Here 'getrlimit' & 'setrlimit' might come into picture.
man getrlimit
Do you have gcc installed? If no, download it from http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-3.4.3/
A small c program will be able to get RLIMIT_FSIZE parameter...
#include
#include
#include
#include
int main(void)
{
struct rlimit rlimit_cur;
getrlimit(RLIMIT_FSIZE, &rlimit_cur);
printf("cur: %lu max: %lu\n", rlimit_cur.rlim_cur, rlimit_cur.rlim_max);
return(0);
}
In my system the o/p was:
cur: 2147483647 max: 2147483647
Now this is equal to 2 GB.
You might have to increase this limit! (I am not very sure)