Problem running out of space by copying files to identical filesystems


 
Thread Tools Search this Thread
Operating Systems HP-UX Problem running out of space by copying files to identical filesystems
# 1  
Old 01-26-2009
Problem running out of space by copying files to identical filesystems

I am trying to copy a filesystem from one server to another using rsync over the WAN. As far as I can tell, the two filesystems are identical but for some reason I cannot copy the last file because I keep running out of space.

SERVER 1:
mkfs -m <lvol>
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=4,inosize=256,logsize=256,largefiles /dev/vgprod/store15 2147188736
bdf <lvol>
Filesystem kbytes used avail %used Mounted on
/dev/vgprod/store15
2147188736 2146853928 332200 100% /data/store15


SERVER 2:
mkfs -m <lvol>
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=4,inosize=256,logsize=256,largefiles /dev/vgprod/store15 2147188736
bdf <lvol>
Filesystem kbytes used avail %used Mounted on
/dev/vgprod/store15
2147188736 2113312464 33611672 98% /data/store15


All of the files are about 34GB each. The very last file is 34,346,224,640 bytes and, as you can see, I only have 33.6GB available so the copy fails on the very last file. Why do these files fit perfectly into SERVER 1 but not into SERVER 2 if the OS version is the same, the JFS version is the same and all of the parameters appear to be the same? There must be something I am missing but I cannot figure it out.

I have also checked that acctresume and acctsuspend are the same on both servers as well.
# 2  
Old 01-27-2009
Let's see the rsync command too. I suspect the problem is hard-links and/or soft-links. If you don't properly deal with hard-links, then you end up with two or more copies to some very big files. You also have to be careful not to cross the /proc file system.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to sum up the space allocated to filesystems

Hi , I Would like to know the space allocated by adding up all the allocated space to group of filesystems .. example , df -h|grep /db | awk '{ print $4 }' ---> giving me all the used space on the filesystem but need to know the total used space by adding up all the values (3 Replies)
Discussion started by: nsankineni
3 Replies

2. Shell Programming and Scripting

SDiff Two files with space problem

Hello guys, I have a problem. I'm trying to use SDiff with two files which are containing spaces. My problem is that I want to save the output with > in an extra file. If I try to use it like this. sdiff "test file1" "test file2" > OutputfileI get this message: usage: diff ... (11 Replies)
Discussion started by: Mariopart
11 Replies

3. Shell Programming and Scripting

Problem copying files from windows to unix

Hello, I want some directions for a command inside a shell script which would copy files from some path on my windows os (say my documents) to the path where my shell script is saved and I want it to exit the sftp session and continue executing the remaining lines in my shell script after... (2 Replies)
Discussion started by: Vishwa308
2 Replies

4. UNIX for Dummies Questions & Answers

Space problem in files

Hi, I have a file containing a list of entries. Want to do ls on them. for a in `cat <list.txt>`; do ls $a; done; Now some entries contain spaces. How do i incorporate space in $a. Quoting $a in "" doesn't help. Thanks (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies

5. HP-UX

SCCS problem when copying files

I have created a SCCS directory with version 1.1. It has say A.txt (for simplicity) Now updated files are present in other directory. If I copy A.txt it wont be effected in SCCS. How do I make this A.text to be version 1.2?? Please help! (3 Replies)
Discussion started by: superprogrammer
3 Replies

6. UNIX for Advanced & Expert Users

Problem in copying files!!

I have requirement of one directory in /tmp area on Sun server. The area contains following files : brdcems# /tmp/.tivoli >>ls -lt total 0 srwxrwxrwx 1 root other 0 Nov 16 13:41 a9c30c14-80bf256e-94 srwxrwxrwx 1 root other 0 Nov 12 12:28 a9c30cc8-80bf256e-94 I... (4 Replies)
Discussion started by: ssk
4 Replies

7. UNIX for Dummies Questions & Answers

when I try to run rm on multiple files I have problem to delete files with space

Hello when I try to run rm on multiple files I have problem to delete files with space. I have this command : find . -name "*.cmd" | xargs \rm -f it doing the work fine but when it comes across files with spaces like : "my foo file.cmd" it refuse to delete it why? (1 Reply)
Discussion started by: umen
1 Replies
Login or Register to Ask a Question