Bootblk - where do i install it ? s0 or s8 ?

Hi all,

I am on Intelx86 platform.
I have make my entire disk a Solaris partition.

Below are the slice information.

partition> p
Current partition table (original):
Total disk cylinders available: 6524 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm      68 - 1141        8.23GB    (1074/0/0)  17253810
  1       swap    wu       1 -   67      525.56MB    (67/0/0)     1076355
  2     backup    wm       0 - 6523       49.98GB    (6524/0/0) 104808060
  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       home    wm    1142 - 6522       41.22GB    (5381/0/0)  86445765
  8       boot    wu       0 -    0        7.84MB    (1/0/0)        16065
  9 unassigned    wm       0               0         (0/0/0)            0

q1) where is bootblk installed ? should i it on s0 (as per the book) or s8 ? which is my boot partition.

q2) if i make the entire disk a Solaris partition, does the sector 0 here refer to the 1st sector of the partition or the disk ?

Regards,
Noob

q1: why are you asking?
q2: first sector of the fdisk partition.

Hi jlliagre,

Thansk for the reply.
I am looking into oracle doc on
http://docs.oracle.com/cd/E19253-01/817-5093/6mkisoq7n/index.html

How to install a bootblk on X86 system disk, and the example shown that the installation is done on s0.

However, i thought the pboot, vtoc, bootblk etc, should be on the boot partition (slice 8 instead ?) ?

Regards,
Noob

Follow the documentation and use s0. Wherever the bootblock will end up is up to Solaris.

Hi jlliagre,

I am not sure what the difference, but over in this link below, it seems like the pboot, and bootblk is store on s2 (which is think emcompass s8) as well.

x86: How to Install a Boot Block on a System Disk (System Administration Guide: Basic Administration)

Regards,
Noob

Yes, s2 (slice2) is the convention for referring to an entire disk in Solaris.

There's probably some confusion generated because there's more than one possible boot loader. You can use Sun (Oracle) own boot block(s) or use Grub. There are also other possibilities utilising the system BIOS if the hardware supports EFI.

The documentation links provided above are for different boot loaders; one uses 'installboot' and the other 'installgrub'.

Basically, follow the documentation for whichever boot loader you want to use. As already implied by Jlliagre, these commands aren't stupid and will place the bootblock(s) where they're needed. It's not a dangerous process.

Why do you want to (re?)install a boot block on that disk?
Wasn't one already there?
What Solaris release are you using?

1 Like

Hi jlliagre,

I intended to start everything from scratch, including a new harddisk.. So i am not sure if i need to install a boot blk, and if so, where do i install it ? s0, s2, s8.

Regards,
Noob

What is "everything"? What do you want to do with that new hard-disk?

1 Like

The point I would make is that 'installboot' and 'installgrub' are intelligent commands well aware of what you are trying to do, ie, write out boot sectors. You would use the raw disk device as the argument

 
 /dev/rdsk/c?t?d?s?
 

Irrespective of whether you use s0, s2 or s8 the commands are not going to write the boot blocks to a slice. They know that it's the physical drive that needs the boot sectors.

Having said that I normally use s2 which represents the whole disk, but to answer your question, I don't think it matters.

This is not to detract from the dialogue that you are having with jlliagre about what you are trying to achieve , which is a good question.

Hope that helps.

Since you've said that you're on a x86 platform do you definitely have
c?t?d?s? addressing? X86 is often c?d?p?

What hardware is it?

Hi Jlliagre,

I am trying to install a new OS in it..
I am just seeing if i could, format the disk, install an OS , which i think will make it a system disk.

So when reading oracle documentation, they mentioned about installing bootblk on system disk, and so here i am.

Actually, under what scenario would bootblk have to be installed ?

Regards,
Noob

---------- Post updated at 09:40 AM ---------- Previous update was at 09:32 AM ----------

Hi hicksd8,

I am on vmware actually.
The disk is actually c1t0d0

Regards,
Noob

Installing Solaris on the new disk should take care of everything, including installing the appropriate boot loader on the suitable slice. Note that since 2006 the boot loader is always Grub with x86.
Grub is composed of several parts, the first one is usually on the beginning of the disk (MBR) but not necessarily, the second one is on the beginning of a slice (stage 2) and the third one is composed of files located on the file system in that slice.

In any case, you shouldn't worry about installing Grub yourself, that will be done under the cover by the installer.

Typical scenarios under which the boot block would need to be manually installed is when someone mirror a boot boot disk or when an OS file system or root pool backup is being restored on a new disk. You doesn't look to be in either of these cases.

By the way, you failed to answer about which Solaris version you are using. The documentation link you posted is about Solaris 10. Why aren't you using Solaris 11?

The latest is Solaris 11.3 which was just released yesterday.

Hi Jlliagre,
Thanks for the advice.

q1) As you mentioned, Grub is the bootloader for X86, so stage 1 is in MBR, stage2 is in the beginning of the slice (which i think you are referring to active partition - in X86 term) -- so that would be s2 in the partition actually - right ?

q2) Also you mentioned that a installing a bootblock is normally done when someone mirror a bootdisk, but doesn't the original bootdisk already contain the bootblk, which will be mirror over already ? why do we need to manually do install the bootblock again ?

q3) Lastly, I always wondered as i am reading about Solaris Volume Manager, how do i install an OS on a mirror disk without installing the OS 1st ? (i mean how do we use SVM to create a mirror system disk for installing the OS onto it without installing the OS 1st)

Sorry for the noob questions.

Yea i am using Solaris 10 1/13. I didn't thought about upgrading to 11 yet as i am thinking of starting humbly before i fly.. (but seems like i cant even managed 10 now)...

;(

Regards,
Noob

q1: No, stage 2 should go to the slice containing the root file system, usually s0.

q2: Not again, only the the original disk contains the boot block. Mirroring file systems doesn't copy data sitting outside of them.

q3: Forget about Solaris Volume Manager and use ZFS.

Almost the same advice for Solaris 10 vs Solaris 11. Solaris 10 is ten years old.

Hi Jlliagre,

Thanks for replying.

for q2) if i am mirroring every slice in the whole disk, isn't the bootblock also mirrored over ?

for q3) yeap, but i foreseen i will still be handling a bunch of solaris 10 servers for the coming 1-2 years, can you shed some light on how do we actually do a mirror disk before installing solaris ? (so that the solaris OS is installed on top of the mirror disk)

Thanks.

q2: Again, the MBR is outside any slice.

q3: Either you are mirroring an already installed Solaris instance or you are installing Solaris from scratch on a new disk, you can't do both on the same disk.

1 Like

Hi jlliagre,

Thanks for the response and sorry for the late reply. With regards to the above quote, do you mean that

If I have a brand new server with 2 raw disks, and i wish to setup a raid-1 mirror using SVM, I can only either

a) format the disk, setup the filesystem(s), OS etc on 1 disk 1st, then mirror the disk over to the 2nd disk

or

b) setup disk mirroring during OS installation ? (is there a option for doing that during the installation ) ?

Is that what you meant ? Sorry my english is not very good.

Regards,
Noob

There is no way to setup disk mirroring at installation time so the way to go is indeed a).

1 Like