Solved

Creating the File Systems from Scratch HP Unix.

Posted on 2006-11-28
3
291 Views
Last Modified: 2012-05-05
Hi I want to create the file systems from Sratch i have shared disk which i want make with as three file systems...
0
Comment
Question by:ratnaprasad
3 Comments
 
LVL 48

Assisted Solution

by:Tintin
Tintin earned 50 total points
ID: 18030977
What Unix flavour?
What type of filesystem?
0
 

Author Comment

by:ratnaprasad
ID: 18031487
1)Its HP Unix.
2)Normal File System newfs .
0
 
LVL 6

Accepted Solution

by:
JJSmith earned 450 total points
ID: 18033008

ratnaprasad - you've answered yourself

the command to use is 'newfs'

note that newfs uses the entire volume, so you may want to user LVM first. For example:

Say a disk (/dev/dsk/c1t1d1) of 36GB and we want to put 3 files systems of type vxfs and size 100,500 and 1000MB.

#Prepare the disk for LVM use.
pvcreate /dev/rdsk/c1t1d1
#create a volume group if you don't already have one
#Find the next group number:
ls -l  /dev/*/group
crw-r--r-- ... 64 0x000000 Jun 25 1956 /dev/vg00/group
crw-r--r-- ... 64 0x010000 Jun 25 1956 /dev/vg01/group
crw-r--r-- ... 64 0x020000 Jun 25 1956 /dev/vg02/group
#The first 2 hex digits after the '0x' are the group numbers, 00,01 & 02 in the example above, so "03" is not used.
mkdir /dev/vg03
mknod /dev/vg03/group c 64 0x030000
vgcreate /dev/vg123 /dev/dsk/c1t1d1
#create some logical volumes
lvcreate -n lvol1231 -L 100 /dev/vg123
lvcreate -n lvol1232 -L 500 /dev/vg123
lvcreate -n lvol1233 -L 1000 /dev/vg123
#create vxfs file systems
newfs -F vxfs /dev/vg123/lvol1231
newfs -F vxfs /dev/vg123/lvol1232
newfs -F vxfs /dev/vg123/lvol1233
#create some mount points
mkdir -p /flsys1 /flsys2 /flsys3
#mount file systems
mount /dev/vg123/lvol1231 /flsys1
mount /dev/vg123/lvol1232 /flsys2
mount /dev/vg123/lvol1233 /flsys3
#confirm
bdf


you may want to edit /etc/fstab to automount your new file systems.

you could also use 'sam' to manage your storage if you are uncomfortable with the command line.

Cheers
JJ

0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question