10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hey Experts,
I'm facing an issue related to space in the unix system. I have a mount point where 9.4 T is allocated. The entire mount point is filled and I can trace only for 6.7T but I could not located the rest of the space around 2T. I tried every single command to locate the file starting... (7 Replies)
Discussion started by: panknil
7 Replies
2. Solaris
Hi Experts,
I am in direction to mirror filesystem in solaris10. Many articles I've read but not much help. Everytime I issued command metainit I always get 'there are no existing databases'. I don't know which steps I missed.
bash-3.2# metainit -f d11 1 1 c0t0d0s0
metainit: Sol10: there are... (3 Replies)
Discussion started by: Fandy Abdul
3 Replies
3. UNIX for Advanced & Expert Users
I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.... (3 Replies)
Discussion started by: solaris_1977
3 Replies
4. HP-UX
Hi,
I am not sure how many scripts / java processes running on my HP-UX server.
I need to calculate the total heap of these processes.
I then need to recommend increasing the swap memory to be increase and equal to total heap if that is the right concept.
Currently we are facing... (2 Replies)
Discussion started by: mohtashims
2 Replies
5. Solaris
Hi all,
After setting up SUN cluster in two nodes, I created disksets and volumes in the servers.
Everything wwas working well and perfect.
Today, I created a diskset and added three disks to it.
When trying to create a volume, I am getting the following error:
lsun3175 /dev/rdsk->... (4 Replies)
Discussion started by: manojsomanath
4 Replies
6. Solaris
HI All,
Recently during oracle install I realized that I did not have enough swap space.
So I -
1. Created a swap file "swap_fille1" in /rpool using mkfile -
# ls -ltr /rpool
total 10487121
drwxr-xr-x 3 root root 3 Dec 21 12:09 boot
drwxr-xr-x 2 root root ... (10 Replies)
Discussion started by: sumeet
10 Replies
7. Linux
Hi I have a process generating a file in Solaris. Now we have migrated the process to Linux. When we open the file in vi on solaris and hit space bar, it stops after reaching the end of line. But in linux it continues to go on the next line. So I want to know whether the difference is between the... (4 Replies)
Discussion started by: sudhamacs
4 Replies
8. UNIX for Dummies Questions & Answers
Ok,
I have a drive on my unix system that looks like this:
/dev/hd4 0.38 0.00 100% 4316 3% /
I can't find any file on that drive that would account for the 400MB. How can I thoroughly find the culprit of this space? I've done ls -al, but don't see anything that... (1 Reply)
Discussion started by: bbbngowc
1 Replies
9. Solaris
SunOS unknown 5.9 Generic_118558-10 sun4u sparc SUNW,Sun-Fire-880
I'm trying to set up mirroring and am running into a problem:
As you can see, I set up the metadb, but am getting a coredump when running metainit. I saw this through google, but don't know the validity of it. Any ideas?
#... (5 Replies)
Discussion started by: dangral
5 Replies
10. Solaris
Hi
I have a sun machine. Recently I have upgraded. After the upgradation I get this error when I reboot the system -
metainit: <servername>: there are no existing databases
The system is a standalone system and I don't want to configure any raid on this system. Also I have not tried... (1 Reply)
Discussion started by: RajaRC
1 Replies
metarecover(1M) System Administration Commands metarecover(1M)
NAME
metarecover - recover soft partition information
SYNOPSIS
/sbin/metarecover [-n] [-v] [-s setname] component -p
/sbin/metarecover [-n] [-v] [-s setname] component -p {-d}
/sbin/metarecover [-n] [-v] [-s setname] component -p {-m}
DESCRIPTION
The metarecover command scans a specified component to look for soft partition configuration information and to regenerate the configura-
tion.
OPTIONS
The following options are supported:
-d Recover soft partitions in the metadevice state database from the extent headers on the device. Options -d and -m are mutu-
ally exclusive.
-m Regenerate the extent headers and reapplies them to the underlying device based on the soft partitions listed in the
metadevice state database. Options -d and -m are mutually exclusive.
-n Do not actually perform the operation. Show the output or errors that would have resulted from the operation, had it been
run.
-p Regenerate soft partitions based on the metadevice state database or extent headers on the underlying device. If neither -d
nor -m are specified, this option compares the soft partition information in the metadevice state database to the extent
headers.
-s setname Specify the name of the diskset on which metarecover works. Using the s option causes the command to perform its function
within the specified diskset. Without the -s option, the metarecover command operates on the metadevices and/or hot spare
pools in the local diskset.
This option is required to recover former sps from a diskset component or raw-device. setname must be identical to the
former setname in which the sps were created. The set numbers, however, seem irrelevant.
-v Verbose mode, displaying the changes being made.
OPERANDS
The following operand is supported:
component Specifies the c*t*d*s* number of the disk or slice containing the partitions, or the device name (for example, d10) of the
metadevice containing the partitions.
component can be a slice name, component name, /dev/dsk path, or /dev/rdsk path.
EXAMPLES
Example 1: Updating Metadevice State Database Based on Disk Extent Headers
A disk containing soft partitions is moved from one system to another. The system administrator would like to use the existing soft parti-
tions. metarecover updates the metadevice state database based on the extent headers on the disk.
# metarecover -v c0t3d0s2 -p -d
Example 2: Updating Metadevice State Database Based on Incomplete Soft Partition Creation
A system crashes in the middle of creating a new soft partition. The soft partition is in the creating state and the driver does not let
that device be opened. metarecover rewrites the extent headers for the partially created soft partition and mark it as Okay.
# metarecover -v c0t3d0s2 -p -m
Example 3: Updating Extent Headers Based on Metadevice State Database
Someone accidentally overwrote a portion of a disk leaving extent headers destroyed. metarecover rewrites the extent headers to ensure a
valid soft partition configuration, though user data is not recovered.
# metarecover -v d5 -m
Example 4: Validating Soft Partition Configuration
To validate the existing soft partition configuration, use metarecover with only the -p flag.
# metarecover c0t3d0s2 -p
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 |SUNWmdr |
+-----------------------------+-----------------------------+
SEE ALSO
mdmonitord(1M), metaclear(1M), metadb(1M), metadetach(1M), metahs(1M), metainit(1M), metaoffline(1M), metaonline(1M), metaparam(1M),
metarename(1M), metareplace(1M), metaroot(1M), metaset(1M), metassist(1M), metastat(1M), metasync(1M), metattach(1M), md.tab(4), md.cf(4),
mddb.cf(4), md.tab(4), attributes(5), md(7D)
Solaris Volume Manager Administration Guide
SunOS 5.10 2 Jun 2004 metarecover(1M)