红联Linux门户
Linux帮助

Samba共享文件不大于2G限制取消

发布时间:2014-07-14 10:26:50来源:红联作者:velcbo
[root@test /]# mount -t smbfs -ousername=Oracle,password=foxconn.6343,uid=500,gid=500 //192.168.1.100/Oracle /data/rman
[root@test /]# df -h
Filesystem 容量 已用可用 已用%挂载点
/dev/sda2 49G 12G 34G 26% /
/dev/sda1 190M 12M 169M 7% /boot
none 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/vg01-lv01
177G 62G 106G 37% /data
//192.168.1.100/Oracle
1.3T 204G 1.1T 16% /data/rman
[root@test /]# cd /data/rman
[root@test rman]# ls
pms_rman
[root@test rman]# cd pms_rman/
[root@test pms_rman]# ls -lh
总计5.2G
-rwxr-xr-x 1 oracle dba 5.2G 1月28 04:19 test_file.txt
[root@test pms_rman]# cp test_file.txt test.txt
档案大小超过上限
[root@test rman]# cd /
[root@test /]# umount /data/rman
[root@test /]# df -h
Filesystem 容量 已用 可用 已用%挂载点
/dev/sda2 49G 12G 34G 26% /
/dev/sda1 190M 12M 169M 7% /boot
none 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/vg01-lv01
177G 62G 106G 37% /data

[root@test dmp]# mount -t smbfs -o username=oracle,password=foxconn.6343,uid=500,gid=500 //192.168.1.100/Oracle /data/rman-o lfs
[root@test dmp]# df -h
Filesystem 容量 已用 可用 已用%挂载点
/dev/sda2 49G 12G 34G 26% /
/dev/sda1 190M 12M 169M 7% /boot
none 3.9G 0 3.9G 0% /dev/shm
/dev/mapper/vg01-lv01
177G 62G 106G 37% /data
//192.168.1.100/Oracle
1.3T 211G 1.1T 17% /data/rman
[root@test dmp]# cd /data/rman
[root@test rman]# ls
pms_rman
[root@test rman]# cd pms_rman
[root@test pms_rman]# ls
test_file.txt test.txt
[root@test pms_rman]# ls -lh
总计7.2G
-rwxr-xr-x 1 oracle dba 5.2G 1月28 04:19 test_file.txt
-rwxr-xr-x 1 oracle dba 2.0G 1月31 13:28 test.txt
[root@test pms_rman]# rm test.txt
rm:是否移除普通档案‘test.txt’? y
[root@test pms_rman]# ls
test_file.txt
[root@test pms_rman]# cp test_file.txt test.txt
[root@test pms_rman]# ls -lh
总计11G
-rwxr-xr-x 1 oracle dba 5.2G 1月28 04:19 test_file.txt
-rwxr-xr-x 1 oracle dba 5.2G 1月31 14:44 test.txt

作者:deitylee
文章评论

共有 0 条评论