Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:35:10+00:00 2026-06-10T21:35:10+00:00

I started an EC2 instance running linux, and installed the MarkLogic Server rpm. But

  • 0

I started an EC2 instance running linux, and installed the MarkLogic Server rpm. But when I try to start the MarkLogic service, I see messages like this:

Waiting for block device on /dev/sdf
Waiting for block device on /dev/sdf
Waiting for block device on /dev/sdf

There is no /dev/sdf. How can I get past this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:35:12+00:00Added an answer on June 10, 2026 at 9:35 pm

    MarkLogic Server for linux has an assumption built into it. If it sees that it is running under a xen hypervisor and it can find an EC2 hostname using AWS APIs, it assumes it is an instance of the MarkLogic Server AMI. That AMI expects to use /dev/sdf for its default data directory. The documentation mostly talks about using the MarkLogic Server AMI, but there is a brief mention of the solution to this problem at http://docs.marklogic.com/5.0doc/docapp.xqy#display.xqy?fname=http://pubs/5.0doc/xml/ec2/instance.xml%2381403

    It turns out that the startup script, /etc/init.d/MarkLogic, is looking at the environment variable MARKLOGIC_EBS to decide whether or not to wait for /dev/sdf to appear. That MARKLOGIC_EBS variable is set in /etc/sysconfig/MarkLogic, which is meant to be edited by administrators (that’s also where you can set MARKLOGIC_USER to something other than daemon, for example).

    So we can edit /etc/sysconfig/MarkLogic to ignore /dev/sdf. Here is the interesting part of that file:

    # the initial hostname that MarkLogic should use on Amazon EC2
    if [ -d /proc/xen ]; then
      if [ "`curl -s --connect-timeout 2 -o /tmp/public-hostname -w %{http_code} http://169.254.169.254/2007-03-01/meta-data/public-hostname`" = "200" ]; then
        MARKLOGIC_HOSTNAME=`cat /tmp/public-hostname`
        MARKLOGIC_EC2_HOST=1
        MARKLOGIC_EBS=/dev/sdf
      fi
    fi
    

    The simplest solution is to comment out the line that sets MARKLOGIC_EBS.

     the initial hostname that MarkLogic should use on Amazon EC2
    if [ -d /proc/xen ]; then
      if [ "`curl -s --connect-timeout 2 -o /tmp/public-hostname -w %{http_code} http://169.254.169.254/2007-03-01/meta-data/public-hostname`" = "200" ]; then
        MARKLOGIC_HOSTNAME=`cat /tmp/public-hostname`
        MARKLOGIC_EC2_HOST=1
        #MARKLOGIC_EBS=/dev/sdf
      fi
    fi
    

    That will fix the problem, but MarkLogic will still get its public-hostname from the AWS API every time the service starts or restarts. That might cause a slight delay – probably unimportant. But you could stub that out too:

    # the initial hostname that MarkLogic should use on Amazon EC2
    if [ "" -a -d /proc/Xxen ]; then
      if [ "`curl -s --connect-timeout 2 -o /tmp/public-hostname -w %{http_code} http://169.254.169.254/2007-03-01/meta-data/public-hostname`" = "200" ]; then
        MARKLOGIC_HOSTNAME=`cat /tmp/public-hostname`
        MARKLOGIC_EC2_HOST=1
        #MARKLOGIC_EBS=/dev/sdf
      fi
    fi
    

    However you decide to bypass the EC2 test, you are now ready to start the MarkLogic service without being pestered about /dev/sdf. You will still need a MarkLogic Server license, of course. See http://developer.marklogic.com/licensing to learn more about the different license options.

    Note that when you upgrade MarkLogic Server, the rpm may contan a new version of /etc/sysconfig/MarkLogic. Be prepared to merge any of your changes to this file with the new version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started using EC2, launched the instance with Amazon Linux AMI, installed my web
I've got my EC2 instance up and running and installed vsftpd with yum install
I just started experiment with EC2 tonight, and got a server running locally. I
I'm trying to get started with EC2 running a django site on a micro-linux
I've installed Cloud9 IDE on an Amazon EC2 instance and started it with this
Environment: Windows Server 2008 R2 on Amazon EC2 Netbeans IDE with Glassfish started on
I have created an Amazon EC2 Instance that provides Windows Server 2008 with SQL
I have one (EC2) Ubuntu server where bluepill is working just fine to start
I installed glassfish server 2.1 on ec2 which has dynamic ip, recently I stopped
I installed VCAP on a 64 bit Ubuntu 10.04 server VM hosted on EC2.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.