What is a layered volume? how to create it using vxmake?

Answer Posted / deepak kumar

stripe- mirror
concat - mirror are layered volumes and

## First make subdisks
vxmake -g sybdg sd sybdg32-15 sybdg32,14607200,1365376
vxmake -g sybdg sd sybdg36-19 sybdg36,21389040,1365376
vxmake -g sybdg sd sybdg53-19 sybdg53,25483768,1365376
vxmake -g sybdg sd sybdg54-17 sybdg54,22355000,1365376
vxmake -g sybdg sd sybdg55-25 sybdg55,1767000,1365376
vxmake -g sybdg sd sybdg56-30 sybdg56,27216512,1365376##
Now make the plexes
vxmake -g sybdg plex datadev93-SV00A sd=sybdg32-15
vxmake -g sybdg plex datadev93-SV01A sd=sybdg36-19
vxmake -g sybdg plex datadev93-SV02A sd=sybdg53-19
vxmake -g sybdg plex datadev93-SV00B sd=sybdg54-17
vxmake -g sybdg plex datadev93-SV01B sd=sybdg55-25
vxmake -g sybdg plex datadev93-SV02B sd=sybdg56-30
## Now create sub volumes containing the plexes.
vxmake -g sybdg vol datadev93-SV00 plex=datadev93-
SV00A,datadev93-SV00B use_type=gen
vxmake -g sybdg vol datadev93-SV01 plex=datadev93-
SV01A,datadev93-SV01B use_type=gen
vxmake -g sybdg vol datadev93-SV02 plex=datadev93-
SV02A,datadev93-SV02B use_type=gen##
Let them be subvolumes
vxedit -g sybdg set layered=on datadev93-SV00 datadev93-
SV01 datadev93-SV02
## Activate!
vxvol -g sybdg init active datadev93-SV00
vxvol -g sybdg init active datadev93-SV01
vxvol -g sybdg init active datadev93-SV02
## Turn into subdisks so we can add them all to another plex
vxmake -g sybdg sd datadev93-SD00 datadev93-SV00,0,1365376
vxmake -g sybdg sd datadev93-SD01 datadev93-SV01,0,1365376
vxmake -g sybdg sd datadev93-SD02 datadev93-SV02,0,1365376
## Now create a new plex with all subvolumes in
vxmake -g sybdg plex datadev93-A sd=datadev93-
SD00,datadev93-SD01,datadev93-SD02 layout=stripe
st_width=128
## Now make the main volume
vxmake -g sybdg vol datadev93 plex=datadev93-A
use_type=genvxvol -g sybdg init active datadev93
#vxedit -g sybdg set user=sybase group=dba datadev93

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of Sam utility in solaris

2472


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2119


Local zone in shutting down state.how to bring state of zone to installed?

1738


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2373


What is the zone in DNS?

1985






What is cachefs?

2019


how can u give space garentee for volume in netapp storage

2902


How do u know that,what patch can be applicable on the system?

1898


In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

1845


Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

2837


How to create a gateway?

6612


hi to all,, i need few real time issues please provide me,, if you have any,,,

1830