Tarik36
November 17, 2014, 8:52am
1
hello everyone,
this is my first post in this forum, I hope I am in the right place
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
vbe
November 17, 2014, 9:04am
2
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...
Tarik36
November 17, 2014, 9:29am
3
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.
zaxxon
November 17, 2014, 10:46am
4
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?
Tarik36
November 17, 2014, 11:36am
5
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
vbe
November 17, 2014, 12:04pm
6
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
zaxxon
November 17, 2014, 2:34pm
7
Don't thank me, simply do it!
Tarik36
November 19, 2014, 7:09am
8
sorted out the way zaxxxo suggested, with a move instead.
thanks guys