how to create veritas fs ?

Hi ,i need a procedure how to build veritas fs from scratch ( steps from disk to volume )Thanks.
[117 byte] By [chapaya] at [2007-11-26 10:30:01]
# 1
Veritas filesystem can run on any block device. So you'd do it the same as you would for any other filesystem (either create a slice or a volume). Then, use 'mkfs -F vxfs <special>' where <special> is the raw device for either the slice or volume.--
Darren_Dunham at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2
This reply is for the first postYou are mixing the Veritas volume manager with file system.You can have Veriats file system on non veritas volume and ufs on veriats volume.
dombal at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Hi ,I'm looking for steps for creating veritas fs with veritas volume manger ( contains : sd ,flex dg , volume ) .Thanks .
chapaya at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
I think you mean a UFS fs with vxvm as a volume manager.Have a look at the cuddletech guides http://www.cuddletech.com/veritas/
robertcohen at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
Hi,I'm interested too in learning the VxVM and VxFS on Solrais,Except reading the manuals and cuddletech which is about older versions,Do you know another good website with learning stuff?Thanks
AssafL at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6
Hi ,As assaf said , i'm looking for a simple procedure how to bulid a volume from scratch.For example : i have 3 disks c1t1d0 ,c1t12d0,i want to bulid a dg with mirror with 2 volume fs1 and fs2 size 1g each .Thanks .
chapaya at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7

Here are the commands you should use:

Initialize the disks

#/etc/vx/binvxdisksetup -i disk1

#/etc/vx/binvxdisksetup -i disk2

#/etc/vx/binvxdisksetup -i disk3

Create the dg and add disks to it

#vxdg init datadg disk1 disk2 disk3

Create the volumes

#vxassist -g datadg -b make vol1 1g layout=mirror

#vxassist -g datadg -b make vol2 1g layout=mirror

You can monitor the volume being mirrored by:

#vxtask list

Create mount points

#mkdir path_to_mount1

#mkdir path_to_mount2

Format the new volumes with vxfs

#newfs -F vxfs /dev/vx/rdsk/datadg/vol1

#newfs -F vxfs /dev/vx/rdsk/datadg/vol2

Edit /etc/vfstab to add to above entries

#mount /dev/vx/dsk/datadg/vol1

#mount /dev/vx/dsk/datadg/vol2

This should do the trick for you.

cheers

ketan

ketupattu at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 8
Even though it was written about an older vxvm, it should still be basically accurate with the current versions. The basic commands havent changed much.
robertcohen at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 9
Thanks ketupattu !!!What about plex ? and sub disk creation ?
chapaya at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 10

You can create a volume using two approaches -

you create subdisks, plexes and then volumes OR you can let vxassist create it for you.

Unless you have a strong need to have volume components (subdisks/plexes) on specific disks/controller, you should go for vxassist. vxassist does a reasonable job in deciding the correct controller/disks.

Also, when you've added the disks to your system, first let your OS identify new disks by devfsadm; disks. Once OS has found the disks, let VM recognize the disks by vxdctl enable. You should see the vxdisk list output to find out the new disks added.

Ketan

ketupattu at 2007-7-7 2:36:17 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...