Sponsored Content
Full Discussion: SVM Creation
Operating Systems Solaris SVM Creation Post 302575409 by bartus11 on Monday 21st of November 2011 02:47:14 PM
Old 11-21-2011
So you want to move /usr1 from c0t0d0s4 to c0t1d0s4 (keeping all the data that is currently on c0t0d0s4)?
 

10 More Discussions You Might Find Interesting

1. Solaris

Removing Disk from SVM

Hi All, I have to remove the disk from SVM. Kindly guide me or suggest me some link where in I can steps to remove SVM from Solaris 10 .Also I have one metaset which require deletion. Thanks in anticipation! (10 Replies)
Discussion started by: kumarmani
10 Replies

2. Solaris

Change the name in SVM

gurus, i have configured the LUN's in solaris 10.after labeled the disk,i have added the disk into one of the soft partition using metattach d0 c5t1000d10s6.actully before that i should confiure the powermt and than i should have add metattch d0 emcpowerc2.i forget to do that and increased... (0 Replies)
Discussion started by: rjay.com
0 Replies

3. Solaris

SVM, mirroring

Really sorry for the long posting. But i would really want to clear all the doubts. I have 2 disk c0t0d0 & c0t1d0, i wanted to mirror c0t1d0 (mirror) to c0t0d0 (main). Creating state database replica: metadb -a -c3 -f c0t0d0s7 ... (3 Replies)
Discussion started by: beginningDBA
3 Replies

4. Solaris

SVM question

I am trying to set up a new server. It has 8 HD's in it. I am using 2 for the system disk. IE set one up mirror to the other. I am using the other 6 as data disks. For those I want to concat 3 together, mirror to the other 3 (also concated together of course) and then make various soft... (7 Replies)
Discussion started by: NewSolarisAdmin
7 Replies

5. UNIX for Dummies Questions & Answers

SVM doubt

i have taken two separate disk A and B created 4 slices in each A b s4 s4 s5 s5 s6 s6 s7 s7 took slices s4 of A and slice s6 0f B ---created a meta device d0 took slices s4 of B and slice s6 0f A---created a meta device d1 created main mirror d2 using d0... (1 Reply)
Discussion started by: vivek_ng
1 Replies

6. Solaris

Problem with SVM

HI, I added by error to a submirror some disks : metattach d53 c2t90d0s0 c2t90d1s0 ... instead of doing a stripe by disk (like that) : metattach d53 c2t90d0s0 metattach d53 c2t90d1s0 .. then, I did a growfs -M to expand FS and the size isn't correct. I tried to launch a... (1 Reply)
Discussion started by: phil.nakache
1 Replies

7. UNIX for Advanced & Expert Users

SVM

How to list out multiple Disk sets in SVM # metaset -s <disksetname> --- This will list out only one diskset but I need a list of disk sets configured for the node. Is there any command,please let me know ... Thanks in advance. (1 Reply)
Discussion started by: pramath
1 Replies

8. UNIX for Advanced & Expert Users

What is interlace value in SVM?

Hi All, I want to know what is the Interlace value in SVM and what is the need of this ? regards, prashant (1 Reply)
Discussion started by: prashant2507198
1 Replies

9. Solaris

Fsck with SVM

Hello I want to ask that how to mount and run fsck in SVM disk.In my scenario if i have to disks c0t0d0 and c0t1d0 these two disks are in Mirroring (raid1) if i want to run fsck on the disks than below are the right steps? ok boot cdrom -s mount /dev/dsk/c0t0d0s0 /a cd /a fsck... (3 Replies)
Discussion started by: jhonnybravo
3 Replies

10. Solaris

SVM ISSUE...

Dear All, I face some errors in SVM.Need help. Actually couple of days ago i got a call from one of the customer mentioning that one of the sub-mirror was in Need maintance state. So we replaced that disk. After Replacing the disk it comes back to "Okay" State. But the Error are... (3 Replies)
Discussion started by: sudhansu
3 Replies
Kstat(3PERL)						      Perl Library Functions						      Kstat(3PERL)

