How to use SQL Server manager to move the Database & Logs to different drive ?

I had this question after viewing Migrating C:\ only in a VM to another VMDK disk ?.

Hi People,

based on the suggestion shared by one of the experts as above thread, how can I use the SQL Server manager to safely migrate the SQL Database and logs from the below Disk 0:
Disk partition layout

Into another newly added drive without causing downtime or database issue on the application setting side ?
[Hopefully I do not have to modify anything from the application perspactive]

Thanks.
LVL 9
Senior IT System EngineerIT ProfessionalAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
>>without causing downtime

That is not possible from what I know.

The easiest way would be to do a detach of your database (database would then be not available), move your files to your new drive and reattach your database.
2

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andyalderSaggar maker's framemakerCommented:
"without causing downtime" is not possible, you can use ALTER DATABASE or the server manager to define the new database location but then you have to stop the particular database, move the files and then start it again.
1
andyalderSaggar maker's framemakerCommented:
Actually it is probably possible to migrate DISK1 or DISK2 with Storage vMotion, because Windows and SQL wouldn't know it was happening and the drive letters wouldn't change.
1
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Senior IT System EngineerIT ProfessionalAuthor Commented:
Andy,

Do you mean clone the VM and then specifying the custom VMDK drive to be cloned ?
and then re-attached the cloned disk to the existing VM ?
0
andyalderSaggar maker's framemakerCommented:
Not cloning but migrating using svMotion if you have the license for it. svMotion via the GUI moves the whole thing but with the CLI you can move individual disks, https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004040
1
Senior IT System EngineerIT ProfessionalAuthor Commented:
Hi Andy,
Yes I do have Enterprise Plus license.

Am I able to svMotion just one VMDK and then resize it on the fly to another VMDK disk ?
0
Senior IT System EngineerIT ProfessionalAuthor Commented:
Thanks all !
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage

From novice to tech pro — start learning today.