Sponsored Content
Operating Systems Solaris SVM metastat -- needs maintenance Post 97135 by Perderabo on Thursday 26th of January 2006 02:00:53 PM
Old 01-26-2006
It looks to me like you lost a disk: c1t1d0s5. I'll bet that "iostat -En" will confirm that. That format command that pressy shows does look interesting, but I don't like trying to repair a disk. I would replace it.
 

10 More Discussions You Might Find Interesting

1. Solaris

Help on metastat

hi all, can someone pls pass on your suggestion? Firs thing I am testing a script which checks for the pattern 'Needs Maintenance' from metastat output and prints some messages in the screen. So i need to simulate an error in mirrored disk for metastat to give this message 'Needs Maintenance'.... (3 Replies)
Discussion started by: srirammad007
3 Replies

2. Solaris

SVM - metastat - Last Erred

My company is running a solaris 2.7 machine. The machine is getting slow recently. I have no expert in solaris. Please help. I checked the log in /var/adm/message: I also checked with the command iostat -nE. It returns: Metastat returns the followings: What should i do now?... (10 Replies)
Discussion started by: nickychung
10 Replies

3. Filesystems, Disks and Memory

What should I do with this metastat result? metareplace everything?

I have to rescue the volumes in a soloris 7 machine. The metastat returns the following result: d6 is dying with iostat -nE returns Harderror 3, Transports error 9 Can some offer me some help? Thank you very much. (6 Replies)
Discussion started by: nickychung
6 Replies

4. Solaris

Softpartition State: Errored in Command MetaStat

Hi people, I have on problem when execute the command METASTAT... d60: Soft Partition Device: d10 State: Errored Size: 12582912 blocks (6.0 GB) Someone help me? Thank you very much (4 Replies)
Discussion started by: denisgomes
4 Replies

5. Solaris

Metastat shows "maintenance" and "last-erred"

Hi All, Sorry to post a problem for my first post but I'm in a bit of a pickle at the minute! I have an Ultra45 connected to a Storedge 3100 series, 2 internal, 2 external disks with a db application running on the external disks. Now everything is working fine and we've had no downtime or... (4 Replies)
Discussion started by: TheSteed
4 Replies

6. Solaris

SVM Solaris 8 Problem. Metastat output looping

Hi friends, I'm newbie to SVM. Just wanna try installed it on one of our server (to do mirroring for disk0 and disk1) but i think im lost until now. :( the steps i've taken is as below:- 1.prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2 2.metadb -a -c 3 -f c1t0d0s7... (3 Replies)
Discussion started by: kronenose
3 Replies

7. Solaris

restore metastat configuration after solaris upgrade

Greetings How can i restore metastat db after a solaris upgrade (9 to 10)? will it work if i save and restore /etc/vfstab and /etc/lvm/md.cf file? root@netad# metastat d35: Mirror Submirror 0: d38 State: Okay Submirror 1: d39 State: Okay Pass:... (2 Replies)
Discussion started by: kashif_islam
2 Replies

8. Shell Programming and Scripting

Grep contents from metastat command

Hi, after issuing metastat command I am getting output as follows Actually these soft partitions are more than 100. I want output as Device Name & Size. for eg d4004 2.0 GB (4 Replies)
Discussion started by: tuxian
4 Replies

9. Solaris

metastat |grep Needs

Dear, Required an script such that : If metastat |grep Needs , results in some output then this command to be executed for the same : opcmsg object=metastat a=OS msg_grp=OpC severity=critical msg_text="Need maintenance for the system $line" With regards, Mjoshi (3 Replies)
Discussion started by: mjoshi87
3 Replies

10. Solaris

Metastat shows state needs maintenance

