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...
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
Inquiry into 'NEW' disk filesystem
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?
Maybe the AU is different, since that is one place where du and df differ. I think du thinks we still have 512 byte sectors. I recall that du multi-counts hard links, too. Find picks up directory hard links .. and ., running that line count up.
Allocation unit, a genneral term for what size hunk is given out. Often, it is the page size, but it can be a multiple. If the au is 32K, a one byte file takes 32K, bu does not have to ask for more or seek until over 32k. du reports bytes used, not allocated, as I recall, and of course df deals with what is allocated. A file of 0 lengh is just an inode, but a sym link needs an au to store the path, and directories are just flat binary files with a different inode bit setting, so they also use one or more au. So space allocated is, in integer math and integer au: ( byte_size + au - 1 ) / au
BTW, with ls the -a is defeated by the -d and *, as * ignores .* and -d stops listing of directory content in favor of the directory itself. To see all files and dirs in a dir, "ls -la dirname". "find" is very good about inclusion, though, except when you push past hidden inodes with *, e.g. "find whatever* -options".
Last edited by DGPickett; 11-07-2012 at 05:38 PM..
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi,
I am trying to get an HPz420 workstation instaled (zfs root pool) via a jump-start server.
I have a zfs image (from this workstation) the Solaris release is 10 1/13 update 11.
I use a sparc U25 install server, upgraded to the same solaris build 10 1/13.
This server is configured to install... (8 Replies)
Hello all, perhaps this is an odd request, but I have the requirement none the less. Every time I mount a filesystem (at least an ext4 filesystem), I get a line indicating such in the syslog:
Oct 9 22:26:28 sulaco kernel: EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts:
I... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone.
I beg your guys pardon please.
I try to ls -al in many path/directories. So, I put the code in text file which look like below;
ls -al /
ls -al /etc
ls -al /etc/default
...
however, when I paste it to Solaris over SecureCRT, it seems the code was escaped from "-" to... (0 Replies)
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)