Notice two plexes(pl) in the "vol1" volume:
# vxprint-qhtg savedg vol1
dg savedg default default 62000 1164917753.18.switch
dm d1 Disk_1 auto 2048 2066112 -
dm d2 Disk_0 auto 2048 2066112 -
v vol1 -ENABLED ACTIVE 204800 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
sd d2-01 vol1-01 d2 0 204800 0 Disk_0 ENA
pl vol1-02 vol1 ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 vol1-02 d1 0 204800 0 Disk_1 ENA
Dissociate the plex you wish to create the new volume with:
# vxplex -g savedg dis vol1-02
Make the new volume around the dissociated plex:
# vxmake -g savedg -U fsgen vol vol2 plex=vol1-02
The new volume is now created, and disabled:
# vxprint-qhtg savedg
dg savedg default default 62000 1164917753.18.switch
dm d1 Disk_1 auto 2048 2066112 -
dm d2 Disk_0 auto 2048 2066112 -
v vol1 -ENABLED ACTIVE 204800 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
sd d2-01 vol1-01 d2 0 204800 0 Disk_0 ENA
v vol2 -DISABLED EMPTY 204800 ROUND - fsgen
pl vol1-02 vol2 DISABLED EMPTY 204800 CONCAT - RW
sd d1-01 vol1-02 d1 0 204800 0 Disk_1 ENA
Rename the plex object to match the new volume name(optional):
# vxedit -g savedg rename vol1-02 vol2-01
Start the new volume:
# vxvol -g savedg start vol2
The volume is now enabled with the new plex name:
# vxprint -qhtg savedg
dg savedg default default 62000 1164917753.18.switch
dm d1 Disk_1 auto 2048 2066112 -
dm d2 Disk_0 auto 2048 2066112 -
v vol1 -ENABLED ACTIVE 204800 SELECT - fsgen
pl vol1-01 vol1 ENABLED ACTIVE 204800 CONCAT - RW
sd d2-01 vol1-01 d2 0 204800 0 Disk_0 ENA
v vol2 -ENABLED ACTIVE 204800 ROUND - fsgen
pl vol2-01 vol2 ENABLED ACTIVE 204800 CONCAT - RW
sd d1-01 vol2-01 d1 0 204800 0 Disk_1 ENA
Mount the volume on a new mount point:
# mkdir /vol2
# mount -Fvxfs /dev/vx/dsk/savedg/vol2 /vol2