You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Zhao Yongming (Created) (JIRA)" <ji...@apache.org> on 2012/03/22 16:22:22 UTC

[jira] [Created] (TS-1161) insafe raw device in storage.config

insafe raw device in storage.config
-----------------------------------

                 Key: TS-1161
                 URL: https://issues.apache.org/jira/browse/TS-1161
             Project: Traffic Server
          Issue Type: Bug
          Components: Core
            Reporter: Zhao Yongming


if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.

this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TS-1161) insafe raw device in storage.config

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1161:
------------------------------

    Fix Version/s:     (was: 3.1.4)
                   3.3.0

Moving to 3.3.0
                
> insafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.3.0
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1161) insafe raw device in storage.config

Posted by "Yunkai Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472276#comment-13472276 ] 

Yunkai Zhang commented on TS-1161:
----------------------------------

By reading this page from redhat:
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/persistent_naming.html

We can learn that only /dev/disk/by-id/... (not /dev/sda or /dev/disk/by-path or /dev/disk/by-uuid) should be used in storage.config for safe reason.
                
> insafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.3.1
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1161) unsafe raw device in storage.config

Posted by "Zhao Yongming (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472505#comment-13472505 ] 

Zhao Yongming commented on TS-1161:
-----------------------------------

using 'by-id' may be a good idea on system that have many disks or have disk name changing issue.

but that will not prevent you from destroy the root disk, we should confirm that the disk is not mounted before disk init.

                
> unsafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.3.1
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TS-1161) insafe raw device in storage.config

Posted by "Leif Hedstrom (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-1161:
------------------------------

    Fix Version/s: 3.1.4
    
> insafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.1.4
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1161) unsafe raw device in storage.config

Posted by "Yunkai Zhang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472953#comment-13472953 ] 

Yunkai Zhang commented on TS-1161:
----------------------------------

I think there are two kind of problems:

1) Using 'by-id' as persistent name to identify disks maybe can help me to solve TS-667, but we should consider if this method would introduce other problems -- would it cause the mapping(key to disk) changes a lot when replace a new disk?

2) Check if disk was mounted before disk init.

I'm trying to deal with 1) problems firstly.
                
> unsafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.3.1
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TS-1161) insafe raw device in storage.config

Posted by "Leif Hedstrom (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235647#comment-13235647 ] 

Leif Hedstrom commented on TS-1161:
-----------------------------------

Yeah, don't use e.g. /dev/sda. Use /dev/disk/by-uuid/...   or /dev/disk/by-path/...  or some such, and make sure you get it right. :)

I guess we could try to detect if a disk is in use, I don't know if there are any portable and reliable ways to detect that (but, I haven't looked). It's not as easy as looking via "mount" etc., you have to take into account various other disk managers, such as LLVM, or even just the software raid layers.
                
> insafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TS-1161) insafe raw device in storage.config

Posted by "James Peach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472486#comment-13472486 ] 

James Peach commented on TS-1161:
---------------------------------

Is this as issue where we should improve the documentation?
                
> insafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.3.1
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TS-1161) unsafe raw device in storage.config

Posted by "James Peach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TS-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Peach updated TS-1161:
----------------------------

    Summary: unsafe raw device in storage.config  (was: insafe raw device in storage.config)
    
> unsafe raw device in storage.config
> -----------------------------------
>
>                 Key: TS-1161
>                 URL: https://issues.apache.org/jira/browse/TS-1161
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Zhao Yongming
>             Fix For: 3.3.1
>
>
> if you system is on /dev/sda and you put /dev/sda into storage.config, TS will destroy the data on /dev/sda without any hesitate.
> this is proved to be true, please do not try, trust me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira