ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XenServer Local SR: Need another pair of eyes

    IT Discussion
    xenserver 7.0 storage repository
    4
    28
    3.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KellyK
      Kelly @momurda
      last edited by

      @momurda said in XenServer Local SR: Need another pair of eyes:

      what does 'pvdisplay' output?
      or 'vgdisplay'

      xe sr-create host-uuid=uuidofhost shared=false type=lvm content-type=user device-config:device=/dev/sda1 name-label="blah"

      No return on either pvdisplay or vgdisplay.

      1 Reply Last reply Reply Quote 0
      • travisdh1T
        travisdh1 @Kelly
        last edited by

        @Kelly So far the drive looks good. This seems silly, be it could be that you'll need to create a partition on the drive for things to work. (Don't ask me why, a raw drive vs a partition shouldn't make much difference.) I'd go with an LVM partition type and use type=lvm like @momurda suggested.

        KellyK 1 Reply Last reply Reply Quote 0
        • KellyK
          Kelly @travisdh1
          last edited by

          @travisdh1 said in XenServer Local SR: Need another pair of eyes:

          @Kelly So far the drive looks good. This seems silly, be it could be that you'll need to create a partition on the drive for things to work. (Don't ask me why, a raw drive vs a partition shouldn't make much difference.) I'd go with an LVM partition type and use type=lvm like @momurda suggested.

          Same response. I just have a > below the command.

          travisdh1T 1 Reply Last reply Reply Quote 0
          • travisdh1T
            travisdh1 @Kelly
            last edited by

            @Kelly Well, bother.

            xe sr-create host-uuid=uuidofhost shared=false type=lvm content-type=user device-config:device=/dev/sda1 name-label="blah"
            

            Should work. You've stumped me for the day at least.

            KellyK 1 Reply Last reply Reply Quote 0
            • momurdaM
              momurda
              last edited by

              Thats weird. pvdisplay/vgdisplay should give you a list of physical devices (pvdisplay) and vgdisplay should show you the logical volumes of your physical disks.

              1 Reply Last reply Reply Quote 1
              • KellyK
                Kelly @travisdh1
                last edited by

                @travisdh1 said in XenServer Local SR: Need another pair of eyes:

                @Kelly Well, bother.

                xe sr-create host-uuid=uuidofhost shared=false type=lvm content-type=user device-config:device=/dev/sda1 name-label="blah"
                

                Should work. You've stumped me for the day at least.

                Does the order of the elements after sr-create matter?

                travisdh1T 1 Reply Last reply Reply Quote 0
                • travisdh1T
                  travisdh1 @Kelly
                  last edited by

                  @Kelly said in XenServer Local SR: Need another pair of eyes:

                  @travisdh1 said in XenServer Local SR: Need another pair of eyes:

                  @Kelly Well, bother.

                  xe sr-create host-uuid=uuidofhost shared=false type=lvm content-type=user device-config:device=/dev/sda1 name-label="blah"
                  

                  Should work. You've stumped me for the day at least.

                  Does the order of the elements after sr-create matter?

                  It shouldn't, but xe can be a bit of an oddball at times. Could be as simple as a space where one shouldn't be.

                  1 Reply Last reply Reply Quote 0
                  • KellyK
                    Kelly
                    last edited by

                    Ok, so I decided to step through xe sr-create until it stopped complaining. It created the SR with just this:

                    xe sr-create name-label="VM Storage" type=lvm host-uuid=uuid device-config:device=/dev/sda
                    

                    I only entered a parameter when it specifically asked for it. I'm wondering if there is an undocumented change in one of the parameters.

                    1 Reply Last reply Reply Quote 1
                    • KellyK
                      Kelly
                      last edited by

                      And the same command worked on the second host in the pool as well (different uuid).

                      1 Reply Last reply Reply Quote 1
                      • momurdaM
                        momurda
                        last edited by

                        curious what the output of 'xe sr-list' shows for content-type on your new SRs since you didnt specify when creating.

                        KellyK 1 Reply Last reply Reply Quote 0
                        • KellyK
                          Kelly @momurda
                          last edited by

                          @momurda said in XenServer Local SR: Need another pair of eyes:

                          curious what the output of 'xe sr-list' shows for content-type on your new SRs since you didnt specify when creating.

                          Hmm...

                          content-type ( RO):
                          
                          1 Reply Last reply Reply Quote 0
                          • momurdaM
                            momurda
                            last edited by

                            Hmm indeed. can you use the new SRs? Boot a vm on them, add a disk from one to an existing vm?

                            KellyK 1 Reply Last reply Reply Quote 0
                            • KellyK
                              Kelly @momurda
                              last edited by

                              @momurda said in XenServer Local SR: Need another pair of eyes:

                              Hmm indeed. can you use the new SRs? Boot a vm on them, add a disk from one to an existing vm?

                              The pbd was marked as read-only. I'm going to try adding in content-type to my above command.

                              1 Reply Last reply Reply Quote 0
                              • momurdaM
                                momurda
                                last edited by

                                I am not clear about this, but i think the results of xe sr-list
                                0_1465596516689_upload-29cacbab-e373-4f34-945e-86e9e38f0396
                                the RO/RW parts refer to the parameters themselves, not necessarily the SR.
                                For instance, you cant change uuid of an sr so it is RO.
                                You can change the name-label, name-description parameters, so they are RW

                                KellyK 1 Reply Last reply Reply Quote 0
                                • KellyK
                                  Kelly @momurda
                                  last edited by

                                  @momurda said in XenServer Local SR: Need another pair of eyes:

                                  I am not clear about this, but i think the results of xe sr-list
                                  0_1465596516689_upload-29cacbab-e373-4f34-945e-86e9e38f0396
                                  the RO/RW parts refer to the parameters themselves, not necessarily the SR.
                                  For instance, you cant change uuid of an sr so it is RO.
                                  You can change the name-label, name-description parameters, so they are RW

                                  Hmm, perhaps it wasn't read only, but I couldn't install to it. I removed the SR and PBD and then redid it with the content-type defined and I'm now able to install to it.

                                  Final command:

                                  xe sr-create name-label="VM Storage" type=lvm content-type=user host-uuid=uuid device-config:device=/dev/sda
                                  
                                  travisdh1T 1 Reply Last reply Reply Quote 0
                                  • momurdaM
                                    momurda
                                    last edited by

                                    Nice. Also Ive only been using XS for a few months, so i could be wrong about the xe sr-list command output

                                    1 Reply Last reply Reply Quote 1
                                    • travisdh1T
                                      travisdh1 @Kelly
                                      last edited by

                                      @Kelly It doesn't help that most of us have to use the xe sr-create command once every 4-5 years.

                                      1 Reply Last reply Reply Quote 2
                                      • 1
                                      • 2
                                      • 2 / 2
                                      • First post
                                        Last post