NAME
Kstat - Perl tied hash interface to the kstat facility SYNOPSIS
use Sun::Solaris::Kstat; Sun::Solaris::Kstat->new(); Sun::Solaris::Kstat->update(); Sun::Solaris::Kstat->{module}{instance}{name}{statistic} DESCRIPTION
Kernel statistics are categorized using a 3-part key consisting of the module, the instance, and the statistic name. For example, CPU information can be found under cpu_stat:0:cpu_stat0, as in the above example. The method Sun::Solaris::Kstat->new() creates a new 3-layer tree of Perl hashes with the same structure; that is, the statistic for CPU 0 can be accessed as $ks->{cpu_stat}{0}{cpu_stat0}. The fourth and lowest layer is a tied hash used to hold the individual statistics values for a particular system resource. For performance reasons, the creation of a Sun::Solaris::Kstat object is not accompanied by a following read of all possible statistics. Instead, the 3-layer structure described above is created, but reads of a statistic's values are done only when referenced. For example, accessing $ks->{cpu_stat}{0}{cpu_stat0}{syscall} will read in all the statistics for CPU 0, including user, system, and wait times, and the other CPU statistics, as well as the number of system call entries. Once you have accessed a lowest level statistics value, calling $ks->update() will automatically update all the individual values of any statistics you have accessed. There are two values of the lowest-level hash that can be read without causing the full set of statistics to be read from the kernel. These are "class", which is the kstat class of the statistics, and "crtime"n, which is the time that the kstat was created. See kstat(3KSTAT) for full details of these fields. Methods new() Create a new kstat statistics hierarchy and return a reference to the top-level hash. Use it like any normal hash to access the statistics. update() Update all the statistics that have been accessed so far. In scalar context, update() returns 1 if the kstat structure has changed, and 0 otherwise. In list context, update() returns references to two arrays: the first holds the keys of any kstats that have been added, and the second holds the keys of any kstats that have been deleted. Each key will be returned in the form "module:instance:name". EXAMPLES
Example 1 Sun::Solaris::Kstat example use Sun::Solaris::Kstat; my $kstat = Sun::Solaris::Kstat->new(); my ($usr1, $sys1, $wio1, $idle1) = @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user kernel wait idle)}; print("usr sys wio idle "); while(1) { sleep 5; if ($kstat->update()) { print("Configuration changed "); } my ($usr2, $sys2, $wio2, $idle2) = @{$kstat->{cpu_stat}{0}{cpu_stat0}}{qw(user kernel wait idle)}; printf(" %.2d %.2d %.2d %.2d ", ($usr2 - $usr1) / 5, ($sys2 - $sys1) / 5, ($wio2 - $wio1) / 5, ($idle2 - $idle1) / 5); $usr1 = $usr2; $sys1 = $sys2; $wio1 = $wio2; $idle1 = $idle2; } SEE ALSO
perl(1), kstat(1M), kstat(3KSTAT), kstat_chain_update(3KSTAT), kstat_close(3KSTAT), kstat_open(3KSTAT), kstat_read(3KSTAT) NOTES
As the statistics are stored in a tied hash, taking additional references of members of the hash, such as my $ref = ks->{cpu_stat}{0}{cpu_stat0}{syscall}; print("$$ref "); will be recorded as a hold on that statistic's value, preventing it from being updated by refresh(). Copy the values explicitly if persis- tence is necessary. Several of the statistics provided by the kstat facility are stored as 64-bit integer values. Perl 5 does not yet internally support 64-bit integers, so these values are approximated in this module. There are two classes of 64-bit value to be dealt with: 64-bit intervals and times These are the crtime and snaptime fields of all the statistics hashes, and the wtime, wlentime, wlastupdate, rtime, rlentime and rlastupdate fields of the kstat I/O statistics structures. These are measured by the kstat facility in nanoseconds, meaning that a 32-bit value would represent approximately 4 seconds. The alternative is to store the values as floating-point numbers, which offer approximately 53 bits of precision on present hardware. 64-bit intervals and timers as floating point values expressed in seconds, meaning that time-related kstats are being rounded to approximately microsecond resolution. 64-bit counters It is not useful to store these values as 32-bit values. As noted above, floating-point values offer 53 bits of precision. Accordingly, all 64-bit counters are stored as floating-point values. SunOS 5.11 21 Jul 2005 Kstat(3PERL)
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy