Hi,
What is the ZFS pool on the USB stick called ? Do you have 2 pools
called rpool ?
Also you removed splashimage from the menu on the USB stick not from the
menu on the hard disk ?
why do you zpool export ?
Also, the GRUB hang when booting from the hard-disk you are seeing is
not due to a missing menu. A missing menu gives you the GRUB command line >
Vikram
Sean Liu wrote:
Vikram,
I'll try to give a complete picture. I apologize this will be a long note.
This is when I boot up from USB stick. 3 disks are recognized ( 1 stick and two
HDDs):
j...@opensolaris:/boot/grub$ pfexec format -e
Searching for disks...
The current rpm value 0 is invalid, adjusting it to 3600
done
c8t0d0: configured with capacity of 232.86GB
AVAILABLE DISK SELECTIONS:
0. c7t0d0 <DEFAULT cyl 1909 alt 2 hd 128 sec 32>
/p...@0,0/pci108e,4...@1d,7/h...@6/stor...@2/d...@0,0
1. c8t0d0 <ATA-HITACHIHDS7225S-A6DA cyl 30398 alt 2 hd 255 sec 63>
/p...@0,0/pci108e,4...@1f,2/d...@0,0
2. c8t2d0 <ATA-HITACHIHDS7225S-A6DA cyl 30397 alt 2 hd 255 sec 63>
/p...@0,0/pci108e,4...@1f,2/d...@2,0
Specify disk (enter its number):
C7t0d0 is the stick (4GB):
j...@opensolaris:/boot/grub$ pfexec fdisk /dev/rdsk/c7t0d0p0
Total disk size is 1912 cylinders
Cylinder size is 4096 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 1911 1911 100
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 7
The first HDD does not have any partition:
j...@opensolaris:~$ pfexec fdisk /dev/rdsk/c8t0d0p0
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
n
Total disk size is 30400 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
WARNING: no partitions are defined!
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 7
The second HDD has a 100% Solaris partition, with my zpool on it.
j...@opensolaris:~$ pfexec fdisk /dev/rdsk/c8t2d0p0
Total disk size is 30400 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 30399 30399 100
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 7
j...@opensolaris:~$ zpool status
pool: rpool
state: ONLINE
status: The pool is formatted using an older on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on older software versions.
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c8t2d0s0 ONLINE 0 0 0
errors: No known data errors
Just in case, I upgraded the zpool version:
j...@opensolaris:~$ pfexec zpool upgrade rpool
This system is currently running ZFS pool version 18.
Successfully upgraded 'rpool' from version 14 to version 18
Installed grub again:
j...@opensolaris:/boot/grub$ pfexec installgrub -m stage1 stage2
/dev/rdsk/c8t2d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)?y
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 273 sectors starting at 50 (abs 16115)
stage1 written to master boot sector
Doublechecked the zpool status, it is OK:
j...@opensolaris:/boot/grub$ zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c8t2d0s0 ONLINE 0 0 0
errors: No known data errors
Then I got rid of splash from menu.lst:
j...@opensolaris:/boot/grub$ cat /rpool/boot/grub/menu.lst
timeout 30
default 5
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
#---------------------END BOOTADM--------------------
title test-x4150
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/test-x4150
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title xvm
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/xvm
kernel$ /boot/$ISADIR/xen.gz dom0_mem=1024M
module$ /platform/i86xpv/kernel/$ISADIR/unix
/platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title svn118
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/svn118
kernel$ /boot/$ISADIR/xen.gz dom0_mem=1024M
module$ /platform/i86xpv/kernel/$ISADIR/unix
/platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title xvm-b121
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/xvm-b121
kernel$ /boot/$ISADIR/xen.gz dom0_mem=1024M
module$ /platform/i86xpv/kernel/$ISADIR/unix
/platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title noxvm-b121
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/noxvm-b121
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title noxvm-b122
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/noxvm-b122
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
Export and reboot
j...@opensolaris:~$ pfexec zpool export rpool
j...@opensolaris:~$ pfexec reboot
reboot: Failed to process GRUB menu entry for fast reboot.
No such entry found
reboot: Falling back to regular reboot.
Connection to 192.168.10.3 closed.
The next time the system reboots, it boots into USB stick grub menu
(OpenSolaris installation USB stick). I typed 'c' to go to command line, used
findroot to find rpool, which is (hd1,0,a). I used find /boot/grub/menu.lst,
and it hangs. (see grub-find-hang.GIF)
Then in BIOS I change the boot devide to the 2nd HDD, which has rpool on it.
(see BIOS-change.GIF)
When it boots back, it hangs at GRUB prompt. (see grub-hang.GIF)
Does this give you more info to analyze?
Thx,
Sean
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
opensolaris-discuss mailing list
[email protected]
--
==============================================================================
dodo: A bird that forgot how to fly. Going, going, going ...
==============================================================================
_______________________________________________
opensolaris-discuss mailing list
[email protected]