creation d’un DG vxvm dans un cluster

vendredi 2 janvier 2015
par  Jerome ROBERT
popularité : 3%

#vxdctl enable

 

# vxdisk -e list | grep error

B18665_198 auto - - error c10t60060E800548E900000048E900000404d0s2

B18665_199 auto - - error c10t60060E800548E900000048E900000403d0s2

B28858_198 auto - - error c10t60060E800570BA00000070BA000003F4d0s2

B28858_199 auto - - error c10t60060E800570BA00000070BA000003F3d0s2

 

# cldev populate

Configuring DID devices

did instance 31 created.

did subpath sum51001 :/dev/rdsk/c10t60060E800570BA00000070BA000003F3d0 created for instance 31.

did instance 32 created.

did subpath sum51001 :/dev/rdsk/c10t60060E800570BA00000070BA000003F4d0 created for instance 32.

did instance 33 created.

did subpath sum51001 :/dev/rdsk/c10t60060E800548E900000048E900000403d0 created for instance 33.

did instance 34 created.

did subpath sum51001 :/dev/rdsk/c10t60060E800548E900000048E900000404d0 created for instance 34.

cldev : (C659924) Could not open "/dev/rdsk/c0t3d0s2" to verfiy device ID - Device busy.

Configuring the /dev/global directory (global devices)

obtaining access to all attached disks

 

root@sum51001 #cldevicegroup list -v |more

Device group Type Node list

------------ ---- ---------

dsk/d20 Disk sum51001, sum50901

dsk/d18 Disk sum51001, sum50901

dsk/d17 Disk sum51001, sum50901

….

dsk/d35 Disk sum51001, sum50901

dsk/d34 Disk sum51001

dsk/d33 Disk sum51001

dsk/d32 Disk sum51001

dsk/d31 Disk sum51001

dsk/d30 Disk sum51001, sum50901

 

 

root@sum50901 # cldev populate

Configuring DID devices

cldev : (C659924) Could not open "/dev/rdsk/c0t3d0s2" to verfiy device ID - Devic e busy.

Configuring the /dev/global directory (global devices)

obtaining access to all attached disks

 

 

root@sum51001 # cldevicegroup list -v |more

Device group Type Node list

------------ ---- ---------

dsk/d36 Disk sum51001, sum50901

dsk/d35 Disk sum51001, sum50901

dsk/d34 Disk sum51001, sum50901

dsk/d33 Disk sum51001, sum50901

dsk/d32 Disk sum51001, sum50901

dsk/d31 Disk sum51001, sum50901

dsk/d30 Disk sum51001, sum50901

dsk/d29 Disk sum51001, sum50901

 

root@sum51001 # format

Searching for disks...done

 

c10t60060E800548E900000048E900000403d0 : configured with capacity of 32.31GB

c10t60060E800548E900000048E900000404d0 : configured with capacity of 32.31GB

c10t60060E800570BA00000070BA000003F3d0 : configured with capacity of 32.31GB

c10t60060E800570BA00000070BA000003F4d0 : configured with capacity of 32.31GB

 

 

AVAILABLE DISK SELECTIONS :

 0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>

 /pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0

 1. c0t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>

 /pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0

  2. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>

 /pci@10,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0

 3. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>

 

root@sum51001 # cat /tmp/list

c10t60060E800548E900000048E900000403d0

c10t60060E800548E900000048E900000404d0

c10t60060E800570BA00000070BA000003F3d0

c10t60060E800570BA00000070BA000003F4d0

 

# cat /tmp/format_lun

# !/usr/bin/ksh

 for disk in cat /tmp/list

 do

 format $disk <<EOF

 label

 y

 q

EOF

done

 

root@sum51001 # chmod a+x /tmp/format_lun

root@sum51001 # /tmp/format_lun

 

c10t60060E800548E900000048E900000403d0 : configured with capacity of 32.31GB

selecting c10t60060E800548E900000048E900000403d0

[disk formatted]

 

 

FORMAT MENU :

 disk - select a disk

 type - select (define) a disk type

 partition - select (define) a partition table

 current - describe the current disk

 format - format and analyze the disk

 repair - repair a defective sector

 label - write label to the disk

 analyze - surface analysis

 defect - defect list management

 backup - search for backup labels

 verify - read and display labels

 save - save new disk/partition definitions

 inquiry - show vendor, product and revision

 volname - set 8-character volume name

  !<cmd> - execute <cmd>, then return

 quit

format> Ready to label disk, continue ?

format>

c10t60060E800548E900000048E900000404d0 : configured with capacity of 32.31GB

selecting c10t60060E800548E900000048E900000404d0

format> Ready to label disk, continue ?

format> root@sum51001 #

 

root@sum51001 # vxdctl enable

 

 

