1822430 Members
2748 Online
109642 Solutions
New Discussion юеВ

creating new file system

 
Lakshmikanth Baddam
Frequent Advisor

creating new file system

Hi,

i want to create new file system's on my new HP-UX boxes. Please give me the brief steps how to do that.


Thnx
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: creating new file system

Hi:

While I prefer using the LVM commands, I would suggest that you use SAM until you understand the paths involved.

A summary of LVM commands and their use can be found in the 'lvm(7)' manpages.

http://docs.hp.com/en/B2355-60127/lvm.7.html

A much more detailed discussion about setting up LVM and filesystems is covered here:

http://docs.hp.com/en/B2355-90950/index.html

Even if you elect to use SAM, I urge you to read the aforementioned documents.

Regards!

...JRF...
Deoncia Grayson_1
Honored Contributor

Re: creating new file system

you must first create a logical volume

lvcreate -L (size) -n (logical volume name) vg??(volume group name)

newfs -F vxfs -o largefile /dev/vg??/lvol??

mkdir ???

mount -F vxfs /dev/vg??/lvol?? /(new mount point)

add entry /etc/fstab

or just use sam
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Steven E. Protter
Exalted Contributor

Re: creating new file system

Shalom,

lvcreate -n logicalvolumename vg##
lvextend -L size in M /dev/vg##/logicalvolumename
newfs -F vxfs /dev/vg##/rlogicalvolumename
# extend existing extendfs /dev/v##/rlogicalvolumename

I believe you used my mail form to contact me on a SG issue. The email address you used was not valid and I was unable to reply. If I am correct, please try again.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: creating new file system

It's very simple:

1) Create a new LVOL using lvcreate (or dedicate an entire disk to a filesystem).
e.g. lvcreate -L 512 -n lvol4 /dev/vg02

2) newfs -F vxfs /dev/vg02/rlvol4

3) Create a mountpoint
e.g. mkdir /mickey

4) Create an /etc/fstab entry:
/dev/vg02/lvol4 /mickey vxfs rw,suid,delaylog 0 2

5) mount /mickey

OR use SAM -> Disks and Filesystems to do all of these tasks.
If it ain't broke, I can fix that.
IT_2007
Honored Contributor

Re: creating new file system

sam is not good way to create filesystems.

Command line is best option to create.

1. Initialize disk using pvcreate command
2. mkdir /dev/vgname
3. mknod /dev/vgname/group c 64 0x??0000
where ?? - minor number and shouldn't be used. you can check using ll /dev/vg*/group
4. vgcreate /dev/vgname physical volume1 ..
5. lvcreate -L new size /dev/vgname
6. newfs -F vxfs -o largefiles /dev/vgname/rlvol??
7. mkdir /mountpoint
8. add entry into /etc/fstab
/dev/vgname/lvol?? /mountpoint vxfs delaylog 0 2