Sponsored Content
Operating Systems Solaris what is going on with SUNW.HAStoragePlus?!!!!! Post 302268694 by samar on Tuesday 16th of December 2008 06:09:26 AM
Old 12-16-2008
Error what is going on with SUNW.HAStoragePlus?!!!!!

Hi all,
really interesting thing I have encountered . So :

root@host4 # uname -a
SunOS host4 5.9 Generic_122300-31 sun4u sparc SUNW,Sun-Fire-880
root@host4 # scinstall -p
3.2

latest recommended patches applied ..all SUN cluster patches applied.

SUN cluster software installed without any issue.
all needed resource types installed:

root@host4 # clrt list
SUNW.LogicalHostname:2
SUNW.SharedAddress:2
SUNW.gds:6
SUNW.HAStoragePlus:4

so I created simply one resource group ..

root@host4 # clrg create data-rg

and then created logicalhostname:

root@host4 # clrslh create -g data-rg -h datalh datalh-rs

and simply created SUNW.HAStorkagePlus:

root@host4 # clrs create -g data-rg -t SUNW.HAStoragePlus -p AffinityOn=TRUE -p FilesystemMountPoints=/data1,/data2 hasp-rs

then simply tried enable resource group with it's resources ..
Everything fine .. it started up .. got logicalhostname .. and then mounted /data1 and /data2 ..
here I create directory in /data1
root@host4 # mkdir /data1/test
root@host4 # cd /data1/test
root@host4 # mkfile 5m file1
root@host4 # mkfile 10m file2
root@host4 #chown -R mysql:mysql /data1/test

I gave all included files owner as mysql ..

then I'm testing it .. failed it over to second node .. it started on second node succesfully .. but here the problem is .. I look in /data1 and so that permissions of that directory "test" and files that I ceated changed ..

root@host3 # cd /data1
root@host3 # ls -al test
total 30756
drwxr-xr-x 2 60003 mysql 512 Dec 16 14:58 .
drwxr-xr-x 4 root root 512 Dec 16 14:58 ..
-rw------T 1 60003 mysql 5242880 Dec 16 14:58 file1
-rw------T 1 60003 mysql 10485760 Dec 16 14:58 file2

.. from where does it take "60003" ?!!!!! Smilie

If I fail it over again to forst node it is ok with it's permissions:

root@host4 # ls -al
total 30756
drwxr-xr-x 2 mysql mysql 512 Dec 16 13:49 .
drwxr-xr-x 5 root root 512 Dec 16 13:47 ..
-rw------T 1 mysql mysql 5242880 Dec 16 13:49 file1
-rw------T 1 mysql mysql 10485760 Dec 16 13:49 file2


...
 

We Also Found This Discussion For You

1. Solaris

SUNW, hme0: Link Down - Cable problem

Ultra E150 Solaris 2.5.1 Oracle server. was working fine, then started losing network connection. I can see in messages file that it was complaining about another device using its ip address. Though not any longer, though I wonder if that was a red herring. My IT guys have now re-reserved its ip... (29 Replies)
Discussion started by: AlSmith1964
29 Replies
CGI::Session::Driver::mysql(3)				User Contributed Perl Documentation			    CGI::Session::Driver::mysql(3)

NAME
CGI::Session::Driver::mysql - CGI::Session driver for MySQL database SYNOPSIS
$s = new CGI::Session( 'driver:mysql', $sid); $s = new CGI::Session( 'driver:mysql', $sid, { DataSource => 'dbi:mysql:test', User => 'sherzodr', Password => 'hello' }); $s = new CGI::Session( 'driver:mysql', $sid, { Handle => $dbh } ); DESCRIPTION
mysql stores session records in a MySQL table. For details see CGI::Session::Driver::DBI, its parent class. It's especially important for the MySQL driver that the session ID column be defined as a primary key, or at least "unique", like this: CREATE TABLE sessions ( id CHAR(32) NOT NULL PRIMARY KEY, a_session TEXT NOT NULL ); To use different column names, change the 'create table' statement, and then simply do this: $s = new CGI::Session('driver:mysql', undef, { TableName=>'session', IdColName=>'my_id', DataColName=>'my_data', DataSource=>'dbi:mysql:project', }); or $s = new CGI::Session('driver:mysql', undef, { TableName=>'session', IdColName=>'my_id', DataColName=>'my_data', Handle=>$dbh, }); DRIVER ARGUMENTS mysql driver supports all the arguments documented in CGI::Session::Driver::DBI. In addition, DataSource argument can optionally leave leading "dbi:mysql:" string out: $s = new CGI::Session( 'driver:mysql', $sid, {DataSource=>'shopping_cart'}); # is the same as: $s = new CGI::Session( 'driver:mysql', $sid, {DataSource=>'dbi:mysql:shopping_cart'}); BACKWARDS COMPATIBILITY As of V 4.30, the global variable $CGI::Session::MySQL::TABLE_NAME cannot be used to set the session table's name. This is due to changes in CGI::Session::Driver's new() method, which now allows the table's name to be changed (as well as allowing both the 'id' column name and the 'a_session' column name to be changed). See the documentation for CGI::Session::Driver::DBI for details. In particular, the new syntax for "new()" applies to all database drivers, whereas the old - and bad - global variable method only applied to MySQL. Alternately, call $session -> table_name('new_name') just after creating the session object if you wish to change the session table's name. LICENSING
For support and licensing see CGI::Session. perl v5.16.3 2008-07-16 CGI::Session::Driver::mysql(3)
All times are GMT -4. The time now is 07:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy