I''ve got knee deep into learning how to use Opensolaris and zfs, and I see now that my goal of home zfs server may have been better served if I had partitioned the install disk leaving some of the 60GB to be added to a zpool. First, how much space does a working OS need. I don''t mean bare minimum but to be comfortable and have some growing room (on the install disk)? I''d like to paritition off however much that is, and create a partition of the rest to add to a zpool. I''m not going to be strapped for space really... but that will be at some future time. Right now I have a 60gb disk I installed osol-11 on, a 250gb IDE Disk that used to be on a windows XP machine. I also have on hand 2 200GB SATA disks that I cannot use (yet) since osol does not recognize the controller. I''ve ordered another 500 GB IDE disk to add to the mobo''s 2 IDE controllers, and a PCI sata card (Adaptec 1205sa) with 2 ports. All told that would be 1100GB for a pool. It just bugs me that I probably left too much for the OS. I really don''t have much of a clue of how much room a zfs server needs for the OS. Is this something that isn''t worth the effort... impractical? If not then anyones ideas of a brief outline of how to proceed would be welcome.
On Fri, 06 Mar 2009 15:17:22 -0600, Harry Putnam <reader at newsguy.com> wrote:>First, how much space does a working OS need. I don''t mean bare >minimum but to be comfortable and have some growing room (on the >install disk)?It depends on the installation you use (Plain Solaris 10, one of the Opensolaris incarnations like Nexenta, Indiana, SXCE, ...). For the root pool including dump and swap, 16 GByte should do for any of them, and still leave room for live upgrades. -- ( Kees Nuyt ) c[_]
Kees Nuyt <k.nuyt at zonnet.nl> writes:> On Fri, 06 Mar 2009 15:17:22 -0600, Harry Putnam > <reader at newsguy.com> wrote: > >>First, how much space does a working OS need. I don''t mean bare >>minimum but to be comfortable and have some growing room (on the >>install disk)? > > It depends on the installation you use (Plain Solaris 10, > one of the Opensolaris incarnations like Nexenta, Indiana, > SXCE, ...).I''m still a little confused about the various versions but I guess since I installed from the official opensolaris 2008.11, which gave me 101b. And then updated to dev (208) that would be Indiana right? 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? Or in some other way moved out of line of fire and put back after?
Sriram Narayanan
2009-Mar-07 06:19 UTC
[zfs-discuss] RePartition OS disk, give some to zpool
On Sat, Mar 7, 2009 at 8:27 AM, Harry Putnam <reader at newsguy.com> wrote:> I''m still a little confused about the various versions but I guess > since I installed from the official opensolaris 2008.11, which gave me > 101b. ?And then updated to dev (208) that would be Indiana right? >That''d be build 108, I think.> 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. -- Sriram
Sriram Narayanan <sriram at 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> /pci at 0,0/pci-ide at f/ide at 0/cmdk at 0,0 1. c3d1 <DEFAULT cyl 3260 alt 2 hd 255 sec 63> /pci at 0,0/pci-ide at f/ide at 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 root at 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/pci at 0,0/pci-ide at f/ide at 0/cmdk at 0,0:a So not sure how to get the install on c3d0 salvaged onto c3d1
Harry Putnam <reader at newsguy.com> writes:> 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 workedAt reboot I end up at a grub cmdline. I''m not finding a root partition with: find /<tab> root (hd0,0) find /<tab> can''t mount selected partition I went through (hd0,[0-3]) At hd0,3 I''m told there is no such partition; at all others the result is like above: find /<tab> can''t mount selected partition. I''ve been all over googling but have yet to nail down the exact grub commands that will get me somewhere. Maybe grub is installed in the wrong place: /dev/rdsk/c3d0s3? I also tried /dev/rdsk/c3d0s0, with similar results. A grub prompt where I can''t find a root partition.