1837238 Members
2114 Online
110115 Solutions
New Discussion

Create a filesystem

 
SOLVED
Go to solution
Castro_3
Occasional Contributor

Create a filesystem

 
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Create a filesystem

Hi:

You have 2441 free Physical extents (PE) on each disk. Assuming that you would want to mirror your new filesystem, you have (with 4MB extents), 2441*4*1024 bytes available for new filesystems. Does that answer your question?

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: Create a filesystem

From all your LVs (lvol1->lvol11) the PE size is always double the LE size. That gives you an indication those LVs are mirrored. Since you only got 2 disks, the mirroring is straight forward, c2t2d0 is an exact duplicate of c1t2d0. Extents available to you are 2441 (from free PE). Take that multiply by 4 (since and extent is 4MB - from PE size) you get 9764MB available in vg00.
Sanjay_6
Honored Contributor

Re: Create a filesystem

Hi,

you have 4882 PE's available, and the PE size is 4MB,

Free PE 4882
PE Size (Mbytes) 4

So you can have a filesystem of size = 4882 * 4MB

If you want to have a mirror of this filesystem, the filesystem size will be halved, so you can have a 2441 * 4MB mirrored filesystem.

The max filesystem size that you can create on an hp server is 1TB,

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/16-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/16-toc.html&searchterms=filesystem%20size&queryid=20020708-134823

Hope this helps.

Regds

Uli Manschke
Valued Contributor
Solution

Re: Create a filesystem

Hi there,
maybe you just want to know the commands? It's not clear from the question.

First, create a new logical volume (LV):

lvcreate -L -n /dev/vg00,
e.g.
lvcreate -L 2000 -n oracle1 /dev/vg00

which creates a 2 GB volume named /dev/vg00/oracle1 and /dev/vg00/roracle1;
then mirror this LV (since all your other LV's are mirrored, I assume you want to mirror this one too):

lvextend -m 1 /dev/vg00/oracle1

(this creates one mirror, by default on another physical disk)

and now create a new filesystem on this LV (I assume a VxFS):

newfs -F vxfs /dev/vg00/roracle1

and mount it.

The max. supported filesystem size is 128 GB (as far as I remember for 11.0), although I've heard that it may be even larger, but unsupported).
Regards
uli
HP Software PreSales technical consultant
Castro_3
Occasional Contributor

Re: Create a filesystem

In fact are two questions.
How can I to create a filessystem whith disk mirroring (commands), and Which is the the size max off a filesystem?
Thanks
Andrew_80
Advisor

Re: Create a filesystem

Your Maximum mirrored file system size is
2441*4*1024 = 9998336 That is 9,998,336 GB

The way to create this file system is

lvcreate -n lv## /dev/vg00
lvextend -l 2441 /dev/vg00/lv##
lvextend -m 1 /dev/vg00/lv##
newfs -F vxfs -o largefiles /dev/vg00/rlv##

I hope this answers your question.
The Sky is the Limit
Bart Beeren
Advisor

Re: Create a filesystem

Hi,

The maximum of the filesystem you already got.

For creating, adding to fstab-file and mounting do the following:

lvcreate -L -m 1 -n /dev/vg00 # creates filesystem off desired size and name with one mirror

newfs -F vxfs /dev/vg00/r # initializes the new filesystem

mkdir # make mount point

vi /etc/fstab
Add the following line: /dev/vg00/ vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2 #For automation of mounting the filesystem

chmod #set access rights
chown : #set owner and group
mount -a #mounts all not yet mounted file systems described in fstab


And off course if you do not want to do it by command-line, just use SAM.

I hope this will help you,
Regards BB
Life isn´t as simple as it seems
Peter Kloetgen
Esteemed Contributor

Re: Create a filesystem

Hi Castro,

if you are wondering about the maximum size of a file system, here it is:

vxfs: 2 Terrabytes
hfs: 128 GB

The rest of your question should have been answered allready.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping