I have a query someone may be able to shed some light on...
We have a Solaris 10 OS Sun V490 server Sparc.
I have a SAN attached EMC Clarrion LUN which we have app data stored on.
Pseudo name=emcpower0a
CLARiiON ID=CK200070300470
Due to storage requirements - I need to migrate this data onto a SAN attached DMX Symmetrix volume.
Pseudo name=emcpower1a
Symmetrix ID=000290103149
I have the existing Clariion disk attached and configured, labelled, partitioned as normal and mounted under /emc.
I took the newly presented DMX storage disk and made this visible to format (devfsadm & cfgadm commands) and then labelled and partitioned this disk also. This is now mounted as /NEWemc.
- At this point - I discovered that Solaris has nuances with regards to direct copying of symbolic links so I have chosen to not use a straightforward...
"cp -rp /emc/* /NEWemc/"
I had attempted this firstly but this posed issues for us as rather than copying the symbolic link - actual files were fetched for the copy. I believe there is a '-H' switch that can be incorporated but I did not get this to work properly for me.
Instead what I chose to do was perform a tar direct input/output compress/extract.
cd /emc
tar -cfp - ./* | (cd /NEWemc/; tar -xvfp -)
This works very effectively and all files/directories/symbolic links appear to come across from the old disk to the new as expected.
** However! **
Both du and df filesystem usage commands are reporting a very different sitaution
Inquiry into 'old' disk filesystem
root@server:/emc> df -k /emc
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/emcpower0a 61756540 12339844 48799131 21% /emc
root@server:/emc> df -h /emc
Filesystem size used avail capacity Mounted on
/dev/dsk/emcpower0a 59G 12G 47G 21% /emc
root@server:/emc> du -sk /emc
12278596 /emc
root@server:/emc> find /emc/ | wc -l
73289
Inquiry into 'NEW' disk filesystem
root@server:/emc> df -k /NEWemc/
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/emcpower1a 69586089 28531665 40358564 42% /NEWemc
root@server:/emc> df -h /NEWemc/
Filesystem size used avail capacity Mounted on
/dev/dsk/emcpower1a 66G 27G 38G 42% /NEWemc
root@server:/emc> du -sk /NEWemc/
28466121 /NEWemc
root@server:/emc> find /NEWemc/ | wc -l
73289
I understand that du and df can sometimes display slightly skewed results but the discrepancy here is significantly different!
I have unmounted the /NEWemc filesystem and also rebooted the server - but the filesystem usage stats do not fall into line... which is what I would expect?
Anyone have any suggestions please?
Am I incorrect in my expectations?