I have a mirrored database in full safety mode on sql server 2008 R2 Standard Edition. I want to create a maintenance plan to rebuild and reorganize the indexes on a weekly basis. Maintenance plans are set to take full backups 3 times a day and transaction log backups every 30 minutes. The database is very active and gets lot of traffic. I tried rebuilding the indexes manually during non peak hours and that caused the log file to grow heavily on the principle as well as on the mirror.
Are there any specific steps to be followed for rebuilding indexes in a mirroring environment? I searched online but could not find any difference in the way indexes are rebuilt in mirroring and without mirroring.
Also can I just use DBCC SHRINKFILE on the principle to free the unused space in the log file without stopping the mirroring?