Move data LV

hello everyone,

this is my first post in this forum, I hope I am in the right place :slight_smile:

I am relatively new to AIX, and I need help doing the following:

move data from directory /universe_log/CIHPRD to /universe_log/novabch1

while changing lv and preserving mount point.

below some details:

root:novabch1:/universe_log/novabch1>$ df .
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/ulog_nvbach1_lv     2097152   2096488    1%        4     1% /universe_log/novabch1

root:novabch1:/universe_log/CIHPRD>$ df .
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          2097152    627396   71%    13463     9% /

root:novabch1:/universe_log>$ df .
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          2097152    627396   71%    13463     9% /

is it possible?if so how? thanks

regards

can you do a

 df -gP 

Because I would like to see from where you are moving...
Because it is unclear if you wish to move LVM or data from one file system to another etc...

here is the output

Filesystem    GB blocks      Used Available Capacity Mounted on

/dev/hd4           2.00      1.41      0.59      71% /

/dev/ulog_nvbach1_lv      2.00      0.00      2.00       1% 

I need to move data between file systems.

Why don't you simply copy the data to the destination? I usually use something like this to preserve everything and catch hidden files etc.:

cd /universe_log/CIHPRD
find . | cpio -dumpv /universe_log/novabch1

And if "preserving" means to keep "/universe_log/CIHPRD" as Mount Point, then delete the old directory and rename the new LV's Mount Point, maybe with smitty or on the shell.
Am I missing something?

thank you for the reply, let me explain:

I have two file systems:

/dev/hd4 mounted on /

and

/dev/ulog_nvbach1_lv mounted on /universe_log/novabch1

the directory /universe_log/CIHPRD contains data that should reside in the fs /dev/ulog_nvbach1_lv and not in /dev/hd4.

I need to keep the directory /universe_log/CIHPRD itself and the permissions etc

What zaxxon's given you will do exactly that except that it will copy rather than move, /universe_log/CIHPRD is reserved as it was, leaving you to go in /universe_log/CIHPRD and erase all the unwanted

Don't thank me, simply do it!

sorted out the way zaxxxo suggested, with a move instead.

thanks guys