Creating a new mount point | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Creating a new mount point

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-01-2008
dkranes dkranes is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 9 April 2010, 4:13 PM EDT
Location: Hudson Valley Region in New York
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Creating a new mount point

Hello, I have an AIX Oracle database server that I need to create a new filesystem/mount where I can create a new ORacle home to install 11g on. What are the needed steps to create this? There are mounts for Oracle 9i and 10g already. Thank you.

- David
Sponsored Links
    #2  
Old 12-01-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
 
Join Date: Dec 2007
Last Activity: 6 October 2014, 11:01 AM EDT
Location: Out running a Marathon.
Posts: 2,332
Thanks: 73
Thanked 155 Times in 144 Posts
Hammer & Screwdriver Maybe pointing you in the correct direction?

For hp-ux, you would have
pvcreate to create the physical volume
vgcreate to create the volume group
lvcreate to create the logical volume (or your mount point)

I seem to recall AIX as
mkdev
mkvg
mklv

So, take a look at mklv command.


The following link has a good cross-reference, so if you know a command for one unix flavor, it would point you to the associated command for a different unix flavor (or system type).
http://www.unixguide.net/

Last edited by joeyg; 12-01-2008 at 04:57 PM.. Reason: Added a link
Sponsored Links
    #3  
Old 12-02-2008
dkranes dkranes is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 9 April 2010, 4:13 PM EDT
Location: Hudson Valley Region in New York
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
I am not having much luck here. Here are 2 mount point I have on my system.

Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/fslv10 6029312 382560 94% 77098 46% /oracle9i
/dev/fslv14 7077888 318124 96% 33588 29% /oracle10G

All I want to do is create a new mount point called /oracle11g. How can I see what file systems are available. In Solaris there is a format command for formatting disks and allocating partitions. There is also a newfs command for putting a UFS filesystem on a disk. How do I set this all up on AIX? Thank you for you help.

- David
    #4  
Old 12-02-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
code tag tagger
 
Join Date: Sep 2007
Last Activity: 20 October 2014, 1:48 PM EDT
Location: St. Gallen, Switzerland
Posts: 6,234
Thanks: 121
Thanked 453 Times in 412 Posts
Quote:
How can I see what file systems are available.

Code:
mount
df
lsfs


You gotta know onto which Volume Group (vg) you want to place it, if you want to mirror it and how large it should be.
Then you have to create a Logical Volume (lv) and on top of it a filesystem (fs). Here an example for a LV with 1 copy (no mirror) of type "jfs2" with lv_ora11 as LV name placed on "somevg" using 12 Physical Partitions. How large 1 Phsyical Partitions is you can get by issuing "lsvg somevg".


Code:
mklv -c 1 -t jfs2 -y lv_ora11 somevg 12

Now for the FS:

Code:
crfs -v jfs2 -d /dev/lv_ora11 -m /oracle11g 
mount /oracle11g

If you want different options, best check the man pages for those commands. You are lucky since in AIX are plenty of explained examples at the end of the man pages for about every command. I miss that on other OS'es sometimes. There are some considerations when using that in clusters or when creating FS'es with an extra log LV cause of performance.

Also you can use "smitty lvm" and use the ascii menues.
Sponsored Links
    #5  
Old 12-02-2008
dkranes dkranes is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 9 April 2010, 4:13 PM EDT
Location: Hudson Valley Region in New York
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Okay I have an existing group on my system

HTML Code:
# lsvg
rootvg
vg01
# lsvg vg01
VOLUME GROUP:       vg01                     VG IDENTIFIER:  000a8dac00004c00000000fc5ae7fa77
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:            256                      FREE PPs:       98 (12544 megabytes)
LVs:                24                       USED PPs:       994 (127232 megabytes)
OPEN LVs:           17                       QUORUM:         2
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size:           128 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

I would like to create a 20GB mount point. In Solaris I can use the format command to see what disks are available to format and create a filesystem on. Can this volumn group be used. If not how do I see what is available on a disk to format?

-David
Sponsored Links
    #6  
Old 12-02-2008
dkranes dkranes is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 9 April 2010, 4:13 PM EDT
Location: Hudson Valley Region in New York
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
Using smitty lvm I created a new logical volume called fslv07:

HTML Code:
LOGICAL VOLUME:     fslv07                 VOLUME GROUP:   vg01
LV IDENTIFIER:      000a8dac00004c00000000fc5ae7fa77.15 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               jfs2                   WRITE VERIFY:   on
MAX LPs:            512                    PP SIZE:        128 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                12                     PPs:            12
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    1
MOUNT POINT:        N/A                    LABEL:          /0racle11g
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     YES


I believe that I need to create a mount point to it now using smitty fs. What determines what size this filesystem is? I need around 15 to 20GB.

Thank you.

-David
Sponsored Links
    #7  
Old 12-02-2008
dkranes dkranes is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 9 April 2010, 4:13 PM EDT
Location: Hudson Valley Region in New York
Posts: 46
Thanks: 0
Thanked 1 Time in 1 Post
I created a filesystem but it is too small. When I tried to increase the size it complained. Using smitty fs:

Quote:
Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
File system name /oracle11g
NEW mount point [/oracle11g]
SIZE of file system
Unit Size 512bytes +
Number of units [14155776] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? yes +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? no +
Block Size (bytes) 4096
Inline Log? no
Inline Log size (MBytes) [0] #
Extended Attribute Format [v1]
ENABLE Quota Management? no +
Allow Small Inode Extents? no



I received the following error:


0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough physical volumes
to keep strictness and satisfy allocation requests. The command
should be retried with different allocation characteristics.


How can I make this much bigger?

I have mounted it but it is much too small.

/dev/fslv07 655360 654932 1% 4 1% /oracle11g

Thank you.

-David
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
creating single mount point zeeshan047 Solaris 8 11-12-2011 02:57 PM
ZFS mount point - problem mgmk.84 Solaris 4 06-30-2009 07:37 AM
auto mount point legato UNIX for Dummies Questions & Answers 1 02-15-2005 03:11 PM
mount point colesy UNIX for Dummies Questions & Answers 1 01-06-2004 06:03 AM
Recover mount point here2learn UNIX for Dummies Questions & Answers 1 11-11-2003 01:33 PM



All times are GMT -4. The time now is 09:34 AM.