Right now, our SQL server machine is setup as follows:
C: is 2 drives setup in a RAID 1 configuration, 33GB in size, 25 GB free
D: is 4 drives setup in a RAID 5 configuration, 203 GB in size, 49 GB free
E: is 6 drives setup in a RAID 5 configuration, 101 GB in size, 10 GB free
Currently, SQL is installed on C:, backups (BAKs and TRNs are stored on D:, and databases (MDFs) and transaction logs (LDFs) are stored on E:
I was told it is more efficient to have the LDFs on a different drive than the MDFs.
If this is true, which drive array would it be best to move the LFDs too?
Would it be OK to have them on the same array as the backups?
Or would it be optimal to have a 3rd array F: to move the LDFs to?
If I do decide to move the transaction logs, is the proper procedure:
1.) Detach the database
EXEC sp_detach_db 'eNCast'
2.) Move the LDF file to the new drive
3.) Reattach the database
EXEC sp_attach_db @dbname = N'eNCast',
@filename1 = N'F:\eNCast_Data.MDF',
@filename2 = N'X:\eNCast_log.LDF'
Where F: is the original location of the MDF and X: is whatever drive I moved the LDF to.
What does the "N" mean in the above statement? It is written like that in BOL.
C: is 2 drives setup in a RAID 1 configuration, 33GB in size, 25 GB free
D: is 4 drives setup in a RAID 5 configuration, 203 GB in size, 49 GB free
E: is 6 drives setup in a RAID 5 configuration, 101 GB in size, 10 GB free
Currently, SQL is installed on C:, backups (BAKs and TRNs are stored on D:, and databases (MDFs) and transaction logs (LDFs) are stored on E:
I was told it is more efficient to have the LDFs on a different drive than the MDFs.
If this is true, which drive array would it be best to move the LFDs too?
Would it be OK to have them on the same array as the backups?
Or would it be optimal to have a 3rd array F: to move the LDFs to?
If I do decide to move the transaction logs, is the proper procedure:
1.) Detach the database
EXEC sp_detach_db 'eNCast'
2.) Move the LDF file to the new drive
3.) Reattach the database
EXEC sp_attach_db @dbname = N'eNCast',
@filename1 = N'F:\eNCast_Data.MDF',
@filename2 = N'X:\eNCast_log.LDF'
Where F: is the original location of the MDF and X: is whatever drive I moved the LDF to.
What does the "N" mean in the above statement? It is written like that in BOL.