cancel
Showing results for 
Search instead for 
Did you mean: 

vxvm help required in

symsonu
Level 6

 

Hello friends,

 

as shown below, one of the plex sybdata-01 has  two subdisks like disk8-UR-003 as marked in bold

I have never seen UR in subdisk

what is it ?

 

 

 sybdata      ossrvg       ENABLED  ACTIVE   387973120 SELECT   -        fsgen----------------- need to check
pl sybdata-01   sybdata      ENABLED  ACTIVE   387973120 CONCAT   -        RW
sd disk8-UR-003 sybdata-01   disk8    626688   118124544 0        c1t5006016139A02D78d6 ENA
sd disk8-UR-002 sybdata-01   disk8    118755984 195734896 118124544 c1t5006016139A02D78d6 ENA

sd disk5-06     sybdata-01   disk5    153264128 74113680 313859440 c1t5006016139A02D78d3 ENA
pl sybdata-02   sybdata      ENABLED  ACTIVE   387973120 CONCAT   -        RW
sd disk5mirr-03 sybdata-02   disk5mirr 51945472 367386624 0       c1t5006016139A02D78d10 ENA
sd disk8mirr-02 sybdata-02   disk8mirr 98836480 20586496 367386624 c1t5006016139A02D78d13 ENA
pl sybdata-03   sybdata      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd osssrldk1-21 sybdata-03   osssrldk1 1258296992 512   LOG       c1t5006016146E02210d0 ENA
pl sybdata-04   sybdata      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd osssrldk1m-21 sybdata-04  osssrldk1m 1258296992 512  LOG       c1t5006016146E02210d1 ENA

1 ACCEPTED SOLUTION

Accepted Solutions

g_lee
Level 6

It appears the subdisk may have been hot-relocated, then unrelocated at some point.

vxunreloc creates the subdisk to unrelocate to with the name "dmname-UR-seqno"

# tail +500 /usr/lib/vxvm/bin/vxunreloc | head -30

                # generate a name for the new sd to be created
                # the name will be in the format of "dmname-UR-seqno"

                gen_new_name=1
                dupsd=""

                while [ $gen_new_name -eq 1 -a $seq -lt 1000 ]
                do
                        seq=`expr $seq + 1`
                        if [ $seq -lt 10 ]
                        then
                                newsd_name=${dst_dmname}-UR-00${seq}
                        elif [ $seq -lt 100 ]
                        then
                                newsd_name=${dst_dmname}-UR-0${seq}
                        else
                                newsd_name=${dst_dmname}-UR-${seq}
                        fi

                        # if an existing sd has the same name, try to generate
                        # another name
                        dupsd=`vxprint -g $dg_name -Qvse 'sd_dmname="'$dst_dmname'" && \
                                sd_name="'$newsd_name'"' -F '%name'`
                        if [ ! "$dupsd" ]
                        then
                                gen_new_name=0
                        fi
                done

(line numbers are likely to vary/differ on different versions/platforms)

For more information about hot relocation:

How hot relocation works:

https://sort.symantec.com/public/documents/sf/5.0/solaris/html/vxvm_admin/ag_ch_hotrelocation_vm3.html

Moving relocated subdisks using vxunreloc

https://sort.symantec.com/public/documents/sf/5.0/solaris/html/vxvm_admin/ag_ch_hotrelocation_vm17.html

View solution in original post

1 REPLY 1

g_lee
Level 6

It appears the subdisk may have been hot-relocated, then unrelocated at some point.

vxunreloc creates the subdisk to unrelocate to with the name "dmname-UR-seqno"

# tail +500 /usr/lib/vxvm/bin/vxunreloc | head -30

                # generate a name for the new sd to be created
                # the name will be in the format of "dmname-UR-seqno"

                gen_new_name=1
                dupsd=""

                while [ $gen_new_name -eq 1 -a $seq -lt 1000 ]
                do
                        seq=`expr $seq + 1`
                        if [ $seq -lt 10 ]
                        then
                                newsd_name=${dst_dmname}-UR-00${seq}
                        elif [ $seq -lt 100 ]
                        then
                                newsd_name=${dst_dmname}-UR-0${seq}
                        else
                                newsd_name=${dst_dmname}-UR-${seq}
                        fi

                        # if an existing sd has the same name, try to generate
                        # another name
                        dupsd=`vxprint -g $dg_name -Qvse 'sd_dmname="'$dst_dmname'" && \
                                sd_name="'$newsd_name'"' -F '%name'`
                        if [ ! "$dupsd" ]
                        then
                                gen_new_name=0
                        fi
                done

(line numbers are likely to vary/differ on different versions/platforms)

For more information about hot relocation:

How hot relocation works:

https://sort.symantec.com/public/documents/sf/5.0/solaris/html/vxvm_admin/ag_ch_hotrelocation_vm3.html

Moving relocated subdisks using vxunreloc

https://sort.symantec.com/public/documents/sf/5.0/solaris/html/vxvm_admin/ag_ch_hotrelocation_vm17.html