Hi, We have a Solaris 10 machine with update 11 and was configured with IBM storage. It was assigned 2 LUNs (each 70GB) which were striped to make it 140GB. we have taken full backup of entire machine and Our storage team replaced IBM storage with Nimble storage (they did storage-level... (6 Replies)
Discussion started by: prvnrk
6 Replies
metattach(1M)                                             System Administration Commands                                             metattach(1M)

NAME
metattach, metadetach - attach or detach a metadevice SYNOPSIS
/usr/sbin/metattach [-h] /usr/sbin/metattach [-s setname] mirror [metadevice] /usr/sbin/metattach [-s setname] [-i interlace] concat/stripe component... /usr/sbin/metattach [-s setname] RAID component... /usr/sbin/metattach [-s setname] [-A alignment] softpart size | all /usr/sbin/metadetach [-s setname] [-f] mirror submirror /usr/sbin/metadetach [-s setname] [-f] trans DESCRIPTION
metattach adds submirrors to a mirror, grows metadevices, or grows soft partitions. Growing metadevices can be done without interrupting service. To grow the size of a mirror or trans, the slices must be added to the submirrors or to the master devices. Solaris Volume Manager supports storage devices and logical volumes greater than 1 terabyte (TB) when a system runs a 64-bit Solaris ker- nel. Support for large volumes is automatic. If a device greater than 1 TB is created, Solaris Volume Manager configures it appropriately and without user intervention. If a system with large volumes is rebooted under a 32-bit Solaris kernel, the large volumes are visible through metastat output. Large vol- umes cannot be accessed, modified or deleted, and no new large volumes can be created. Any volumes or file systems on a large volume in this situation are also unavailable. If a system with large volumes is rebooted under a version of Solaris prior to the Solaris 9 4/03 release, Solaris Volume Manager does not start. You must remove all large volumes before Solaris Volume Manager runs under an earlier ver- sion of the Solaris Operating System. Solaris Volume Manager supports one-to-four-way mirrors. You can only attach a metadevice to a mirror if there are three or fewer submir- rors beneath the mirror. Once a new metadevice is attached to a mirror, metattach automatically starts a resync operation to the new sub- mirror. metadetach detaches submirrors from mirrors and logging devices from trans metadevices. When a submirror is detached from a mirror, it is no longer part of the mirror, thus reads and writes to and from that metadevice by way of the mirror are no longer performed through the mirror. Detaching the only existing submirror is not allowed. Detaching a submirror that has slices reported as needing maintenance (by metastat) is not allowed unless the -f (force) flag is used. metadetach also detaches the logging device from a trans. This step is necessary before you can clear the trans volume. Trans metadevices have been replaced by UFS logging. Existing trans devices are not logging. They pass data directly through to the underlying device. See mount_ufs(1M) for more information about UFS logging. Detaching the logging device from a busy trans device is not allowed unless the -f (force) flag is used. Even so, the logging device is not actually detached until the trans is idle. The trans is in the Detaching state (metastat) until the logging device is detached. OPTIONS
Root privileges are required for all of the following options except -h. The following options are supported: -A alignment Set the value of the soft partition extent alignment. Use this option when it is important specify a starting offset for the soft par- tition. It preserves the data alignment between the metadevice address space and the address space of the underlying physical device. For example, a hardware device that does checksumming should not have its I/O requests divided by Solaris Volume Manager. In this case, use a value from the hardware configuration as the value for the alignment. When using this option in conjunction with a software I/O load, the alignment value corresponds to the I/O load of the application. This prevents I/O from being divided unnecessarily and affecting performance. -f Force the detaching of metadevices that have components that need maintenance or are busy. You can use this option only when a mirror is in a maintenance state that can be fixed with metareplace(1M). If the mirror is in a maintenance state that can only be fixed with metasync(1M) (as shown by the output of metastat(1M)), metadetach -f has no effect, because the mirrors must be resynchronized before one of them can be detached. -h Display a usage message. -i interlace Specify the interlace value for stripes, where size is a specified value followed by either k for kilobytes, m for megabytes, or b for blocks. The units can be either uppercase or lowercase. If size is not specified, the size defaults to the interlace size of the last stripe of the metadevice. When an interlace size change is made on a stripe, it is carried forward on all stripes that follow. -s setname Specify the name of the diskset on which the metattach command or the metadetach command works.. Using the -s option causes the command to perform its administrative function within the specified diskset. Without this option, the command performs its function on local metadevices. OPERANDS
The following operands are supported: component The logical name for the physical slice (partition) on a disk drive, such as /dev/dsk/c0t0d0s2, being added to the concatenation, stripe, concatenation of stripes, or RAID5 metadevice. concat/stripe The metadevice name of the concatenation, stripe, or concatenation of stripes. log The metadevice name of the logging device to be attached to the trans metadevice. metadevice The metadevice name to be attached to the mirror as a submirror. This metadevice must have been previously created by the metainit com- mand. mirror The name of the mirror. RAID The metadevice name of the RAID5 metadevice. size | all The amount of space to add to the soft partition in K or k for kilobytes, M or m for megabytes, G or g for gigabytes, T or t for ter- abytes, and B or b for blocks (sectors). All values represent powers of 2, and upper and lower case options are equivalent. Only inte- ger values are permitted. The literal all specifies that the soft partition should grow to occupy all available space on the underlying volume. softpart The metadevice name of the existing soft partition. submirror The metadevice name of the submirror to be detached from the mirror. trans The metadevice name of the trans metadevice (not the master or logging device). EXAMPLES
Example 1: Concatenating a New Slice to a Metadevice This example concatenates a single new slice to an existing metadevice, d8. Afterwards, you would use the growfs(1M) command to expand the file system. # metattach d8 /dev/dsk/c0t1d0s2 Example 2: Detaching Logging Device from Trans Metadevice This example detaches the logging device from a trans metadevice d9. Notice that you do not have to specify the logging device itself, as there can only be one. # metadetach d9 Example 3: Expanding a RAID5 Metadevice This example expands a RAID5 metadevice, d45, by attaching another slice. # metattach d45 /dev/dsk/c3t0d0s2 When you add additional slices to a RAID5 metadevice, the additional space is devoted to data. No new parity blocks are allocated. The data on the added slices is, however, included in the overall parity calculations, so it is protected against single-device failure. Example 4: Expanding a Soft Partition The following example expands a soft partition, d42, attaching all space available on the underlying device. # metattach d42 all When you add additional space to a soft partition, the additional space is taken from any available space on the slice and might not be contiguous with the existing soft partition. Example 5: Adding Space to Two-Way Mirror This example adds space to a two-way mirror by adding a slice to each submirror. Afterwards, you would use the growfs(1M) command to expand the file system. # metattach d9 /dev/dsk/c0t2d0s5 # metattach d10 /dev/dsk/c0t3d0s5 This example tells the mirror to grow to the size of the underlying devices # metattach d11 This example increases the size of the UFS on the device so the space can be used. # growfs /dev/md/dsk/d11 Example 6: Detaching a Submirror from a Mirror This example detaches a submirror, d2, from a mirror, d4. # metadetach d4 d2 Example 7: Adding Four Slices to Metadevice This example adds four slices to an existing metadevice, d9. Afterwards, you would use the growfs(1M) command to expand the file system. # metattach d9 /dev/dsk/c0t1d0s2 /dev/dsk/c0t2d0s2 /dev/dsk/c0t3d0s2 /dev/dsk/c0t4d0s2 Example 8: Setting the Value of the Soft Partition Extent Alignment This example shows how to set the alignment of the soft partition to 1mb when the soft partition is expanded. # metattach -s red -A 2m d13 1m EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWmdu | +-----------------------------+-----------------------------+ SEE ALSO
mdmonitord(1M), metaclear(1M), metadb(1M), metahs(1M), metainit(1M), metaoffline(1M), metaonline(1M), metaparam(1M), metarecover(1M), metarename(1M), metareplace(1M), metaroot(1M), metaset(1M), metassist(1M), metastat(1M), metasync(1M), md.tab(4), md.cf(4), mddb.cf(4), md.tab(4), attributes(5), md(7D) Solaris Volume Manager Administration Guide WARNINGS
This section provides information regarding warnings for devices greater than 1 TB and for multi-way mirrors. Devices and Volumes Greater Than 1 TB Do not create large (>1 TB) volumes if you expect to run the Solaris Operating System with a 32-bit kernel or if you expect to use a ver- sion of the Solaris Operating System prior to Solaris 9 4/03. Multi-Way Mirrors When a submirror is detached from its mirror, the data on the metadevice might not be the same as the data that existed on the mirror prior to running metadetach. In particular, if the -f option was needed, the metadevice and mirror probably do not contain the same data. NOTES
Trans metadevices have been replaced by UFS logging. Existing trans devices are not logging. They pass data directly through to the under- lying device. See mount_ufs(1M) for more information about UFS logging. SunOS 5.10 20 Sep 2004 metattach(1M)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy