copy data from one old filesystem to newfilesystem


 
Thread Tools Search this Thread
Operating Systems Solaris copy data from one old filesystem to newfilesystem
# 1  
Old 02-23-2010
copy data from one old filesystem to newfilesystem

Hi gurus
I configured raid 5 volume n ive created a filesystem and mounted it to a directory also...everythin is ready..the purpose of doing it is to move my data from an old filesystem pin02 to the newly created filesystem pin02_new...plz tel me the steps to move data without any prob..ter should not be any dataloss..permissions must be copied properly..plz tel me t steps to move data..its very urgent...
# 2  
Old 02-23-2010
You can use ufsdump/ufsrestore o mv command.
I've done with both, OK
# 3  
Old 02-23-2010
what filesystem are you running?
# 4  
Old 02-23-2010
I usually use the tar command when moving filesystems:

Code:
cd pin02
tar cvf - . | (cd pin02_new;tar xvf -)

You have to do this as root. All permissions will be preserved.
# 5  
Old 02-24-2010
im using UFS filesystem..and if i use mv command data and permissions will not be copied properly as far as i kno...any other option for this...anythin like rsync..please let me kno..im not sure about this..ive got to move the data today..its urgent guys!!!
# 6  
Old 02-24-2010
Quote:
Originally Posted by madanmeer
im using UFS filesystem..and if i use mv command data and permissions will not be copied properly as far as i kno...
They should. Double check that.
# 7  
Old 02-24-2010
check this link. Copy a Solaris Boot Drive to a New Disk|spiralbound.net

the basic idea is something like this:

Code:
ufsdump 0f - /usr/local | ( cd /mnt/local ;ufsrestore xvf - )

just realize it may take awhile depending on the size.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Best way to copy 4Tb of data from one filesystem to another

User needs to copy a number of directories. Currently, they are using cp -pr which is taking way too long. Wonder if its worth tarring and compressing first? Any recommendations for what would be quickest way? (11 Replies)
Discussion started by: psychocandy
11 Replies

2. UNIX for Advanced & Expert Users

Errors received while restoring my data from ext3 filesystem

Hi All, I have dual boot on my laptop - Win8 And linuxMint. From linuxmint i had copied all my data found on the NTFS partitions (on my laptop) to an external hard drive (formatted with ext3). i used rsync for this. Now after my hard disk crashed, am restoring the data back from ext3... (2 Replies)
Discussion started by: coolatt
2 Replies

3. Solaris

Solaris Filesystem usage discrepancy after "copy"

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... (4 Replies)
Discussion started by: ru4n1
4 Replies

4. Shell Programming and Scripting

Copy and paste data

I need to copy from specified lines and paste the data into several other lines. XX123450008 xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x XX123451895 xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x xx.x ...... XX123452012 xx.x xx.x xx.x xx.x xx.x xx.x xx.x... (13 Replies)
Discussion started by: ncwxpanther
13 Replies

5. Solaris

Copy data over a TB

Hi All, We are not able to grow a UFS filesystem since its size will be going over a TB and it wasn't created using -T with newfs. Hence we have decided to take the backup of all the files on another filesystem and recreate it using -T with newfs. Please recommend the most reliable... (2 Replies)
Discussion started by: vishalaswani
2 Replies

6. Shell Programming and Scripting

Will moving data from one filesystem to another affect current software installation

Here we have concern. We have a IBM software installed in a server S1 in the location : /opt/IBM. In this server S1, we have /opt file system in local disk. We don't have any option to increase the file system there. We have created a separate /opt/IBM_NEW file system with 10GB in S1 server.... (1 Reply)
Discussion started by: mehimadri
1 Replies

7. UNIX for Dummies Questions & Answers

Copy unix filesystem to windows

Hi all Is there a way to copy a unix filesystem (folders, subfolder and files) to windows (AD) and at the same time maintaine the unix permission (user/group) when copied to windows (AD) filesystem? I want the same permission in windows as I had in unix in one copy job. Is this... (8 Replies)
Discussion started by: tomjen
8 Replies

8. UNIX for Dummies Questions & Answers

copy, clear and keep to new data only

I have an Ingres database logfile that grows constantly, iircp.log. It is always "attached" to the Ingres process that uses it, and I do not want to screw up the data. I have been copying it to another directory and then using vi on the original to reduce the size 34000 lines at a time. What I want... (1 Reply)
Discussion started by: sarge
1 Replies

9. Solaris

Filesystem Copy

Hi, Fairly new to the Unix worldand was wonderig without using tar and cp is there another way to copy files from one filesystem to a mount point but preserving all data, time stamp etc.. Cheers, :D (2 Replies)
Discussion started by: Monkey007
2 Replies

10. UNIX for Dummies Questions & Answers

copy prod data to QA

We keep getting production files into an input directory. These files will be processed three times a day. 8:00AM 1:30PM 5:30PM file1.20041005_05303423.dat File2.200041005_14232313.dat Once the files are processed, they are archived immediately to prod/archive directory ... (1 Reply)
Discussion started by: zomboo
1 Replies
Login or Register to Ask a Question