How to change hostid saved in rpool?


 
Thread Tools Search this Thread
Operating Systems Solaris How to change hostid saved in rpool?
# 1  
Old 02-23-2012
How to change hostid saved in rpool?

Hi,

We have a Sun M5000. I am now trying to boot the second system domain by using the boot disk (a mirrored boot disk actually) of the first domain (if succeed then no OS installation is needed for the second domain). I got the following errors:

Code:
SPARC Enterprise M5000 Server, using Domain console
Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2010, Oracle and/or its affiliates and Fujitsu Limited. All rights reserved.
OpenBoot 4.24.16, 65536 MB memory installed, Serial #xxxxxxxxxx.
Ethernet address 0:21:28:1:8a:4b, Host ID: second_domain_hostid.

Rebooting with command: boot /pci@10,600000/pci@0/pci@8/pci@0/scsi@1/disk@0,0
Boot device: /pci@10,600000/pci@0/pci@8/pci@0/scsi@1/disk@0,0  File and args:
SunOS Release 5.10 Version Generic_137137-09 64-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.

WARNING: pool 'rpool' could not be loaded as it was last accessed by another system (host: hostname: first_domain_hostid ).  See: http://www.sun.com/msg/ZFS-8000-EY
NOTICE: spa_import_rootpool: error 9

Question: How can I change the hostid saved in the rpool of the first domain's boot disk?

Thank you in advance!

Last edited by Scott; 02-23-2012 at 03:49 PM.. Reason: Changed QUOTE tags for CODE tags
# 2  
Old 02-23-2012
I think you have to boot from DVD and force import this pool. Then export it.
# 3  
Old 02-23-2012
DVD drive can not be attached to the second domain on M5000. That is why I try to avoid OS installation on the second domain.
# 4  
Old 02-23-2012
But you can attach the disk back to first domain, boot from DVD, import the pool, export it and the reattach the disk to second domain. I'm guessing you are pulling the disks physically from the server. If so, then when you reattach the second disk to first domain, then pull out the original boot disk from first domain.
# 5  
Old 02-23-2012
(1) boot first domain from DVD.
(2) import the rpool
(3) export the rpool - The hostid saved on the rpool will be cleared up during this process?
(4) Reattach the disk to second domain? - How? Do you mean physically move the boot disk from the first domain to the second domain?

Thanks.
# 6  
Old 02-23-2012
Well.. how did you attach the disk from first domain to the second in the first place? And yes, host id problem should disappear after you export the pool (I think Smilie).
# 7  
Old 02-23-2012
I simply moved the disk from domain 0 to domain 1.

After the rpool (or boot disk) is exported, it becomes independent, then it can be used by any domain.

Interesting point. Can someone else confirm it?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Help with mirroring rpool

Hello, I need some help mirroring my rpool. I have a 60gb ssd running the rpool alone and want to mirror it for redundancy so I bought a 120gb ssd that I found for a good price. 60gb drives aren't as easy to find at a good price anymore it seems. I (a bit naively) thought after reading... (9 Replies)
Discussion started by: Zorken
9 Replies

2. Solaris

Resize rpool

Hi, I have rpool about 500G. So i want to use 210G from rpool and assign mount point as /database. I seek in google and couldn't found it. Does anyone know how to achieve it? Thanks. (2 Replies)
Discussion started by: mzainal
2 Replies

3. Red Hat

Change hostid to particullar string

Hello guys, currently I'm working on migration services from physical to virtual server (RHEL 6). One form applications is binded to hostid of old server. I put value of hostid from old server to the /etc/hostid on new server, but output of hostid command is giving nonsenses then. #... (0 Replies)
Discussion started by: brusell
0 Replies

4. Red Hat

How can I change hostid?

There is no /etc/hostid file. I know that there is no relationship between with MAC address and hostid. There are a lot of scripts on the net but how can I exactly do in my case. :rolleyes: (4 Replies)
Discussion started by: getrue
4 Replies

5. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies

6. Solaris

Change Solaris hostid

Hi, I've searched the UNIX forum looking for a simple procedure how to change\control my Solaris server hostid. I did found few threads but all of them either have broken links to all kinds of scripts or not described simply for some UNIX beginers user like me. Can anyone assist me? I... (21 Replies)
Discussion started by: avisht
21 Replies

7. Solaris

rpool issue

My system is showing following .. how can i remove this rpool .. ? zpool status -v rpool pool: rpool state: UNAVAIL status: One or more devices could not be opened. There are insufficient replicas for the pool to continue functioning. action: Attach the missing device and... (0 Replies)
Discussion started by: fugitive
0 Replies

8. Solaris

Change hostid for software install - license issue

Hi all. Solaris 9. After I change the hostid, how can I change it back without rebooting the machine? Thanks (2 Replies)
Discussion started by: jamie_collins
2 Replies

9. Solaris

procedure to change hostid of Sun server

Hello Everybody I would like to know that I have configure the OS & other application on the SunFire V440 server 1) If suppose no hostid base software install in that v440 server & if some problem comes in the motherboard of that server. If I remove the harddisk ( on which Solaris & other... (4 Replies)
Discussion started by: girish.batra
4 Replies

10. Solaris

How to change the HostID?--SunFire880

Hi, Guys I have to change the HostID for my SUNFire880 in lab. Can some body help me? and give the detail procedure? I don't think the command "mkp" can be used in SUNFire880 system. So please help!:cool: (2 Replies)
Discussion started by: surainbow
2 Replies
Login or Register to Ask a Question