Posts Tagged sun

My own referral…?


Funny story… at least I thought it was… I was on-site @ a customer’s data center the other day and I was tasked with configuring a SUN LTO-3 Quantum tape drive, similar to the photo on the left here, among other things… No biggie right…? Any way… in my usual way I was Googling lots of stuff, because I don’t remember anything… and while doing so, I came across my own blog, this very one you are reading for the answer.  I thought that was awesome… I answered my own question… LOL 🙂

Advertisements

, , , ,

Leave a comment

Solaris ‘growfs’ type thang…


This was the easy way to do this, meaning I had free space to grow into… If you don’t have any free space, check out the Solaris 10 disk extending post here…

# which growfs <– was that really necessary???
/usr/sbin/growfs
# format
Searching for disks…done <– remember… pick the right one here…

c1t5d0: configured with capacity of 1.87GB
c1t8d0: configured with capacity of 4.20GB

AVAILABLE DISK SELECTIONS:
0. c1t1d0 <DEFAULT cyl 1604 alt 2 hd 10 sec 258>
/pci@0,0/pci1de1,3907@a/sd@1,0
1. c1t2d0 <DEFAULT cyl 2625 alt 2 hd 10 sec 258>
/pci@0,0/pci1de1,3907@a/sd@2,0
2. c1t5d0 <IBMOEM-0664M1H-661 cyl 2787 alt 2 hd 15 sec 94>
/pci@0,0/pci1de1,3907@a/sd@5,0
3. c1t8d0 <IBM-DDRS-34560W-S98G cyl 8084 alt 2 hd 5 sec 218>
/pci@0,0/pci1de1,3907@a/sd@8,0

Type 0 to select disk 0

Specify disk (enter its number): 0
selecting c1t1d0
[disk formatted]

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
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
inquiry – show vendor, product and revision
volname – set 8-character volume name
!<cmd> – execute <cmd>, then return
quit

type ‘partition’
format> partition

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’

type ‘print’ to see the details of the partition

partition> print
Current partition table (original):
Total disk cylinders available: 4107 + 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 wm 0 – 1603 1.97GB (1604/0/0) 4138320
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 usr wm 1 – 1603 1.97GB (1603/0/0) 4135740
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 0 (0/0/0) 0
9 unassigned wm 0 0 (0/0/0) 0

type ‘2’ to edit partition 2

partition> 2
Part Tag Flag Cylinders Size Blocks
2 backup wm 0 – 1603 1.97GB (1604/0/0) 4138320

Enter partition id tag[backup]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:

type in new partition size, ‘4107c’

Enter partition size[4138320b, 1604c, 1603e, 2020.66mb, 1.97gb]: 4107c

type ‘print’ to see the details of the modified partition

partition> print
Current partition table (unnamed):
Total disk cylinders available: 4107 + 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 wm 0 – 4106 5.05GB (4107/0/0) 10596060
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 usr wm 1 – 1603 1.97GB (1603/0/0) 4135740
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 0 (0/0/0) 0
9 unassigned wm 0 0 (0/0/0) 0
type ‘quit’ to leave the partition edit menu

partition> quit

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
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
inquiry – show vendor, product and revision
volname – set 8-character volume name
!<cmd> – execute <cmd>, then return
quit

try to save the changes

format> save
Please name this partition type before saving it <– whoops.. I f’ed it up

UH OH, back to disk 0 partiton menu <– I will skip all of the details

partition> label
Ready to label disk, continue? y

partition> quit

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
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
inquiry – show vendor, product and revision
volname – set 8-character volume name
!<cmd> – execute <cmd>, then return
quit
format> quit

I then double checked that my edit had been saved, which I will skip as well. Next to grow the partition.

# growfs
usage: growfs [ -M mount-point ] [ newfs-options ] raw-special-device
# growfs /dev/rdsk/c1t1d0s6
/dev/rdsk/c1t1d0s6: 10593480 sectors in 4106 cylinders of 10 tracks, 258 tors
5172.6MB in 257 cyl groups (16 c/g, 20.16MB/g, 9664 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 41584, 83136, 124688, 166240, 207792, 249344, 290896, 332448, 374000,
10198096, 10239648, 10281200, 10322752, 10364304, 10405856, 10447408,
10488960, 10530512, 10567712,

Did that make any sense? LOL… but seriously did it?

, , , , , , , , , , , ,

1 Comment