root@sum51001 # vxdisk -e list

B18665_198 auto - - online c10t60060E800548E900000048E900000404d0s2

B18665_199 auto - - online c10t60060E800548E900000048E900000403d0s2

B28858_198 auto - - online c10t60060E800570BA00000070BA000003F4d0s2

B28858_199 auto - - online c10t60060E800570BA00000070BA000003F3d0s2

 

 

root@sum51001 # /etc/vx/bin/vxdisksetup -i B28858_198

root@sum51001 # /etc/vx/bin/vxdisksetup -i B28858_199

root@sum51001 # /etc/vx/bin/vxdisksetup -i B18665_198

root@sum51001 # /etc/vx/bin/vxdisksetup -i B18665_199

 

root@sum51001 # vxdg init P03_drp1 B28858_198=B28858_198

root@sum51001 # vxdisk -g P03_drp1 list

DEVICE TYPE DISK GROUP STATUS

B28858_198 auto:sliced B28858_198 P03_drp1 online

 

root@sum51001 # vxdg -g P03_drp1 adddisk B28858_199=B28858_199

root@sum51001 # vxdg -g P03_drp1 adddisk B18665_198=B18665_198

root@sum51001 # vxdg -g P03_drp1 adddisk B18665_199=B18665_199

 

root@sum51001 # vxdisk -g P03_drp1 list

DEVICE TYPE DISK GROUP STATUS

B18665_198 auto:sliced B18665_198 P03_drp1 online

B18665_199 auto:sliced B18665_199 P03_drp1 online

B28858_198 auto:sliced B28858_198 P03_drp1 online

B28858_199 auto:sliced B28858_199 P03_drp1 online

 

root@sum51001 # vxprint -g P03_drp

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg P03_drp P03_drp - - - - - -

 

dm B18665_187 B18665_187 - 67752960 - - - -

dm B18665_188 B18665_188 - 67752960 - - - -

dm B18665_189 B18665_189 - 67752960 - - - -

dm B28858_187 B28858_187 -  67752960 - - - -

dm B28858_188 B28858_188 - 67752960 - - - -

dm B28858_189 B28858_189 - 67752960 - - - -

 

v SAPdrp997 fsgen ENABLED 67108864 - ACTIVE  - -

pl SAPdrp997-01 SAPdrp997 ENABLED 67108864 - ACTIVE - -

sd B18665_187-01 SAPdrp997-01 ENABLED 67108864 0 - - -

pl SAPdrp997-02 SAPdrp997 ENABLED 67108864 - ACTIVE - -

sd B28858_187-01 SAPdrp997-02 ENABLED 67108864 0 - - -

pl SAPdrp997-03 SAPdrp997 ENABLED LOGONLY - ACTIVE - -

sd B18665_187-02 SAPdrp997-03 ENABLED 1056 LOG - - -

 

v SAPdrp998 fsgen ENABLED 67108864 -  ACTIVE - -

pl SAPdrp998-01 SAPdrp998 ENABLED 67108864 - ACTIVE - -

sd B18665_188-01 SAPdrp998-01 ENABLED 67108864 0 - - -

pl SAPdrp998-02 SAPdrp998 ENABLED 67108864 - ACTIVE - -

sd B28858_188-01 SAPdrp998-02 ENABLED 67108864 0 - - -

pl SAPdrp998-03 SAPdrp998 ENABLED LOGONLY - ACTIVE - -

sd B18665_188-02 SAPdrp998-03 ENABLED 1056 LOG - - -

 

v SAPdrp999 fsgen ENABLED 67108864 - ACTIVE - -

pl SAPdrp999-01 SAPdrp999 ENABLED 67108864 - ACTIVE - -

sd B18665_189-01 SAPdrp999-01 ENABLED 67108864 0 - - -

pl SAPdrp999-02 SAPdrp999 ENABLED 67108864 - ACTIVE -  -

sd B28858_189-01 SAPdrp999-02 ENABLED 67108864 0 - - -

pl SAPdrp999-03 SAPdrp999 ENABLED LOGONLY - ACTIVE - -

sd B18665_189-02 SAPdrp999-03 ENABLED 1056 LOG - - -

root@sum51001 # vxprint -g P03_drp1

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg P03_drp1 P03_drp1 - - - - - -

 

dm B18665_198 B18665_198 - 67752960 - - - -

dm B18665_199 B18665_199 - 67752960 - - - -

dm B28858_198 B28858_198 - 67752960 - - - -

dm B28858_199 B28858_199 - 67752960 - - - -

root@sum51001 #

 

root@sum51001 # vxassist -g P03_drp1 make SAPdrp1a 30g layout=mirror B18665_198 B28858_198

root@sum51001 # vxassist -g P03_drp1 make SAPdrp1b 30g layout=mirror B18665_199 B28858_199

 

