(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) Media/Device Information, Filesystems, and Disks :
How do I create a filesystem in a slice?
Now that we have a slice, we need a filesystem on it. To do this we'll use the 'mkfs' command twice: once to list the mkfs command used to create /home and once to create a vxfs filesystem on the new slice.
      1)  mkfs -m /dev/dsk/c0b0t0d0s4 > /tmp/doit
This command is used to list the mkfs command that was used to create /home. We'll use this because it is almost identical to the command that we need to make our vxfs filesystem. This is the output of the command:
mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=4, \ inosize=256,logsize=1024,nolargefiles /dev/dsk/c0b0t0d0s4 8787554 where I have used a \ to denote that the mkfs command was one long line. Now vi doit and change it to specify our new slice, then execute it as follows.
2) vi /tmp/doit as follows to add a vxfs filesystem to slice 5 that we created in Question (3.30):
/tmp/doit +-------------------------------------------------------------------- | mkfs -F vxfs -o ninode=unlimited,bsize=1024,version=4,inosize=256, \ | logsize=1024,nolargefiles /dev/dsk/c0b0t0d0s5 272790 |
In this file I changed the last two "words." Save the file.
3) Use you new doit file to create the filesystem:
# sh /tmp/doit
Now there is a filesystem on our new slice. To complete the whole process, we want to create a mount point directory like /home2, and then go into scoadmin filesystem to let the system know about the mount configuration and to let it update /etc/vfstab so that we can simply type: mount /home2 instead of the whole c0b0t0d0s5 stuff, anytime we want to mount it.

<mschalit@pacbell.net>
gerberb@zenez.com

[Append to This Answer]
Previous: (Answer) How do I create a slice in a partition?
Next: (Answer) How do I use quotas on a vxfs filesystem in Uw7/OSR6?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=92
[Search] [Appearance]
This is a Faq-O-Matic 2.721.