Sriram Narayanan <sri...@belenix.org> writes:

>> So getting to the actual task... Can that drive be partitioned without
>> destroying the installation on it?  If so, can an Installation be
>> tarred to another disk and simply tarred back once the partitioning is
>> done?
>
> You cannot non-destructively repartition. If you have any data on that
> disk,  move it off (to the other disks, for e.g.), reinstall into a
> smaller partition, and then get that data back.

That is what I ended up doing but stumbled around a lot in the
process.  I managed to destroy the mbr on the 108 install.

So now I have:
    AVAILABLE DISK SELECTIONS:
       0. c3d0 <DEFAULT cyl 362 alt 2 hd 255 sec 63>
          /p...@0,0/pci-...@f/i...@0/c...@0,0
       1. c3d1 <DEFAULT cyl 3260 alt 2 hd 255 sec 63>
          /p...@0,0/pci-...@f/i...@0/cm

c3d0 holds 108
c3d1 holds 101b  A fresh install.

So I have two problems I need to resolve to move on.
1) how to restore mbr on c3d0
2) how to move data on c3d0 to c3d1

1): I found some info about restoring with `installgrub' but having
trouble figuring out where to aim it.  I tried:

  installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c3d0s3

  Checking with format/fdisk I made sure partition 3 was active as it
  was originally.

        Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 Solaris2          1   364     364      5
          2                 Solaris2        365   728     364      5
          3       Active    Solaris2        729  1092     364      5

So boot would have some chance of working.
I haven't rebooted yet to see if it worked

So moving to:
2) again stumbling around here ... how to mount the rpool on c3d0

I tried a few things:
  mkdir /rp1
 mount /dev/dsk/c3d0s0 /rp1

r...@zfs:~#  mount /dev/dsk/c3d0s0 /rp1
mount: /dev/dsk/c3d0s0 no such device

Of course the device appears to be present at that location.

ls -l /dev/dsk/c3d0s0:
# ls -l /dev/dsk/c3d0s0
lrwxrwxrwx 1 root root 48 2009-03-07 09:08 /dev/dsk/c3d0s0 -> 
../../devices/p...@0,0/pci-...@f/i...@0/c...@0,0:a

So not sure how to get the install on c3d0  salvaged onto c3d1


_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to