- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mount options using ServiceGuard
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 03:15 AM
07-25-2001 03:15 AM
/dev/vg02/lvol1 /data/u01 vxfs log 0 0
/dev/vg02/lvol2 /data/u02 vxfs log 0 0
I would like to configure it so it mounts these datafile areas using raw i/o. i.e:
/dev/vg01/lvol8 /legend/oradata6 vxfs delaylog,mincache=direct,convosync=direct 0 0
There are other filesystems mounted by SG packages whose mount options I do not wish to affect.
Any help would be much appreciated.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 04:08 AM
07-25-2001 04:08 AM
Solutionthe later versions have examples in the script files for mount options, as in:
# For example, if this package uses the file systems pkg1a and pkg1b,
# which are mounted on the logical volumes lvol1 and lvol2 with read and
# write options enter:
# LV[0]=/dev/vg01/lvol1; FS[0]=/pkg1a; FS_MOUNT_OPT[0]="-o rw"
# LV[1]=/dev/vg01/lvol2; FS[1]=/pkg1b; FS_MOUNT_OPT[1]="-o rw"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 04:13 AM
07-25-2001 04:13 AM
Re: Mount options using ServiceGuard
FILESYSTEMS
# Define the filesystems which are used by this package. The filesystems
# are defined as pairs of entries specifying the logical volume and the
# mount point for the file system. Each filesystem will be fsck'd prior
# to being mounted. The filesystems will be mounted in the order specified
# during package startup and will be unmounted in reverse order during
# package shutdown. Ensure that volume groups referenced by the logical
# volume definitions below are included in volume group definitions
# above.
#
# Example: LV[0]=/dev/vg01/lvol1; FS[0]=/pkg1
# LV[1]=/dev/pkg2/lvol1; FS[1]=/pkg2
#
LV[0]="/dev/vg02/lvol1"; FS[0]="/data/u01"
LV[1]="/dev/vg02/lvol2"; FS[1]="/data/u02"
LV[2]="/dev/vg03/lvol1"; FS[2]="/data/u03"
LV[3]="/dev/vg03/lvol4"; FS[3]="/data/u04"
So I suspect this means I am running an older version of SG? Bit disappointing.
Phil C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 04:45 AM
07-25-2001 04:45 AM
Re: Mount options using ServiceGuard
You could always leave your filesystems out of that section altogether and mount them manually in the customer_defined_start/halt procedures. Just use the command you gave. I assume you have Online JFS (recent version and patches) required for the mincache=direct option.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 04:53 AM
07-25-2001 04:53 AM
Re: Mount options using ServiceGuard
it may be worthwhile you upgrading SG to the current Platform release of 11.09 for supportability, andthis will give you the new features.
to check, use swlist or do:
what /usr/lbin/cmcld
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:05 AM
07-25-2001 05:05 AM
Re: Mount options using ServiceGuard
lara:/usr/local/bin # swlist | grep Service
B3935BA A.10.10 MC / Service Guard
PHSS_15531 B.10.00.00.AA MC/ServiceGuard A.10.10 Cummulative patch
lara:/usr/local/bin #
So perhaps I should consider upgrading as you say.
Rgds
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:13 AM
07-25-2001 05:13 AM
Re: Mount options using ServiceGuard
Also dont forget the latest SG patch for the veriosn you load, and remember, these patches are NEVER on the patch bundle CD's ;-}
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:20 AM
07-25-2001 05:20 AM
Re: Mount options using ServiceGuard
# cd /tmp
# cmmakepkg -s dummy
# vi dummy
You can then start to update your scripts.
In fact I would first check your present scripts and search in them for the string FS_MOUNT_OPT. If you see a line similar to
mount ${FS_MOUNT_OPT[$F]} $I ${FS[$F]}
in the function check_and_mount() the comments in the top of the file might simply been deleted and your script already supports filesystem options.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:28 AM
07-25-2001 05:28 AM
Re: Mount options using ServiceGuard
lv_mount()
{
j=$1
while [ $j -lt $(($1 + $2)) ]
do
mount ${LV[$j]} ${FS[$j]} >/dev/null 2>&1
if [ $? -ne 0 ]
then
message "ERROR: Failed to mount ${FS[$j]}"
j=$(($j - 1))
while [ $j -ge 0 ]
do
umount ${FS[$j]} >/dev/null 2>&1
if [ $? -ne 0 ]
then
message "ERROR: Failed to unmount file system ${FS[$j]}"
fi
j=$(($j - 1))
done
return 1
fi
j=$(($j + 1))
done
return 0
}
Has this installation been messed with in some way? It seems from this that should I change the pkg config script to include options, the mount script will ignore them anyway?
Phil C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:40 AM
07-25-2001 05:40 AM
Re: Mount options using ServiceGuard
So you coul dprobably just recreate your scripts now and merge in the current information while tajking the opprotunity to use the new functionality
All good fun, they say
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 05:43 AM
07-25-2001 05:43 AM
Re: Mount options using ServiceGuard
The best is to move your package control file to the new script versions, you get with "cmmakepkg -s".
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 06:15 AM
07-25-2001 06:15 AM
Re: Mount options using ServiceGuard
Best Rgds
Phil C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2001 11:30 AM
07-25-2001 11:30 AM
Re: Mount options using ServiceGuard
Are there any other elements besides package control & config scripts that I should update for consistency?
Many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 10:36 PM
07-26-2001 10:36 PM
Re: Mount options using ServiceGuard
The unfortunate thing is that SG does not separate the base package control script from the customizable parts of the script. This way the base script could be easily patched and customers would not need to incorporate updates/changes/fixes of the base script by cut&paste.
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG