2012
10.31

Voici un lien vers une fiche VxVM:
Man symantec

fiche utile sur users.skynet.be

1. Création du DiskGroup

1.1 Formatage des disques


/etc/vx/bin/vxdisksetup -i 353_7 format=cdsdisk
/etc/vx/bin/vxdisksetup -i 353_8 format=cdsdisk
/etc/vx/bin/vxdisksetup -f -i 635_7 format=cdsdisk
/etc/vx/bin/vxdisksetup -f -i 635_8 format=cdsdisk

1.2 Creation du VG

vxdg init DiskGroup 353-HR5-03C3=353_7 353-HR5-03C4=353_8 635-HR5-0110=635_7 635-HR5-0111=635_8 cds=on

2 Création du FS VxVM

2.1 Creation du Volume


vxassist -g DiskGroup make Volume SIZEm mirror=enclr layout=mirror-concat alloc=dd1,dd2


–> mirror=enclr specifies that disks in a mirror should not be from the same enclosure as disks in other mirrors within the same volume.

–> layout=mirror-concat specifies that new volumes should be mirrored. The mirroring is done at the volume level.


2.2 Montage du Volume


mkfs -t vxfs /dev/vx/rdsk/DiskGroup/rep
mkdir -p /exploit/tws/reflex/Volume
mount -t vxfs -o suid /dev/vx/dsk/DiskGroup/Volume /exploit/tws/reflex/rep

2.3 Mise en place de Snapshot

vxsnap – enable DRL on a volume, and create and administer instant snapshots

vxsnap -g DiskGroup -f unprepare Volume
vxsnap -g DiskGroup prepare Volume regionsize=512k mirror=enclosure
vxprint -g DiskGroup -F%fastresync Volume

2.4 Mise en place d’un disque sharé


[root@tlspngs1 ~]# vxdisk -eo alldgs list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
0294_1cee auto:cdsdisk 0294_dp_1cee dgl-tlspngs101-tech online thinrclm sdt tprclm
0294_1cf0 auto:cdsdisk - - online thinrclm sdu tprclm
0294_1cf1 auto:none - - online invalid sdy tprclm
0294_173a auto:cdsdisk - (vxfencoorddg) online thinrclm sdw tprclm
0294_173b auto:cdsdisk - (vxfencoorddg) online thinrclm sdx tprclm
0294_1739 auto:cdsdisk - (vxfencoorddg) online thinrclm sdv tprclm
0294_2059 auto:none - - online invalid sdz tprclm
0372_1cee auto:cdsdisk 0372_dp_1cee dgl-tlspngs101-tech online thinrclm sdab tprclm
0372_1cf0 auto:cdsdisk 0372_dp_1cf0 dgc-pconsolidated01-tech online thinrclm shared sdac tprclm
0372_1cf1 auto:none - - online invalid sdaf tprclm
0372_1726 auto:cdsdisk - (vxfencoorddg) online thinrclm sdad tprclm
0372_1727 auto:cdsdisk - (vxfencoorddg) online thinrclm sdae tprclm
0372_2059 auto:none - - online invalid sdag tprclm
- - 0294_dp_1cf0 dgc-pconsolidated01-tech failed was:0294_1cf0

On va ajouter le diskl 0294_1cf0 au dg sharé dgc-pconsolidated01-tech

On supprime le disk du dg dgc-pconsolidated01-tech ( car il est mal placé )

[root@tlspngs1 ~]# vxdg -g dgc-pconsolidated01-tech rmdisk 0294_dp_1cf0
[root@tlspngs1 ~]# vxdisk -eo alldgs list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
0294_1cee auto:cdsdisk 0294_dp_1cee dgl-tlspngs101-tech online thinrclm sdt tprclm
0294_1cf0 auto:cdsdisk - - online thinrclm sdu tprclm
0294_1cf1 auto:none - - online invalid sdy tprclm
0294_173a auto:cdsdisk - (vxfencoorddg) online thinrclm sdw tprclm
0294_173b auto:cdsdisk - (vxfencoorddg) online thinrclm sdx tprclm
0294_1739 auto:cdsdisk - (vxfencoorddg) online thinrclm sdv tprclm
0294_2059 auto:none - - online invalid sdz tprclm
0372_1cee auto:cdsdisk 0372_dp_1cee dgl-tlspngs101-tech online thinrclm sdab tprclm
0372_1cf0 auto:cdsdisk 0372_dp_1cf0 dgc-pconsolidated01-tech online thinrclm shared sdac tprclm
0372_1cf1 auto:none - - online invalid sdaf tprclm
0372_1726 auto:cdsdisk - (vxfencoorddg) online thinrclm sdad tprclm
0372_1727 auto:cdsdisk - (vxfencoorddg) online thinrclm sdae tprclm
0372_2059 auto:none - - online invalid sdag tprclm

On ajoute le disk du dg dgc-pconsolidated01-tech

[root@tlspngs1 ~]# vxdg -g dgc-pconsolidated01-tech adddisk 0294_dp_1cf0=0294_1cf0
[root@tlspngs1 ~]# vxdisk -eo alldgs list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR
0294_1cee auto:cdsdisk 0294_dp_1cee dgl-tlspngs101-tech online thinrclm sdt tprclm
0294_1cf0 auto:cdsdisk 0294_dp_1cf0 dgc-pconsolidated01-tech online thinrclm shared sdu tprclm
0294_1cf1 auto:none - - online invalid sdy tprclm
0294_173a auto:cdsdisk - (vxfencoorddg) online thinrclm sdw tprclm
0294_173b auto:cdsdisk - (vxfencoorddg) online thinrclm sdx tprclm
0294_1739 auto:cdsdisk - (vxfencoorddg) online thinrclm sdv tprclm
0294_2059 auto:none - - online invalid sdz tprclm
0372_1cee auto:cdsdisk 0372_dp_1cee dgl-tlspngs101-tech online thinrclm sdab tprclm
0372_1cf0 auto:cdsdisk 0372_dp_1cf0 dgc-pconsolidated01-tech online thinrclm shared sdac tprclm
0372_1cf1 auto:none - - online invalid sdaf tprclm
0372_1726 auto:cdsdisk - (vxfencoorddg) online thinrclm sdad tprclm
0372_1727 auto:cdsdisk - (vxfencoorddg) online thinrclm sdae tprclm
0372_2059 auto:none - - online invalid sdag tprclm

On recrée le mirroir etre nos disques sur le volums dg_LIB

[root@tlspngs1 ~]# vxassist -b -oiosize=1m -t thinmig -g dgc-pconsolidated01-tech dg_LIB 0294__dp_1cf0
[root@tlspngs1 ~]# vxdisk list
DEVICE TYPE DISK GROUP STATUS
0294_1cee auto:cdsdisk 0294_dp_1cee dgl-tlspngs101-tech online thinrclm
0294_1cf0 auto:cdsdisk 0294_dp_1cf0 dgc-pconsolidated01-tech online thinrclm shared
0294_1cf1 auto:none - - online invalid
0294_173a auto:cdsdisk - - online thinrclm
0294_173b auto:cdsdisk - - online thinrclm
0294_1739 auto:cdsdisk - - online thinrclm
0294_2059 auto:none - - online invalid
0372_1cee auto:cdsdisk 0372_dp_1cee dgl-tlspngs101-tech online thinrclm
0372_1cf0 auto:cdsdisk 0372_dp_1cf0 dgc-pconsolidated01-tech online thinrclm shared 0294_1cf0
0372_1cf1 auto:none - - online invalid
0372_1726 auto:cdsdisk - - online thinrclm
0372_1727 auto:cdsdisk - - online thinrclm
0372_2059 auto:none - - online invalid
[root@tlspngs1 ~]#

Aucun commentaire.

Ajoutez votre commentaire

%d blogueurs aiment cette page :