[zfs-discuss] Easiest way to install new system with ZFS / ? Live CD recommendation

Outback Dingo outbackdingo at gmail.com
Sun Jul 31 00:11:36 EDT 2011


On Sun, Jul 31, 2011 at 4:03 AM, Zachary Bedell <pendorbound at gmail.com>wrote:

> On Jul 30, 2011, at 11:44 PM, Outback Dingo wrote:
>
> On Sat, Jul 30, 2011 at 11:21 PM, Fajar A. Nugraha <list at fajar.net> wrote:
>
>> On Sun, Jul 31, 2011 at 9:53 AM, Outback Dingo <outbackdingo at gmail.com>
>> wrote:
>> >
>> >> For now though, you need some sort of auxiliary partition, be it a
>> >> bios_grub partition on GPT or additional space at the front of the disk
>> on
>> >> MBR.
>> >
>> > Ok making progress...
>> > sooooo can i create
>> > /dev/sd(ab)1 of say 4MB
>> > /dev/sd(ab)2 500Mb
>> >
>> > zpool create rpool mirror sda2 sdb2
>> >
>> > what label shiould sd(ab)1 be??
>> > standard linux ? do they need to be formatted?
>>
>> Are you going for MBR or GPT? Do you want separate /boot/grub or not?
>>
>
> I dont want a separate /boot
> ive been using cfdisk, guess ill have to reinstall again
> and try with fdisk so i wount need these extra partitions,
>
>
> With what you currently have, you might be able to get away with just
> DELETING your first partition -- the one you set aside for Grub.  Leaving
> that as unpartitioned space should allow grub to use it.  Run grub-install
> for both of your devices, and you should be able to boot from either one.
>  That leaves your kernel & ramdisk on ZFS (no separate /boot partition --
> it's just in your ZFS root).
>
> If fdisk won't let you delete the first partition, you could get away with
> deleting them both, then recreating your first partition in exactly the same
> sectors that sdX2 currently occupy.  That's a little dicey -- if you get it
> wrong, you lose your pool.  But it should work fine as long as the new first
> partition is exactly the same space as the current second partition.
>
> If you want to go GPT instead of MBR, you'll need gdisk instead of fdisk.
>

ok fstab is setup for
# UNCONFIGURED FSTAB FOR BASE SYSTEM



/dev/sda1  / auto  defaults  0  1

Ive blown away all partitions and created 1 sda1 and a same sized sdb1 and a
250G sdb2
root at ubuntu:~# fdisk -l /dev/sda




Disk /dev/sda: 500.1 GB, 500107862016 bytes



81 heads, 63 sectors/track, 191411 cylinders, total 976773168 sectors



Units = sectors of 1 * 512 = 512 bytes



Sector size (logical/physical): 512 bytes / 512 bytes



I/O size (minimum/optimal): 512 bytes / 512 bytes



Disk identifier: 0x000ccd7b




   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048   976773167   488385560   83  Linux
root at ubuntu:~# fdisk -l /dev/sdb

Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x98b324f9

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  1048578047   524288000   83  Linux
/dev/sdb2      1048578048  1465149167   208285560   83  Linux


I then ran
zpool create rpool mirror sda1 sdb1
zpool create upool sdb2

so good so far
ran through the debootstrap

i guess ill need the zfs-grub2


>
> -Zac
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20110731/f8210099/attachment.html>


More information about the zfs-discuss mailing list