When transfering file by FTP,
will get a error message "No space left on device/filesize limit exceeded" in AIX 6.1
$ pwd
/home/oracle
$ ftp 192.168.124.62
Connected to 192.168.124.62.
220 192.168.124.62 FTP server (Version 4.2 Thu Dec 16 16:45:49 CST 2010) ready.
Name (192.168.124.62:oracle): oracle
331 Password required for oracle.
Password:
230 User oracle logged in.
ftp > cd /app/soft
250 CWD command successful.
ftp> ls -ltr
200 PORT command successful.
150 Opening data connection for /bin/ls
-rwx------ 1 oracle oinstall 141852 Dec 27 15:18 unzip
-rwx------ 1 oracle oinstall 1073741312 Dec 27 17:35 10gr2_aix5l64_database.cpio.gz
ftp > hash
ftp > get 10gr2_aix5l64_database.cpio.gz
200 PORT command successful.
150 Opening data connection for 10gr2_aix5l64_database.cpio.gz
###############################################
###############################################
###############################################
#############...
10gr2_aix5l64_database.cpio.gz: short write
No space left on device/filesize limit exceeded.
226 File send OK.
225 No transfer to ABOR.
ftp > bye
_______________________________
But in 192.168.1.124.62 server
There is enough space on the mount points.
$ df -g
Filesystem GB blocks Free %Used Iused % Iused Mounted on
/dev/hd4 1.00 0.93 8% 2795 2% /
/dev/hd2 2.00 0.80 61% 29055 13% /usr
/dev/hd9var 6.00 5.22 14% 621 1% /var
/dev/hd3 3.00 2.91 3% 1251 1% /tmp
/proc - - - - - /proc
/dev/hd10opt 2.00 0.94 53% 8306 4% /opt
/dev/fslv00 45.00 26.86 41% 629463 10% /app
/dev/fslv01 5.00 2.18 57% 4497 1% /home
/dev/fslv02 80.00 70.41 12% 9779 1% /data
So, Login into "root" user,
$ sudo su -
password root: ********
root:/home #
edit the /etc/security/limits file,
and add the oracle user with value "unlimit" or "-1"
# view /etc/security/limits
root :
fsize = -1
data = -1
rss = -1
stack = -1
core = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
core_hard = -1
nofiles = -1
oracle:
fsize = -1
data = -1
rss = -1
stack = -1
core = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
core_hard = -1
nofiles = -1
Finally, you have to restart the machine to take effects the changes. . .
after reboot, now you can transfer what ever you want...
will get a error message "No space left on device/filesize limit exceeded" in AIX 6.1
$ pwd
/home/oracle
$ ftp 192.168.124.62
Connected to 192.168.124.62.
220 192.168.124.62 FTP server (Version 4.2 Thu Dec 16 16:45:49 CST 2010) ready.
Name (192.168.124.62:oracle): oracle
331 Password required for oracle.
Password:
230 User oracle logged in.
ftp > cd /app/soft
250 CWD command successful.
ftp> ls -ltr
200 PORT command successful.
150 Opening data connection for /bin/ls
-rwx------ 1 oracle oinstall 141852 Dec 27 15:18 unzip
-rwx------ 1 oracle oinstall 1073741312 Dec 27 17:35 10gr2_aix5l64_database.cpio.gz
ftp > hash
ftp > get 10gr2_aix5l64_database.cpio.gz
200 PORT command successful.
150 Opening data connection for 10gr2_aix5l64_database.cpio.gz
###############################################
###############################################
###############################################
#############...
10gr2_aix5l64_database.cpio.gz: short write
No space left on device/filesize limit exceeded.
226 File send OK.
225 No transfer to ABOR.
ftp > bye
_______________________________
But in 192.168.1.124.62 server
There is enough space on the mount points.
$ df -g
Filesystem GB blocks Free %Used Iused % Iused Mounted on
/dev/hd4 1.00 0.93 8% 2795 2% /
/dev/hd2 2.00 0.80 61% 29055 13% /usr
/dev/hd9var 6.00 5.22 14% 621 1% /var
/dev/hd3 3.00 2.91 3% 1251 1% /tmp
/proc - - - - - /proc
/dev/hd10opt 2.00 0.94 53% 8306 4% /opt
/dev/fslv00 45.00 26.86 41% 629463 10% /app
/dev/fslv01 5.00 2.18 57% 4497 1% /home
/dev/fslv02 80.00 70.41 12% 9779 1% /data
So, Login into "root" user,
$ sudo su -
password root: ********
root:/home #
edit the /etc/security/limits file,
and add the oracle user with value "unlimit" or "-1"
# view /etc/security/limits
root :
fsize = -1
data = -1
rss = -1
stack = -1
core = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
core_hard = -1
nofiles = -1
oracle:
fsize = -1
data = -1
rss = -1
stack = -1
core = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
core_hard = -1
nofiles = -1
Finally, you have to restart the machine to take effects the changes. . .
after reboot, now you can transfer what ever you want...
Well this certainly helped. I didn't even have the -1 for root. So I added it and no more "not enough disk space" error. df -g showed enough, of course.
ReplyDeleteThanks!
This helped us a lot today, but after setting all those we had to restart the machine to get this working.
ReplyDeleteThanks a lot
Gowtham P