How transform new drive into large file system on x-86 Solaris 10?

0 views
Skip to first unread message

bornbo...@gmail.com

unread,
May 5, 2009, 1:35:31 AM5/5/09
to forumgrouper

Dear Solaris People,

I have a simple x86 box running Solaris 10.

Today I put a new drive in the box.

After a boot, I found the new drive in the dmesg output:

May 4 22:14:28 sol genunix: [ID 936769 kern.info] pseudo1 is /pseudo/
zconsnex@1
May 4 22:14:28 sol genunix: [ID 640982 kern.info] IDE device at
targ 0, lun 0 lastlun 0x0
May 4 22:14:28 sol genunix: [ID 846691 kern.info] model Hitachi
HDP725050GLA360 ******* Here !! *****
May 4 22:14:28 sol genunix: [ID 479077 kern.info] ATA/ATAPI-8
supported, majver 0x1fc minver 0x29
May 4 22:14:30 sol pci: [ID 370704 kern.info] PCI-device: ide@1, ata0
May 4 22:14:30 sol genunix: [ID 936769 kern.info] ata0 is /pci@0,0/
pci-ide@12/ide@1
May 4 22:14:30 sol pcplusmp: [ID 637496 kern.info] pcplusmp: ide
(ata) instance 5 vector 0xf ioapic 0x2 intin 0xf is bound to cpu 0

Here is info about this new drive:
- http://www.newegg.com/Product/Product.aspx?Item=N82E16822145215

So my question is simple.

How do I transform this new drive into a single large file system?

Here is some more mildly interesting info from dmesg:

May 4 22:12:02 sol genunix: [ID 540533 kern.notice] ^MSunOS Release
5.10 Version Generic_118855-14 64-bit
May 4 22:12:02 sol genunix: [ID 943906 kern.notice] Copyright
1983-2005 Sun Microsystems, Inc. All rights reserved.

snip

Here is my boot drive:
- http://www.google.com/search?q=ST3250823AS

May 4 22:12:02 sol genunix: [ID 640982 kern.info] IDE device at
targ 0, lun 0 lastlun 0x0
May 4 22:12:02 sol genunix: [ID 846691 kern.info] model
ST3250823AS
May 4 22:12:02 sol genunix: [ID 479077 kern.info] ATA/ATAPI-7
supported, majver 0xf8 minver 0x1b
May 4 22:12:04 sol pci: [ID 370704 kern.info] PCI-device: ide@0, ata2
May 4 22:12:04 sol genunix: [ID 936769 kern.info] ata2 is /pci@0,0/
pci-ide@12/ide@0
May 4 22:12:04 sol genunix: [ID 773945 kern.info] UltraDMA mode
5 selected
May 4 22:12:04 sol gda: [ID 243001 kern.info] Disk0: <Vendor 'Gen-
ATA ' Product 'ST3250823AS '>
May 4 22:12:04 sol ata: [ID 496167 kern.info] cmdk0 at ata2 target 0
lun 0

snip

Here is info about my cpu:

May 4 22:12:06 sol unix: [ID 950921 kern.info] cpu0: x86 (chipid 0x0
GenuineIntel family 15 model 4 step 3 clock 3200 MHz)
May 4 22:12:06 sol unix: [ID 950921 kern.info] cpu0: Intel(r) Pentium
(r) 4 CPU 3.20GHz
May 4 22:12:06 sol unix: [ID 950921 kern.info] cpu1: x86 (chipid 0x0
GenuineIntel family 15 model 4 step 3 clock 3200 MHz)
May 4 22:12:06 sol unix: [ID 950921 kern.info] cpu1: Intel(r) Pentium
(r) 4 CPU 3.20GHz

-b

Bjorn Boulder

unread,
May 5, 2009, 2:53:09 AM5/5/09
to forumgrouper
Okay I figured this out:

touch /reconfigure
shutdown -y -g0 -i6
format

I then saw:
bash sol root ~ 3 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 24174 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@12/ide@0/cmdk@0,0
1. c3d0 <DEFAULT cyl 60798 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@12/ide@1/cmdk@0,0
Specify disk (enter its number): 1

selecting c3d0
Controller working list found
[disk formatted, defect list found]


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format>

I did:

format> type


AVAILABLE DRIVE TYPES:
0. DEFAULT
1. DEFAULT
2. other
Specify disk type (enter its number)[1]:

