Hello, I have a big problem: My system does no more boot since I have moved with zpool command my partition. When my partition boots, a empty grub prompt starts. When I type findroot, it says: Unexpected command. I'm suspecting to have a wrong grub version. It seems that it does not include ZFS functions.
When I boot from livecd, I can import the partitions with "zpool import rpool". But how to tell Solaris to reinstall grub with the setup of the rpool volume. I tried with installgrub. But it gave me an empty grub prompt at boot time. I tried with beadm to reactivate the opensolaris boot environement but I get the following error: root at opensolaris:~# beadm list BE Active Mountpoint Space Policy Created -- ------ ---------- ----- ------ ------- opensolaris R - 6.16G static 2008-12-03 13:46 test - - 63.0K static 2008-12-13 03:32 test2 - - 63.0K static 2008-12-13 03:35 root at opensolaris:~# beadm activate opensolaris Unable to activate opensolaris. Unknown external error. root at opensolaris:~# beadm activate test Unable to activate test. Unknown external error. Please help, I don't know what to do? Here are some information about my pool: root at opensolaris:~# zpool status pool: rpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c5d0p3 ONLINE 0 0 0 errors: No known data errors root at opensolaris:~# zpool iostat capacity operations bandwidth pool used avail read write read write ---------- ----- ----- ----- ----- ----- ----- rpool 8,72G 88,9G 1 8 3,31K 38,4K An outpout of format how it looks like: AVAILABLE DISK SELECTIONS: 0. c5d0 <DEFAULT cyl 6372 alt 2 hd 255 sec 126> sda /pci at 0,0/pci-ide at e/ide at 0/cmdk at 0,0 1. c6d0 <drive type unknown> /pci at 0,0/pci-ide at e/ide at 1/cmdk at 0,0 2. c7d0 <DEFAULT cyl 1401 alt 2 hd 255 sec 63> /pci at 0,0/pci-ide at f/ide at 0/cmdk at 0,0 3. c8d0 <DEFAULT cyl 520 alt 2 hd 255 sec 63> /pci at 0,0/pci-ide at f/ide at 1/cmdk at 0,0 Specify disk (enter its number): 0 selecting c5d0: sda NO Alt slice No defect list found [disk formatted, no defect list found] /dev/dsk/c5d0s2 is part of active ZFS pool rpool. Please see zpool(1M). /dev/dsk/c5d0s8 is part of active ZFS pool rpool. Please see zpool(1M). FORMAT MENU: disk - select a disk type - select (define) a disk type partition - select (define) a partition table current - describe the current disk format - format and analyze the disk fdisk - run the fdisk program repair - repair a defective sector show - translate a disk address label - write label to the disk analyze - surface analysis defect - defect list management backup - search for backup labels verify - read and display labels save - save new disk/partition definitions volname - set 8-character volume name !<cmd> - execute <cmd>, then return quit format> verify Primary label contents: Volume name = < sda> ascii name = <DEFAULT cyl 6372 alt 2 hd 255 sec 126> pcyl = 6374 ncyl = 6372 acyl = 2 bcyl = 0 nhead = 255 nsect = 126 Part Tag Flag Cylinders Size Blocks 0 root wm 1 - 6371 97.61GB (6371/0/0) 204700230 1 unassigned wm 0 0 (0/0/0) 0 2 backup wu 0 - 6371 97.62GB (6372/0/0) 204732360 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 unassigned wm 0 0 (0/0/0) 0 7 unassigned wm 0 0 (0/0/0) 0 8 boot wu 0 - 0 15.69MB (1/0/0) 32130 9 unassigned wm 0 0 (0/0/0) 0 Total disk size is 25664 cylinders Cylinder size is 32130 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 IFS: NTFS 0 15256 15257 59 2 Ext Win95 15257 16531 1275 5 3 Active Solaris2 16532 22905 6374 25 4 EXT-DOS 22906 91200 68295 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. Exit (update disk configuration and exit) 6. Cancel (exit without updating disk configuration) Enter Selection: Note that partition 2 (Ext Win95) was the old Solaris2 partition. Is it possible that there is still a conflict between the old label and new label? Here is a truss output of "beadm activate opensolaris": ... ioctl(4, MNTIOC_GETMNTENT, 0x08043268) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x08043268) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x08043268) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x08043268) = 1 zone_lookup(0x00000000) = 0 llseek(4, 0, SEEK_CUR) = 0 llseek(4, 0, SEEK_SET) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 0 ioctl(4, MNTIOC_GETMNTENT, 0x080436F8) = 1 ioctl(3, ZFS_IOC_SET_PROP, 0x080438CC) = 0 zone_lookup(0x00000000) = 0 ioctl(3, ZFS_IOC_OBJSET_STATS, 0x080423EC) Err#12 ENOMEM ioctl(3, ZFS_IOC_OBJSET_STATS, 0x080423EC) = 0 ioctl(3, ZFS_IOC_OBJSET_STATS, 0x0804285C) Err#12 ENOMEM ioctl(3, ZFS_IOC_OBJSET_STATS, 0x0804285C) = 0 close(3) = 0 llseek(4, 0, SEEK_CUR) = 0 close(4) = 0 llseek(5, 0, SEEK_CUR) = 0 close(5) = 0 fstat64(2, 0x08047094) = 0 Unable to activate opensolaris. Unknown external error.write(2, " U n a b l e t o a c".., 55) = 55 write(2, "\n", 1) = 1 sigaction(SIGINT, 0x08047AD4, 0x08047B50) = 0 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFE360000 open64("/dev/dtrace/helper", O_RDWR) = 3 ioctl(3, DTRACEHIOC_REMOVE, 0x00000000) = 0 close(3) = 0 open64("/dev/dtrace/helper", O_RDWR) = 3 ioctl(3, DTRACEHIOC_REMOVE, 0x00000001) = 0 close(3) = 0 munmap(0xFE360000, 4096) = 0 _exit(1) -- This message posted from opensolaris.org