[SunHELP] formatting disk

Leslie V Brigance sunhelp at sunhelp.org
Wed Oct 31 09:24:00 CST 2001


Just a small point in disk management.
If you're not using something like VXVM or DiskSuite and doing all your
partitioning manually, it is often a good idea to leave cylinder zero out
of your
partitioning scheme. The newfs command does not write over cylinder 0 track
0
but something which uses raw space (like Oracle or Sybase) can overwrite
your
vtoc.

Les Brigance (Solaris Systems Admin) Phone: (816) 995-3564


"Mike's List" <mikelist at sky.net>@sunhelp.org on 10/30/2001 07:03:10 PM

Please respond to sunhelp at sunhelp.org

Sent by:  sunhelp-admin at sunhelp.org


To:   sunhelp at sunhelp.org
cc:
Subject:  Re: [SunHELP] formatting disk




On Tue, 30 Oct 2001, Steve Wingate wrote:

> I'm trying to format a 2nd disk as one big partition on my SS20. The disk
is /dev/dsk/c0t3d0s2, a disk on the internal bus. I followed some
instructions and assigned slice 0 the full 6919 cylinders. Executing a
print command within format showed as foll
ows:

Did you label it after partitioning it?  Label = write the partitioning to
the disk and save it...


- Mike


> partition> print
> Volume:  content
> Current partition table (original):
> Total disk cylinders available: 6920 + 2 (reserved cylinders)
>
> Part      Tag    Flag     Cylinders        Size            Blocks
>   0 alternates    wm       0 - 6917        4.24GB    (6918/0/0) 8882712
>   1       swap    wu       0               0         (0/0/0)          0
>   2     backup    wm       0 - 6919        4.24GB    (6920/0/0) 8885280
>   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
>
> After mounting the disk and executing df -k I noticed the 0 partition was
showing as 100MB, not the full disk. Incidentally this is the size it was
before I repartitioned the disk; this disk used to have Sol 8 on it. I went
back into format and tried to
 redo the partitions pretty much the same way. For some reason I got the
idea to use the format option to format and analyze the hard disk.
> Now when when I try to mount the disk I get this:
>
> # grep content /etc/vfstab
> /dev/dsk/c0t3d0s0       /dev/rdsk/c0t3d0s0      /content        ufs     2
yes     -
> # mount /content
> mount: /dev/dsk/c0t3d0s0 is not this fstype.
>
> This is the same entry I was mounting the disk as successfully prior to
repartitioning it the 2nd time. What do I have to do to put an fstype on
this disk. There is nothing on it that needs to be saved. TIA.
>
>
> +---------------------------------------------------------------------+
> |Steve Wingate <stevew at velosystems.net>                  310.544.9920 |
> |MCSE, CCNA, no JOB                      Tue Oct 30 16:17:00 PST 2001 |
> +---------------------------------------------------------------------+
> |FreeBSD 4.4-STABLE                                                   |
> | 4:17PM  up 3 days, 15:42, 8 users, load averages: 0.00, 0.01, 0.00  |
> +---------------------------------------------------------------------+
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
>

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp





More information about the SunHELP mailing list