[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

Read only to migrate data

I am moving data from an old server to a new server. What would be the easiest way to make that data read only on the old server while the data is being migrated? Thanks!
0
jbyrd1981
Asked:
jbyrd1981
  • 3
  • 3
  • 2
2 Solutions
 
DavidCommented:
Windows does not support a read-only file system, so get a USB stick, go to  ubuntu.com and create a bootable LINUX-based USB drive (instructions on main home page).

Boot the stick, and it will allow you to do a read-only mount.  Then you can copy the data over the network via rsync, ftp, NFS, SMB, or other techniques.
0
 
kevinhsiehCommented:
Change the share permissions to read only for all users and groups.
0
 
DavidCommented:
changing permissions won't do anything about opened files and databases, nor will it prevent updating of the last-flle accessed settings.  If a service is running then you have huge risk of corrupting any files that the service uses in read/write mode.   Permission settings just won't cut it.

Only way to do this is to boot the system to another O/S that supports a read-only mount.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
kevinhsiehCommented:
My suspicion is that we are talking about a file server, and that the OP wants to prevent users from modifying files during the migration so changes are not lost, while still maintaining file availability. Booting to Linux isn't the easiest way to go for a Windows admin.
0
 
DavidCommented:
I am not assuming anything other than exactly what they quoted.  They are moving data from an OLD system to a NEW one.  The only technique that lets you do that without modifying the data is the one I suggested.
0
 
jbyrd1981Author Commented:
Kevin, is there an easy way to do this across all shares? Will I have to change on each one?
0
 
kevinhsiehCommented:
I can't think offhand of an easy way to do it for all shares. How many do you have? I am sure it can be scripted, but I don't have access to a system to test.
0
 
jbyrd1981Author Commented:
Ended up moving the data over the weekend and told everyone hands off. :) Thanks for the suggestions though.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now