Create veritas file system Solaris
We have an impressive footprint of Sun server mainly M8000, M5000 and E2900 where frequently we have to create Veritas file system on storage provisioned from Clariions. Since, we handle both the Unix and Storage team it becomes rather easy to fulfill business requirement and avoid possible delays. Once the storage is provisioned we start like this:
1. As leadville drivers are in place on Solaris 10 servers, use cfgadm -al to determine the attachment points for external FC.
2. Use cfgadm -c configure, repeat this for all Ap_Id ,Changing the state of the attachment point for making the occupant hardware resource to be usable by OS
3. devfsadm -C ,Asking the drivers to do whatever to probe for the new devices and build subsequently the device files, it also create links for the files like /dev/rdsk/c1t0dos0 etc
4. powercf -q ,Create emcpower pseudo devices for the newly detected luns
5. powermt config ,Creates powerpath configuration
6. powermt save ,Commit the changes to disk
7. format (Label the disk). Repeat this for all the luns.
8. vxdctl enable ,vxconfigd runs in enable mode to rescan for the new devices
9. vxdisk list ,To verify veritas is able to see the new luns, check the state should be online invalid)
10. /etc/vx/bin/vxdisksetup -i emcpowerX ,Setup the disk in cds format, which is default in VxVm 5.0 and above and initializes the disk. Repeat this for all the new luns.
11. vxdg initDisk1=emcpowerX Disk2=emcpowerY , for all the disks that should be a part of the disk group. You can use -T option if you plan to deport and import the diskgroup on another Solaris machine with lower disk group version.
12. vxassist -gmake size. Creates the volume to be used later for creating the file system later
13. mkfs -F vxfs -o logsize=32768,bsize=8192,largefiles /dev/rdsk/dg_name/volume
, This is veritas recommended intent log size for volume greater than 512 GB. The calculation is multiple of bsize*logsize<=256MB for file system size > 512 GB. If the file system size is less than 512 GB, then the recommended intent log size is 64 MB. If we are using a block size of 4096 then for 64MB intent log we will have to use 16384 as logsize parameter.
14. Mount the file system.
1. As leadville drivers are in place on Solaris 10 servers, use cfgadm -al to determine the attachment points for external FC.
2. Use cfgadm -c configure
3. devfsadm -C ,Asking the drivers to do whatever to probe for the new devices and build subsequently the device files, it also create links for the files like /dev/rdsk/c1t0dos0 etc
4. powercf -q ,Create emcpower pseudo devices for the newly detected luns
5. powermt config ,Creates powerpath configuration
6. powermt save ,Commit the changes to disk
7. format (Label the disk). Repeat this for all the luns.
8. vxdctl enable ,vxconfigd runs in enable mode to rescan for the new devices
9. vxdisk list ,To verify veritas is able to see the new luns, check the state should be online invalid)
10. /etc/vx/bin/vxdisksetup -i emcpowerX ,Setup the disk in cds format, which is default in VxVm 5.0 and above and initializes the disk. Repeat this for all the new luns.
11. vxdg init
12. vxassist -g
13. mkfs -F vxfs -o logsize=32768,bsize=8192,largefiles /dev/rdsk/dg_name/volume
, This is veritas recommended intent log size for volume greater than 512 GB. The calculation is multiple of bsize*logsize<=256MB for file system size > 512 GB. If the file system size is less than 512 GB, then the recommended intent log size is 64 MB. If we are using a block size of 4096 then for 64MB intent log we will have to use 16384 as logsize parameter.
14. Mount the file system.
Comments
Post a Comment