1837835 Members
2379 Online
110121 Solutions
New Discussion

Moving files problem

 
SOLVED
Go to solution
H_16
Trusted Contributor

Moving files problem


I am trying to move some files but I am getting the error.

# pwd
/gpms_f/GPMSFKP/oradata

#mv oradata /gpms_f/GPMSFKP/oradata
mv: oradata and /gpms_f/GPMSFKP/oradata/oradata are identical

I am trying to move the oradata directory up one but Im am having problems. Any work arounds
12 REPLIES 12
Robert-Jan Goossens_1
Honored Contributor

Re: Moving files problem

One up.

# pwd
/gpms_f/GPMSFKP/oradata

# mv oradata ../

HTH,
Robert-Jan
H_16
Trusted Contributor

Re: Moving files problem


It was stating device busy...so I moved to /

and issued command

#mv /gpms_f/GPMSFOF/product/product ../

And this has now filed / filesystem. How can I clear this down without losing /gpms_f/GPMSFOF/product/product

H_16
Trusted Contributor

Re: Moving files problem

A quick response would be appreciated.

Basically I have got a product directory that needs to be moved up one directory onto the old product. In /gpms_f/GPMSFOF/product/

Please Help !!
H_16
Trusted Contributor

Re: Moving files problem

I have cleared down / I just need the command for the mv of product
Hein van den Heuvel
Honored Contributor

Re: Moving files problem

set

#cd /gpms_f/GPMSFKP

check (symbolic links)

#ls -lR oradata

hide

#mv oradata oradata_old

move up

#mv oradata_old/oradata .

cleanup (or not)

#rmdir oradata_old

hth,
Hein.

Robert-Jan Goossens_1
Honored Contributor

Re: Moving files problem

/gpms_f/GPMSFOF/product/product

above is where it is now and you need to move it to

/gpms_f/GPMSFOF/product

# mv /gpms_f/GPMSFOF/product/product /gpms_f/GPMSFOF/temp_name

check if this is ok

# mv /gpms_f/GPMSFOF/temp_name /gpms_f/GPMSFOF/temp_name/product
H_16
Trusted Contributor

Re: Moving files problem


The temp_name didnt work, ran out of disk space.

Your were right in saying
I want to move the product directory..

/gpms_f/GPMSFOF/product/product

Up one into..

/gpms_f/GPMSFOF/product


Robert-Jan Goossens_1
Honored Contributor

Re: Moving files problem

Ok,

Could you post the output of

# bdf
H_16
Trusted Contributor

Re: Moving files problem


Bdf attached.
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Moving files problem

/dev/vg_xp_ffd_code01/lvol_ffd_product
56885248 15774816 40901248 28% /gpms_f/GPMSFOF/product

ok /gpms_f/GPMSFOF/product is a mountpoint.

# cd /gpms_f/GPMSFOF/product/product

Check with pwd

# mv * /gpms_f/GPMSFOF/product

# cd ..

# ls -la

# rmdir product

# pwd
/gpms_f/GPMSFOF/product
Hein van den Heuvel
Honored Contributor

Re: Moving files problem

Ah... /gpms_f/GPMSFOF/oradata is a mount point.

You'll have to eliminate the oradata directory below it by moving everythign from that directory directly to the mountpoint.
This should take no time, and no space.

#mv /gpms_f/GPMSFOF/oradata/oradata/* /gpms_f/GPMSFOF/oradata

now you should ba able to remove the now empty directory.

#rmdir /gpms_f/GPMSFOF/oradata/oradata


hth,
Hein.
H_16
Trusted Contributor

Re: Moving files problem


Thanks very much for your quick responses. got me out of a hole.