XP Storage
1748183 Members
3439 Online
108759 Solutions
New Discussion юеВ

Filesystem question with VA7410 vs XP128

 
SOLVED
Go to solution
Bob Ferro
Regular Advisor

Filesystem question with VA7410 vs XP128

We have an XP128 with space allocated to a test HP Unix Server (rp3440). I am migrating the data from the XP128 to a VA7410. I set up the VA7410 with the same VG/LV/FS specs as on the XP128. On one FS, I use the command "cp -R -p -f /u21/oracle /va7410/u21". The cp command took about 2 minutes to complete. The bdf results of the 2 FS are:

/dev/vgx2/lvol10 10240000 8976911 1184148 88% /u21/oracle
/dev/vg02/lvol10 15728640 10665797 4746417 69% /va7410/u21/oracle

I had to increase the size of /va7410/u21/oracle to 15GB in order for the cp command to complete successfully. Attached are the vgdisplay and lvdisplay for the 2 FS. The space "USED" for both FS should be the same. I set up the LUNs on the VA7410 the same size as the XP128. Why the difference?
22 REPLIES 22
TTr
Honored Contributor
Solution

Re: Filesystem question with VA7410 vs XP128

Two things to check here.
One is if you have any additional mount points under /u21 that got picked up by the cp command.
Two, are there any device files (raw volumes)under /u21? Take a look at "man cp" and read the "Warning" under the "-R" option. Or look for any device files that use a lot of space in the /va7410/u21.
Bob Ferro
Regular Advisor

Re: Filesystem question with VA7410 vs XP128

I did the "cp -r" with the same results. Under /va7410/u21/oracle, there are 4 database directories (i.e. db/dbs). Under each direcotry, there are .dbf files only. they are the same size as the /u21/oracle (XP128).
TTr
Honored Contributor

Re: Filesystem question with VA7410 vs XP128

> Under /va7410/u21/oracle, there are 4 database directories (i.e. db/dbs). Under each direcotry, there are .dbf files only. they are the same size as the /u21/oracle (XP128).

Are the db/dbs under different mount points? What is the output of "bdf"?

Also is oracle running? If it is you can not copy the dbf files while they are open, they may be modified by oracle while the copying is taking place and the copied file is not going to be identical to the source file.
Bob Ferro
Regular Advisor

Re: Filesystem question with VA7410 vs XP128

/u21/oracle and /va7410/u21/oracle are the only mountpoints. Yes, Oracle is up but the size of the .bdf files are not changing. I am doing this cp command for tons more /u directories and they seem fine. Attached is a bdf for all the /u directories. They are in order by /u directory and then xp128 and then va7410. The "x" in the last column are the ones with a big discrepancy. I don't expect the two FS to be exact, byte for byte, but the "% used" should be the same or the va7410 should be less.
Bob Ferro
Regular Advisor

Re: Filesystem question with VA7410 vs XP128

P.S. I'm in a testing stage right now. When we do the actual cutover, I will bring Oracle down.
TTr
Honored Contributor

Re: Filesystem question with VA7410 vs XP128

How about narrowing down where the space is?

Try "dircmp /u21/oracle /va7410/u21/oracle" to see if a difference is reported.

Also try "du -sk /u21/oracle/*" and "du -sk /va7410/u21/oracle/*" and repeat the du commands as you descent in each oracle directory tree and compare the space of each subdirectory.
Bob Ferro
Regular Advisor

Re: Filesystem question with VA7410 vs XP128

Attached are the results of the commands. If you look at the contents of the 2 directories in question, you will see the same number of .dbf files with the same size but the totals are different.
TTr
Honored Contributor

Re: Filesystem question with VA7410 vs XP128

After looking at your bdf output I thought this was caused by a filesystem blocksize difference between the XP and the VA as it happens with many filesystems. But it does not immediately agree with the du output. Is there anything else under /u21/oracle/rma or just dbs alone?

Try these commands and see if there is a difference in the two filesystems.

fstyp -v /dev/vgx2/lvol10
fstyp -v /dev/vg02/lvol10

bdf -i /u21/oracle
bdf -i /va7410/u21/oracle
Bob Ferro
Regular Advisor

Re: Filesystem question with VA7410 vs XP128

Nothing under /u21/oracle but .dbf files. Here's the output:

root@phl1s425:/va7410/u21/oracle/rma/dbs# fstyp -v /dev/vgx2/lvol10
vxfs
version: 6
f_bsize: 8192
f_frsize: 1024
f_blocks: 10240000
f_bfree: 1263089
f_bavail: 1184146
f_files: 315804
f_ffree: 315772
f_favail: 315772
f_fsid: 1073872906
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 9
f_fsize: 10240000
root@phl1s425:/va7410/u21/oracle/rma/dbs# fstyp -v /dev/vg02/lvol10
vxfs
version: 6
f_bsize: 8192
f_frsize: 1024
f_blocks: 15728640
f_bfree: 5062843
f_bavail: 4746416
f_files: 1265740
f_ffree: 1265708
f_favail: 1265708
f_fsid: 1074266122
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 9
f_fsize: 15728640
root@phl1s425:/va7410/u21/oracle/rma/dbs# bdf -i /u21/oracle
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vgx2/lvol10 10240000 8976911 1184148 88% 26 315770 0% /u21/oracle
root@phl1s425:/va7410/u21/oracle/rma/dbs# bdf -i /va7410/u21/oracle
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg02/lvol10 15728640 10665797 4746417 69% 26 1265710 0% /va7410/u21/oracle