[ 
https://issues.apache.org/jira/browse/SOLR-7826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14682393#comment-14682393
 ] 

Shawn Heisey commented on SOLR-7826:
------------------------------------

Found this info related to the "mkraid" command.  I can't seem to find that 
command on any of my Linux installs right now, so it appears this command is 
not currently part of the mdadm package, and may be an old utility that has not 
survived to the present.  I still like the idea of requiring an option that can 
only be discovered by actually trying to perform the action that's considered 
unsafe.

{code}
-f, --force, --really-force, -R

    Forces the initialization, even if data or filesystems are detected on any 
of the block devices to be included in the array. This is a fail-safe to 
prevent uninitiated users from accidentally destroying their data. The 
--really-force or -R flag is undocumented in the command help and manual pages. 
When the -f or --force flags are used, mkraid will display an additional 
warning and request that the command be retyped with the --really-force flag.
{code}

I have seen another program with a "force" option that's quite long and 
essentially makes the user type out something like "I acknowledge that this is 
a really bad idea" to run the command.  I don't think we need to go that far, 
but I was quite amused by it.

> Permission issues when creating cores with bin/solr
> ---------------------------------------------------
>
>                 Key: SOLR-7826
>                 URL: https://issues.apache.org/jira/browse/SOLR-7826
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Shawn Heisey
>            Priority: Minor
>
> Ran into an interesting situation on IRC today.
> Solr has been installed as a service using the shell script 
> install_solr_service.sh ... so it is running as an unprivileged user.
> User is running "bin/solr create" as root.  This causes permission problems, 
> because the script creates the core's instanceDir with root ownership, then 
> when Solr is instructed to actually create the core, it cannot create the 
> dataDir.
> Enhancement idea:  When the install script is used, leave breadcrumbs 
> somewhere so that the "create core" section of the main script can find it 
> and su to the user specified during install.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to