root@sum51001 # vxtask list

TASKID PTID TYPE/STATE PCT PROGRESS

 246 RDWRBACK/R 99.36% 0/62914560/62509056 VOLSTART SAPdrp1b P03_drp1

root@sum51001 #

 

root@sum51001 # vxprint -g P03_drp1

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg P03_drp1 P03_drp1 - - - - -  -

 

dm B18665_198 B18665_198 - 67752960 - - - -

dm B18665_199 B18665_199 - 67752960 - - - -

dm B28858_198 B28858_198 - 67752960 - - - -

dm B28858_199 B28858_199  - 67752960 - - - -

 

v SAPdrp1a fsgen ENABLED 62914560 - ACTIVE - -

pl SAPdrp1a-01 SAPdrp1a ENABLED 62914560 - ACTIVE - -

sd B18665_198-01 SAPdrp1a-01 ENABLED 62914560 0 - - -

pl SAPdrp1a-02 SAPdrp1a ENABLED 62914560 - ACTIVE - -

sd B28858_198-01 SAPdrp1a-02 ENABLED 62914560 0 - - -

 

v SAPdrp1b fsgen ENABLED 62914560 - ACTIVE - -

pl SAPdrp1b-01 SAPdrp1b ENABLED 62914560 - ACTIVE - -

sd B18665_199-01 SAPdrp1b-01 ENABLED 62914560 0 - - -

pl SAPdrp1b-02 SAPdrp1b ENABLED 62914560 - ACTIVE - -

sd B28858_199-01 SAPdrp1b-02 ENABLED 62914560 0 - - -

 

root@sum51001 # vxassist -g P03_drp1 addlog SAPdrp1a B18665_198

root@sum51001 # vxassist -g P03_drp1 addlog SAPdrp1b B18665_199

root@sum51001 # vxprint -g P03_drp1

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg P03_drp1 P03_drp1 - - - - - -

 

dm B18665_198 B18665_198 - 67752960 - - - -

dm B18665_199 B18665_199 - 67752960 - - - -

dm B28858_198 B28858_198 - 67752960 - - - -

dm B28858_199 B28858_199 - 67752960 - - - -

 

v SAPdrp1a fsgen ENABLED 62914560 - ACTIVE - -

pl SAPdrp1a-01 SAPdrp1a ENABLED 62914560 - ACTIVE - -

sd B18665_198-01 SAPdrp1a-01 ENABLED 62914560 0 - - -

pl SAPdrp1a-02 SAPdrp1a ENABLED 62914560 - ACTIVE - -

sd B28858_198-01 SAPdrp1a-02 ENABLED 62914560 0 - -  -

pl SAPdrp1a-03 SAPdrp1a ENABLED LOGONLY - ACTIVE - -

sd B18665_198-02 SAPdrp1a-03 ENABLED 528 LOG - - -

 

v SAPdrp1b fsgen ENABLED 62914560 - ACTIVE - -

pl SAPdrp1b-01 SAPdrp1b  ENABLED 62914560 - ACTIVE - -

sd B18665_199-01 SAPdrp1b-01 ENABLED 62914560 0 - - -

pl SAPdrp1b-02 SAPdrp1b ENABLED 62914560 - ACTIVE - -

sd B28858_199-01 SAPdrp1b-02 ENABLED 62914560 0 - - -

pl SAPdrp1b-03 SAPdrp1b ENABLED LOGONLY - ACTIVE - -

sd B18665_199-02 SAPdrp1b-03 ENABLED 528 LOG - - -

 

root@sum51001 # cldg create -t vxvm -n sum51001,sum50901 P03_drp1

 

root@sum51001 # cldg list

P03_drp1

P03_drp

Q03_other

Q03_tmp

Q03_redo

Q03_data

P03_redo

P03_data

P03_tmp

P03_other

 

root@sum50901 # cldg show

 

=== Device Groups ===

 

Device Group Name : P03_drp1

 Type : VxVM

 failback : false

 Node List : sum51001, sum50901

 preferenced : false

 numsecondaries : 1

 diskgroup name : P03_drp1

 

Device Group Name : P03_drp

 Type : VxVM

 failback : false

 Node List :  sum51001, sum50901

 preferenced : false

 numsecondaries : 1

 diskgroup name : P03_drp

 

Device Group Name : Q03_other

 Type : VxVM

 failback : false

 Node List : sum50901

 preferenced : false

 numsecondaries :  1

 diskgroup name : Q03_other


Statistiques

Dernière mise à jour

mercredi 4 octobre 2023

Publication

273 Articles
Aucun album photo
Aucune brève
6 Sites Web
2 Auteurs

Visites

183 aujourd’hui
205 hier
864002 depuis le début
8 visiteurs actuellement connectés