Move data LV


 
Thread Tools Search this Thread
Operating Systems AIX Move data LV
# 1  
Old 11-17-2014
Move data LV

hello everyone,

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

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:

Code:
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
# 2  
Old 11-17-2014
can you do a
Code:
 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...
# 3  
Old 11-17-2014
here is the output

Code:
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.
# 4  
Old 11-17-2014
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.:
Code:
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?
# 5  
Old 11-17-2014
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
# 6  
Old 11-17-2014
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
# 7  
Old 11-17-2014
Don't thank me, simply do it!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parsing XML (and insert data) then output data (bash / Solaris)

Hi folks I have a script I wrote that basically parses a bunch of config and xml files works out were to add in the new content then spits out the data into a new file. It all works - apart from the xml and config file format in the new file with XML files the original XML (that ends up in... (2 Replies)
Discussion started by: dfinch
2 Replies

2. UNIX for Advanced & Expert Users

Which system calls to move data on a device with mounted partitions?

I need to be able to move data around a disk that has mounted partitions. I am not touching the data on the mounted partition, the MBR or any other disk metadata, only the freespace and unmounted partitions. At the moment I am using libparted but it causes data corruption sometimes although there... (1 Reply)
Discussion started by: vstrom
1 Replies

3. Shell Programming and Scripting

Generate tabular data based on a column value from an existing data file

Hi, I have a data file with : 01/28/2012,1,1,98995 01/28/2012,1,2,7195 01/29/2012,1,1,98995 01/29/2012,1,2,7195 01/30/2012,1,1,98896 01/30/2012,1,2,7083 01/31/2012,1,1,98896 01/31/2012,1,2,7083 02/01/2012,1,1,98896 02/01/2012,1,2,7083 02/02/2012,1,1,98899 02/02/2012,1,2,7083 I... (1 Reply)
Discussion started by: himanish
1 Replies

4. Shell Programming and Scripting

Move and later delete mail data of nonexistant users.

Hello everyone! i hope u can help me... i need a script that is able to do: When a user gets deleted in the ldap DB, the mail folder remains. How can i move to another location and delete it after a month? :wall: (2 Replies)
Discussion started by: newbreaker12
2 Replies

5. Shell Programming and Scripting

Converting variable space width data into CSV data in bash

Hi All, I was wondering how I can convert each line in an input file where fields are separated by variable width spaces into a CSV file. Below is the scenario what I am looking for. My Input data in inputfile.txt 19 15657 15685 Sr2dReader 107.88 105.51... (4 Replies)
Discussion started by: vharsha
4 Replies

6. AIX

Large Data move from Win to AIX

Hi All, I have a requirement to move a large amount of data *approx 160 GB* from a windows formatted SAN to AIX. The data is made up of several hundred thousand small files. Does anyone have a recommendation for the best tool or best procedure for this? Regards, Neil (2 Replies)
Discussion started by: stewartna77
2 Replies

7. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

8. UNIX for Dummies Questions & Answers

Howto capture data from rs232port andpull data into oracle database-9i automatically

Hi, i willbe very much grateful to u if u help me out.. if i simply connect pbx machine to printer by serial port RS232 then we find this view: But i want to capture this data into database automatically when the pbx is running.The table in database will contain similar to this view inthe... (1 Reply)
Discussion started by: boss
1 Replies

9. Shell Programming and Scripting

How can i move data files from a server to unix folder

Hi: I am very new in UNIX environment. I need big help. How I can move data files from a server to UNIX folder by script. I don't want to use ws-ftp. The script should check the file on server, if any file found, move it to UNIX folder. I will be very happy, if some one helps me out.... (1 Reply)
Discussion started by: shah2
1 Replies

10. Shell Programming and Scripting

Move data from Column to Row

Hi all, I have a file with several columns of data, eg: A B C D 1 2 5 1 2 2 2 2 8 4 4 4 4 2 3 4 10 9 4 4 9 7 1 2 I need to get the values from, say, column B and place them into a string separated by a semicolon, eg: 2;2;4;2;9;7 Does... (4 Replies)
Discussion started by: danhodges99
4 Replies
Login or Register to Ask a Question