Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to create a symlink from a file on the local disk of a windows machine in ec2 so that it is actually stored in an S3 bucket?

MSMQ wants to write our queue to a local disk and this does not seem to be configurable, which means the queue would be lost if the machine went down. We would like to have the queue written somewhere that could be recovered if the machine died.

Is this an option? If not are there any other options

share|improve this question

2 Answers 2

It can be done easily if the EC2 instance is running Linux, using Fuse Over Amazon. While there is a Windows version of FUSE named Dokan, it will probably be quite a bit of work to get Fuse for Amazon working with it.

share|improve this answer

I believe that Microsoft would want you to implement an MSMQ cluster to achieve your goal.

Alternatively, if you can get the bucket mounted as a drive letter, which seems to be available from various vendors, you could try creating a directory symbolic link. I'm not so familiar with the layout of where MSMQ stores queue data, but something like this should work, if you're running Vista or above:

mklink /d C:\MSMQ\Queues H:\MSMQQueues

Assuming that MSMQ is looking for data in C:\MSMQ\Queues, and you want the data to be stored on H:\MSMQQueues. Of course, MSMQ might be checking for this trick if it thinks it has a good reason to always write to local storage.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.