selecting c3d0
Controller working list found
[disk formatted, defect list found]
format> part
part
Please run fdisk first.
format> fdisk

No fdisk table exists. The default partition for the disk is:

a 100% "SOLARIS System" partition

Type "y" to accept the default partition, otherwise type "n" to edit
the
partition table.
y
format> part


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition>

partition> prin

Current partition table (original):
Total disk cylinders available: 60797 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0
(0/0/0) 0
1 unassigned wm 0 0
(0/0/0) 0
2 backup wu 0 - 60797 465.74GB (60798/0/0)
976719870
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
8 boot wu 0 - 0 7.84MB (1/0/0)
16065
9 alternates wm 1 - 2 15.69MB (2/0/0)
32130

partition>

partition> q


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> label

Ready to label disk, continue? y

format> q

bash sol root ~ 7 # newfs c3d0s2

newfs: construct a new file system /dev/rdsk/c3d0s2: (y/n)? y

Warning: 1732 sector(s) in last cylinder unallocated
/dev/rdsk/c3d0s2: 976703804 sectors in 158969 cylinders of 48
tracks, 128 sectors
476906.2MB in 9936 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488,
885920,
Initializing cylinder groups:
...............................................................................
...............................................................................
........................................
super-block backups for last 10 cylinder groups at:
975766304, 975864736, 975963168, 976061600, 976160032, 976258464,
976356896,
976455328, 976553760, 976652192
bash sol root ~ 8 #

bash sol root ~ 8 # ll /u2
/u2: No such file or directory
bash sol root ~ 9 # mkdir /u2
bash sol root ~ 10 # grep c3d0 /etc/vfstab
/dev/dsk/c3d0s2 /dev/rdsk/c3d0s2 /u2 ufs 2
yes -
bash sol root ~ 11 #

bash sol root ~ 11 # mount /u2
bash sol root ~ 12 #

bash sol root ~ 12 # df -h /u2
Filesystem size used avail capacity Mounted on
/dev/dsk/c3d0s2 459G 64M 454G 1% /u2
bash sol root ~ 13 #
bash sol root ~ 13 #
bash sol root ~ 13 #
bash sol root ~ 13 #


On May 4, 10:35 pm, "bornboulde...@gmail.com"
<bornboulde...@gmail.com> wrote:
> Dear Solaris People,
>
> I have a simple x86 box running Solaris 10.
>
> Today I put a new drive in the box.
>
> After a boot, I found the new drive in the dmesg output:
>
> May  4 22:14:28 sol genunix: [ID 936769 kern.info] pseudo1 is /pseudo/
> zconsnex@1
> May  4 22:14:28 sol genunix: [ID 640982 kern.info]      IDE device at
> targ 0, lun 0 lastlun 0x0
> May  4 22:14:28 sol genunix: [ID 846691 kern.info]      model Hitachi
> HDP725050GLA360  ******* Here !! *****
> May  4 22:14:28 sol genunix: [ID 479077 kern.info]      ATA/ATAPI-8
> supported, majver 0x1fc minver 0x29
> May  4 22:14:30 sol pci: [ID 370704 kern.info] PCI-device: ide@1, ata0
> May  4 22:14:30 sol genunix: [ID 936769 kern.info] ata0 is /pci@0,0/
> pci-ide@12/ide@1
> May  4 22:14:30 sol pcplusmp: [ID 637496 kern.info] pcplusmp: ide
> (ata) instance 5 vector 0xf ioapic 0x2 intin 0xf is bound to cpu 0
>
> Here is info about this new drive:
>   -http://www.newegg.com/Product/Product.aspx?Item=N82E16822145215
>
> So my question is simple.
>
> How do I transform this new drive into a single large file system?
>
> Here is some more mildly interesting info from dmesg:
>
> May  4 22:12:02 sol genunix: [ID 540533 kern.notice] ^MSunOS Release
> 5.10 Version Generic_118855-14 64-bit
> May  4 22:12:02 sol genunix: [ID 943906 kern.notice] Copyright
> 1983-2005 Sun Microsystems, Inc.  All rights reserved.
>
> snip
>
> Here is my boot drive:
>   -http://www.google.com/search?q=ST3250823AS
Reply all
Reply to author
Forward
0 new messages