LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Creating Subdisks in Veritas Volume Manager (https://www.linuxquestions.org/questions/solaris-opensolaris-20/creating-subdisks-in-veritas-volume-manager-859471/)

vikas027 01-29-2011 06:38 PM

Creating Subdisks in Veritas Volume Manager
 
Hi All,

I am new to Veritas Volume Manager (VxVM). I have just installed VxVM 5.0 in Solaris 10 x86 system.

I am having difficulties creating subdisks of desired size in VM Disks of Veritas.

This is what I have done till now,
Code:

bash-3.00# vxdisk -o alldgs list
DEVICE      TYPE            DISK        GROUP        STATUS
c0t0d0s2    auto:none      -            -            online invalid
c2t0d0s2    auto:none      -            -            online invalid
c2t1d0s2    auto:none      -            -            online invalid
c2t2d0s2    auto:none      -            -            online invalid
c2t3d0s2    auto:none      -            -            online invalid
bash-3.00#
bash-3.00# vxdisksetup -i c2t0d0 format=cdsdisk publen=2086656 privlen=2048
bash-3.00# vxdg init dg1 disk01=c2t0d0s2
bash-3.00#  vxdg -g dg1 free
DISK        DEVICE      TAG          OFFSET    LENGTH    FLAGS
disk01      c2t0d0s2    c2t0d0      0        2086656  -
  -

Now, I have 2086656 sectors in public region of VM Disk disk01.

This 2086656 sectors are equal to 1018 MB (2086656 / 2 / 1024).

How can I create 3 subdisks (disk01-01, disk01-02 and disk01-03) in it, say of size 339 MB each roughly ?

339 MBs are equal to 694272 sectors. (339 * 2 * 1024).

mesiol 01-29-2011 11:52 PM

Hi,

i think this will help:
Code:

Syntax:
vxmake sd subdisk diskname,offset,length

Plex one:
vxmake -g dg1 sd disk01-01 disk01,0,339m

You can check offset for next subdisk using vxprint.

vikas027 02-01-2011 12:42 PM

Quote:

Originally Posted by mesiol (Post 4242061)
Hi,

i think this will help:
Code:

Syntax:
vxmake sd subdisk diskname,offset,length

Plex one:
vxmake -g dg1 sd disk01-01 disk01,0,339m

You can check offset for next subdisk using vxprint.

Thanks a lot Mesiol works perfectly. Sorry for the late reply, I was too busy with things around.


All times are GMT -5. The time now is 09:38 PM.