Operating System - HP-UX
1832973 Members
2361 Online
110048 Solutions
New Discussion

Mount a file system permently

 
SOLVED
Go to solution
JimKali
Advisor

Mount a file system permently

How to mount a file system permentely...

And what are the oracle fs we normally have
15 REPLIES 15
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Mount a file system permently

Mount a file system permanently

Add your filesystem to the /etc/fstab.

And what are the oracle fs we normally have

No idea, this will depend on your setup of oarcle.

Kenan Erdey
Honored Contributor

Re: Mount a file system permently

Hi,

if you mount file system from sam it adds the corresponding line to /etc/fstab. so it mounts automatically in start up.

Computers have lots of memory but no imagination
sreekanthtm
Trusted Contributor

Re: Mount a file system permently

Add mount point details in to /etc/fstab

A typical file system entry is as follows

/dev/vg00/lvol9 /sree vxfs delaylog 0 2

/dev/vg00/lvol9 --> Device name
/sree --> mount point
vxfs --> filesystem type
JimKali
Advisor

Re: Mount a file system permently

Actually I wanted to create two filesystems of 50 gig each..

say eg:
/dev/vgdatabase/lvolORA
/dev/vgsysystem/lvolOLA
/dev/vgsystem/lvolMLB


How can I do that...

show I do a vgcreate vgdb or will the above be a part of vg00 and a lvcreate lvolORA
sreekanthtm
Trusted Contributor

Re: Mount a file system permently

Need more input..........
post the ioscan -fnC disk o/p
Which are the physical volumes u want to create the File system.
Create a separate VG for that ( recomended)
Then lvcreate, newfs, mount.....
JimKali
Advisor

Re: Mount a file system permently

disk 3 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP SG146BCBA

/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s3
/dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0s1
disk 2 0/2/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP SG146BCBA
Tim Nelson
Honored Contributor

Re: Mount a file system permently

Lets start over.

So you wish to create two 50GB filesystems in either one or more volume groups.

1) find 100GB of storage.
Your ioscan showed two devices on that looks like it is the OS drive of unknown size, the other that has no device files created ( or it was cut off ).
disk 3 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP SG146BCBA

So lets find some free disk.
but first need to create the device files for 0.2.1.0.0.0.1 unless you simply cut them off in your previous post.

insf -eH 0.2.1.0

then repost:
ioscan -kfnC disk

While you are at it Post:
vgdisplay -v
JimKali
Advisor

Re: Mount a file system permently

Any document to mirrior the root disk
JimKali
Advisor

Re: Mount a file system permently

Any document to mirrior the root disk with 11.31
JimKali
Advisor

Re: Mount a file system permently

# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4356
VGDA 2
PE Size (Mbytes) 32
Total PE 4347
Alloc PE 998
Free PE 3349
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2178g
VG Max Extents 69696

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 56
Allocated PE 56
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 16
Allocated PE 16
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 128
Current LE 4
Allocated PE 4
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 7232
Current LE 226
Allocated PE 226
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 4352
Current LE 136
Allocated PE 136
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 8704
Current LE 272
Allocated PE 272
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk4_p2
PV Status available
Total PE 4347
Free PE 3349
Autoswitch On
Proactive Polling On


VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 8750
VGDA 2
PE Size (Mbytes) 16
Total PE 8750
Alloc PE 0
Free PE 8750
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 2240000m
VG Max Extents 140000


--- Physical volumes ---
PV Name /dev/disk/disk5
PV Status available
Total PE 8750
Free PE 8750
Autoswitch On
Proactive Polling On


# ioscan -kfnC disk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 3 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146BABCF
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s3
/dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0s1
disk 2 0/2/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG146BABCF
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0


Both the diska are 146 gig each...
JimKali
Advisor

Re: Mount a file system permently

# df
/johnsons (45.13.64.3:/johnsons ): 6254768 blocks 2970821 i-nodes
/dev/deviceFileSystem (DevFS ): 0 blocks 0 i-nodes
/home (/dev/vg00/lvol5 ): 248592 blocks 3883 i-nodes
/opt (/dev/vg00/lvol6 ): 4593488 blocks 72311 i-nodes
/tmp (/dev/vg00/lvol4 ): 11424 blocks 170 i-nodes
/usr (/dev/vg00/lvol7 ): 3029312 blocks 47703 i-nodes
/var (/dev/vg00/lvol8 ): 15555632 blocks 244944 i-nodes
/stand (/dev/vg00/lvol1 ): 2997696 blocks 47189 i-nodes
/ (/dev/vg00/lvol3 ): 1467616 blocks 23099 i-nodes
Tim Nelson
Honored Contributor

Re: Mount a file system permently

OK.. Here is what you have.

Two 146GB drives.
One is in vg00 the other in vg01

Because you only have two disk and they are in separate vgs mirroring is out of the question unless we change the config.

So...
To create two 50GB filesystems in /dev/vg01
lvcreate -L 50000 -n lvol1 /dev/vg01
lvcreate -L 50000 -n lvol2 /dev/vg01
newfs -o largefiles /dev/vg01/rlvol1
newfs -o largefiles /dev/vg01/rlvol2
mkdir /myfs1
mkdir /myfs2
edit /etc/fstab and create entries so they are mounted at boot time.
e.g
/dev/vg01/lvol1 /myfs1 vxfs largefiles 0 2
/dev/vg01/lvol2 /myfs2 vxfs largefiles 0 2

mount /myfs1
mount /myfs2

If you want to mirror we need to talk about other config options, getting more disk, putting both disks in /dev/vg00(not recommended), having Mirror/UX software, etc...
Avinash20
Honored Contributor

Re: Mount a file system permently

With regards to Mirroring:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1270433
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Suraj K Sankari
Honored Contributor

Re: Mount a file system permently

Hi,

After creating vg lv and mountpoint directory you need to mount new lv's into them, open /etc/fstab go to end add this 2 lines modify vgname, lvname and mountpoint

/dev/vgname/lvname1 /mountpoint1 vxfs rw,nosuid,largefiles,datainlog,delaylog 0 2
/dev/vgname/lvname1 /mountpoint2 vxfs rw,nosuid,largefiles,datainlog,delaylog 0 2

Suraj

JimKali
Advisor

Re: Mount a file system permently

.......