Create filesystem using VxVM and controlled under VCS

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

Following are the steps to create a volume and filesystem and put under Veritas ClusterServer.

* Create a disk group

* Create mount poing and filesystem

* Deport a disk group

* create a service group

* Add resources to service group

1. Create a disk group

We will create a disk group using four disk’s and create a volume on it.

# vxdg init app1 disk01=c1t65d0s2 disk02=c1t66d0s2 disk03=c1t67d0s2 disk04=c1t68d0s2

# vxassist -g app1 make vol1 15g

2. Create a mount point and filesystem

# mkdir /vol1

# mkfs -F vxfs /dev/vx/rdsk/app1/appvol

3. Deport the disk group we just created

# vxdg deport app1

4. Create a service group

In order to create service group we should first be in read write mode

# haconf -makerw

# hagrp -add  appgroup

# hagrp -modify appgroup SystemList sparc1 0 sparc2 1

# hagrp -modify appgroup AutoStartList sparc1

5. Next step is to create resources for the service group

# hares -add app_dg DiskGroup appgroup

# hares -modify app_dg DiskGroup app1

# hares -add vol_mnt Mount appgroup

# hares -modify vol_mnt BlockDevice=/dev/vx/dsk/app1/appvol

# hares -modify vol_mnt FSType vxfs

# hares -modify vol_mnt MountPoint /vol1

# hares -modify vol_mnt FsckOpt %-y

# hares -link vol_mnt app_dg

Enable the resources

# hagrp -enableresources appgroup

# haconf -dump -makero

List the service group resources

# hagrp -resources appgroup

Bring the service group online

# hagrp -online appgroup -sys sparc1

Leave a Reply

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

Copyright 2017 ©Aceadmins. All rights reserved.