1752801 Members
5589 Online
108789 Solutions
New Discussion юеВ

Create new filesystem

 
SOLVED
Go to solution
Hkandati
Occasional Advisor

Create new filesystem

Hi All

I want to create a new filesystem in HP-UX 11i machine.

Please assit me.

Thanks
Hari
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: Create new filesystem

# lvcreate -L size_in_MB -n lvname /dev/vgxx
example
# lvcreate -L 500 -n lv_test /dev/vg01
will create a logical volume named lv_test size 500MB
# newfs -F vxfs /dev/vgxx/rlv_test
note the r!
This will create the filesystem on the lv lv_test

Hope this helps a bit.
Robert-Jan
Sandman!
Honored Contributor

Re: Create new filesystem

See the EXAMPLES section under the lvm(7) manpage:

# man 7 lvm
Avinash Agarkar
Valued Contributor

Re: Create new filesystem

Hi Hari,

Do you already have the vg created or not if not then follow the below procedure

first
ioscan -fnCdisk [check the new physical disk]
then

pvcreate -f /dev/dsk/x0t1d0 [new disk path]

mkdir /dev/new vg name
cd /dev/new vg name

check the group file
ll /dev/*/group

create the new group files -
mknod group c 64 [major and minor no ]

create vgcreate -
vgcreate /dev/new vg name

check the vgdisplay output -
vgdisplay new vg name | more

check the total PE

create the new lv
lvcreate -L [size of PE] -n [new lvname] /dev/new vgname

create new mount point
mkdir new mount point name

create new file system on the mount point
newfs -F vxfs -o largefiles /dev/newvgname/r[new lvname ]

add the mount point name in fstab

use mount command.

Thanks,
Avinash
Great Power Comes With Great Responsibility