Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Moving SQL LDF (Log) Files


Moving SQL LDF (Log) Files

Author
Message
steve.roberts 33898
steve.roberts 33898
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 112
I know this is going to sound like a daft question but want to be safe :-)

Working with a customer we are planning to move SQL Log files (.LDF) to another drive.
NOW what differs here is the drive is going to be the same...this is also in a VM environment.

Here is the plan...
1. We stop SQL Server Replication
2. We stop the SQL Server and SQL Agent service
3. Take the existing HDD offline (lets say this is G drive) which holds the LDF files.
4. Move the files on here to a new drive and bring the drive on line
5. Rename the Drive as before and same security and same drive letter so lets say G drive again.
So we now have a new drive attached BUT it has the same drive letter and volume name and permissions as before.

6. We bring the SQL Server/Agent services on-line
7. Bring Replication online again.
8. Job finished users can connect again.

So the daft question...will this work i.e. the move of LDF to a new drive but with drive leters and volume names the same?

Thanks Steve
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47255 Visits: 44387
As long as the drive letter and path are absolutely identical, and SQL has full access to the folder, that will work fine.
Take a backup first, for paranoia sake.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


steve.roberts 33898
steve.roberts 33898
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 112
Thanks so much we have to work with our customer on this so we will instruct them to make sure Permissions/Drive Letters/Volume names are all correct and as before to stop conflicts.

... and oh yes backup is a must so will be doing that.

Cheers and thanks for a quick reply :-),

Steve
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search