To create volume and filesystem on VXVM

This entry was posted in Unix and tagged on June 17, 2012, by

Consider the following example to create volume and filesystem

DISKS: c0t1d0 cot2d0 c0t3d0 c0t4d0

DISK GROUP : apps

VOLUME: appsvol

MOUNT POINT: data

1. First we will create disk group

# vxdg init apps disk01=c0t1d0 disk02=c0t2d0 disk03=c0t3d0 disk04=c0t4d0

This will create disk group of the name apps.

2. Check that disk group has been added

# vxdisk -o alldgs list

3. Now create volume on the group apps

# vxassist -g apps make appsvol 16g

This command will create volume name appsvol with 16g space

4. Now display the volume just created

# vxprint -g apps -l appsvol

OR

# vxprint -ht

5. Enable the volume, when it is created it is in disabled mode

# vxvol -g apps start appsvol

6. Now next step is to create a file system , in order use the volume

# mkfs -F vxfs /dev/vx/rdsk/apps/appsvol

This will create a new file system

7. Next step is to create mount point

# mkdir /data

# mount -F vxfs /dev/vx/dsk/apps/appsvol /data

8. Now check if, it’s mounted

# df -ah

9. Edit into /etc/vfstab in order to bring it up on next boot.

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright 2017 ©Aceadmins. All rights reserved.