metainit gives coredump


 
Thread Tools Search this Thread
Operating Systems Solaris metainit gives coredump
# 1  
Old 08-03-2005
metainit gives coredump

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?
Code:
# metadb -a -f -c2 c1t0d0s7 c1t1d0s7 c1t2d0s7 c1t3d0s7
# metainit -f d11 1 1 c1t0d0s0
metainit: Segmentation Fault
Segmentation Fault(coredump)
# metadb -i
        flags           first blk       block count
     a        u         16              8192            /dev/dsk/c1t0d0s7
     a        u         8208            8192            /dev/dsk/c1t0d0s7
     a        u         16              8192            /dev/dsk/c1t1d0s7
     a        u         8208            8192            /dev/dsk/c1t1d0s7
     a        u         16              8192            /dev/dsk/c1t2d0s7
     a        u         8208            8192            /dev/dsk/c1t2d0s7
     a        u         16              8192            /dev/dsk/c1t3d0s7
     a        u         8208            8192            /dev/dsk/c1t3d0s7
 r - replica does not have device relocation information
 o - replica active prior to last mddb configuration change
 u - replica is up to date
 l - locator for this replica was read successfully
 c - replica's location was in /etc/lvm/mddb.cf
 p - replica's location was patched in kernel
 m - replica is master, this is replica selected as input
 W - replica has device write errors
 a - replica is active, commits are occurring to this replica
 M - replica had problem with master blocks
 D - replica had problem with data blocks
 F - replica had format problems
 S - replica is too small to hold current data base
 R - replica had device read errors

# 2  
Old 08-03-2005
That thing you found on google looks like garbage. What would a hosts file have to do with it? But you could truss the command to see if it was even looking at /etc/hosts..

I have never used your syntax. I create the md.tab file and then metainit -a -f. Also the the file I do stuff like:
d0 1 1 /dev/dsk/c0t0d0s0

so you might try using the full path. Although the man page says your syntax should be ok. What does metastat say? Could there be an error in the partition table?
# 3  
Old 08-03-2005
metatstat gives no output

Code:
# metastat
#

I am attatching the truss output. I did'nt see anything about /etc/hosts in there.
# 4  
Old 08-03-2005
Actually it died trying to resolve some name. It could be /etc/hosts or the resolver after all. Make sure that you can telnet to yourself and then try it again.
# 5  
Old 08-03-2005
Wow. Ok. This is what I did.

Below is the contents of /etc/hosts...
Before
Code:
# Internet host table
#
127.0.0.1       localhost       loghost

After:
Code:
# Internet host table
#
127.0.0.1       localhost       loghost unknown

I then ran the metainit command again and it worked. Thanks for the pointer.

Code:
# metainit -f d11 1 1 /dev/dsk/c1t0d0s0                      
d11: Concat/Stripe is setup

# 6  
Old 08-03-2005
It turns out that disksuite can manage disks which are connected to multiple hosts. (man metaset) It uses rpc's to see if that is the case here.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 8 metainit space issue

I am trying to create soft partition metaclear -r d109 metainit d109 -p d100 -o 178423817 -b 33554432 After i did this i saw the df -k /dev/md/dsk/d109 0 779600337 0 0% /test df -k shows that it is full? also i have tried adding no logging entry in /etc/vfstab... (0 Replies)
Discussion started by: gull05
0 Replies

2. Solaris

metainit: Sol10: there are no existing databases

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. Solaris

Metainit issue

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

4. HP-UX

Coredump HP-UX 11.23 and 11.31

Hi, I'm looking for the help on how to implement coredump using the tools that comes with HP-UX 11.23 and HP-UX 11.31. To also avoid the the dump files fill-up the root disk when dump occurs. I'm new to this and would need step by step please. Thanks in advance! (3 Replies)
Discussion started by: lamoul
3 Replies

5. Shell Programming and Scripting

bc throwing coredump

Hi Gurus, I tried bc 1000 % 10 on tcsh and ksh and its throwing a core dump on a sun solaris machine. uname -a SunOS azote 5.9 Generic_118558-39 sun4u sparc SUNW,Ultra-4 Please let me know if you find anything. Thanks, Kinny (8 Replies)
Discussion started by: kinny
8 Replies

6. AIX

coredump: xsnaadmin

Hello! I do have an IBM pSeries 7043 server running AIX 5.2.0.0. Well, I do have trouble to run xsnaadmin tool remotely, I mean, the xsnaadmin tool can't run on exported X display. What I'm doing is aixserver>export DISPLAY=xxx.xxx.xxx.xxx:0.0 aixserver>xsnaadmin Segmentation... (0 Replies)
Discussion started by: jssanche
0 Replies

7. UNIX for Advanced & Expert Users

coredump after every reboot

Every time I reboot our solaris 9 (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Sun-Fire-480R) box, I get the messages below: # dmesg | grep dump Mar 24 12:39:55 hostname savecore: initial dump header corrupt Mar 24 12:39:55 hostname genunix: dump on /dev/dsk/c1t0d0s1 size 700 MB Mar 24... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

8. Solaris

metainit error

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

9. Programming

Strncpy - coredump

haiu all what makes strncpy to coredump (0 Replies)
Discussion started by: vijaysabari
0 Replies

10. Programming

coredump

i create one executed file (based on c language). when 1 try to executed the file, the result show me the bus error (coredump). can you help me to solve this problem. thanks. (2 Replies)
Discussion started by: lala
2 Replies
Login or Register to Ask a Question