make a filessystem
1.Create a disk group
2.Create a mount point and file system
3.Deport a disk group
4.Create a service group
Add following resources and modify attributes:
Resources Name Attributes
1. Disk group, disk group name
2. Mount block device, FSType, MountPoint
Create dependency between following resources:
1. Mount and disk group
Enable all resources in this service group.
The following example shows how to create a raid-5 volume with a VxFS file system and put it under VCS control.
Method 1 – Using the command line
1. Create a disk group using Volume Manager with a minimum of 4 disks:
# vxdg init datadg disk01=c1t1d0s2 disk02=c1t2d0s2 disk03=c1t3d0s2 disk04=c1t4d0s2
# vxassist -g datadg make vol01 2g layout=raid5
2. Create a mount point for this volume:
# mkdir /vol01
3. Create a file system on this volume:
# mkfs -F vxfs /dev/vx/rdsk/datadg/vol01
4. Deport this disk group:
# vxdg deport datadg