Sei sulla pagina 1di 12

PTC Adding Space to a File System

Version 1.0
Confidential
For Viewing by Specified Target Audience Only
This document is confidential and intended for the following target audience only:
HCL / PTC System Admin

PTC - Confidential/proprietary

Parametric Technology Corp.

Parametric Technology Corp.

Shubhabrata Niyogi

Version

1.0

Date

04/02/2010

PTC - Confidential/proprietary

PROPOSAL
Document Information

Information

Document Id

PTC Adding Space to a File System

Document Owner

Shubhabrata Niyogi

Issue Date

04-02-2010

Last Saved Date

04-02-2010

File Name

PTC Adding Space to a File System.doc

Document History
Version Issue Date

Changes

1.0

Original

04-02-2010

Document Approvals
Role

Name

Signature

PTC - Confidential/proprietary

Date

PROPOSAL
Table of Contents
............................................................................................................................................................................1
INTRODUCTION...........................................................................................................................................................5
PROCESS OVERVIEW.................................................................................................................................................5

PTC - Confidential/proprietary

PROPOSAL
Introduction
The purpose of this document is to describe the implementation of Raritan and other console
access technology in PTC environment. The audience of this document is primarily HCL
System administration team who would be remotely performing UNIX administration from
HCL, Noida facility.
Process Overview

We are growing the size of a file system, when there is no space left after the deletion of old files.
Adding Space to a File System
root@oradev1 #
root@oradev1 # cfgadm -al
Ap_Id
c1
c1::50060482d52d4e4c
c2
c2::dsk/c2t0d0
c2::dsk/c2t2d0
c3
c3::50060482d52d4e43
usb0/1
usb0/2
usb0/3
usb0/4
usb0/5
usb0/6
usb0/7
usb1/1
usb1/2
usb1/3
usb1/4
usb1/5
usb1/6
usb1/6.1
usb1/6.2
usb1/6.3
usb1/6.4
usb1/7
root@oradev1 # luxadm -e forcelip
root@oradev1 # luxadm -e forcelip
root@oradev1 # devfsadm -Cv
root@oradev1 # scgdevs
Configuring DID devices
did instance 149 created.

Type
Receptacle
fc-fabric
connected
disk
connected
scsi-bus
connected
disk
connected
disk
connected
fc-fabric
connected
disk
connected
unknown
empty
unknown
empty
usb-device
connected
unknown
empty
unknown
empty
unknown
empty
unknown
empty
unknown
empty
unknown
empty
unknown
empty
unknown
empty
unknown
empty
usb-hub
connected
unknown
empty
unknown
empty
unknown
empty
unknown
empty
unknown
empty
50060482d52d4e4c
50060482d52d4e43

PTC - Confidential/proprietary

Occupant
configured
configured
configured
configured
configured
configured
configured
unconfigured
unconfigured
configured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
configured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured

Condition
unknown
unknown
unknown
unknown
unknown
unknown
unknown
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok

PROPOSAL

did subpath oradev1:/dev/rdsk/c4t60060480000190100793533030443338d0 created for


instance 149.
did instance 150 created.
did subpath oradev1:/dev/rdsk/c4t60060480000190100793533030333334d0 created for
instance 150.
Configuring the /dev/global directory (global devices)
obtaining access to all attached disks
root@oradev1 # df -h
Filesystem
size
used avail capacity Mounted on
/dev/md/dsk/d100
9.9G
8.2G
1.5G
85%
/
/devices
0K
0K
0K
0%
/devices
ctfs
0K
0K
0K
0%
/system/contract
proc
0K
0K
0K
0%
/proc
mnttab
0K
0K
0K
0%
/etc/mnttab
swap
115G
1.2M
115G
1%
/etc/svc/volatile
objfs
0K
0K
0K
0%
/system/object
sharefs
0K
0K
0K
0%
/etc/dfs/sharetab
/usr/lib/libc/libc_hwcap2.so.1
9.9G
8.2G
1.5G
85%
/lib/libc.so.1
fd
0K
0K
0K
0%
/dev/fd
/dev/md/dsk/d106
25G
5.4G
19G
23%
/var
swap
115G
120M
115G
1%
/tmp
swap
116G
1.0G
115G
1%
/var/run
/dev/md/dsk/d105
486M
17M
421M
4%
/global/.devices/node@1
/dev/md/globalset/dsk/d302
1.8T
1.4T
408G
78%
/global/rman
/dev/md/globalset/dsk/d300
67G
83M
66G
1%
/global/d00/archive
/dev/md/globalset/dsk/d301
67G
71M
66G
1%
/global/d00/flash
/dev/md/oradev1-localset/dsk/d110
9.9G
4.2G
5.5G
44%
/local
/dev/md/dbdev5set/dsk/d800
67G
2.4G
64G
4%
/d05/dimdb/oracle
/dev/md/dbdev5set/dsk/d801
67G
64M
66G
1%
/d05/dimdb/archive
/dev/md/dbdev5set/dsk/d802
340G
293G
44G
87%
/d05/dimdb/ORACLE_DB/ddim
/dev/md/dsk/d205
486M
17M
421M
4%
/global/.devices/node@2
/dev/md/dbdev1set/dsk/d400
67G
9.8G
57G
15%
/d01/web/oracle
/dev/md/dbdev1set/dsk/d402
871G
815G
48G
95%
/d01/web/ORACLE_DB
/dev/md/dbdev1set/dsk/d401
134G
30G
103G
23%
/d01/web/archive
/dev/md/dbdev3set/dsk/d601
1009G
980G
18G
99%
/d03/ptcdb/ORACLE_DB
/dev/md/dbdev3set/dsk/d602
67G
23G
43G
35%
/d03/ptcdb/archive
/dev/md/dbdev3set/dsk/d603
201G
152G
48G
77%
/d03/ptcdb/ORACLE_DB1
/dev/md/dbdev3set/dsk/d600
67G
65G
1.2G
99%
/d03/ptcdb/oracle
cel2-dm5-104:/dm5fs8/prod

PTC - Confidential/proprietary

PROPOSAL

148G
cel2-dm5-104:/dm5fs8/oplogs
148G

132G

15G

90%

/prod

132G

15G

90%

/oplogs

root@oradev1 # format c4t60060480000190100793533030443338d0


selecting c4t60060480000190100793533030443338d0
[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
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> la
Ready to label disk, continue? yes
format> ver
Primary label contents:
Volume name = <
>
ascii name = <DEFAULT cyl 8884 alt 2 hd 255 sec 63>
pcyl
= 8886
ncyl
= 8884
acyl
= 2
bcyl
= 0
nhead
= 255
nsect
= 63
Part
Tag
Flag
Cylinders
Size

PTC - Confidential/proprietary

Blocks

PROPOSAL
0
1
2
3
4
5
6
7
8
9

unassigned
unassigned
backup
unassigned
unassigned
unassigned
unassigned
unassigned
boot
unassigned

wm
wm
wu
wm
wm
wm
wm
wm
wu
wm

0
0
0 - 8883
0
0
0
0
0
0 0
0

0
0
68.05GB
0
0
0
0
0
7.84MB
0

(0/0/0)
0
(0/0/0)
0
(8884/0/0) 142721460
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0

format> q
root@oradev1 # format c4t60060480000190100793533030333334d0
selecting c4t60060480000190100793533030333334d0
[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
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> la
Ready to label disk, continue? yes
format> ver
Primary label contents:
Volume name = <
>
ascii name = <DEFAULT cyl 8884 alt 2 hd 255 sec 63>
pcyl
= 8886

PTC - Confidential/proprietary

PROPOSAL
ncyl
= 8884
acyl
= 2
bcyl
= 0
nhead
= 255
nsect
= 63
Part
Tag
0 unassigned
1 unassigned
2
backup
3 unassigned
4 unassigned
5 unassigned
6 unassigned
7 unassigned
8
boot
9 unassigned

Flag
wm
wm
wu
wm
wm
wm
wm
wm
wu
wm

Cylinders
0
0
0 - 8883
0
0
0
0
0
0 0
0

Size
0
0
68.05GB
0
0
0
0
0
7.84MB
0

Blocks
(0/0/0)
0
(0/0/0)
0
(8884/0/0) 142721460
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(0/0/0)
0
(1/0/0)
16065
(0/0/0)
0

format> q
root@oradev1 # metaset -s dbdev3set -a /dev/did/dsk/d149
root@oradev1 # metattach dbdev3set/d603 /dev/did/dsk/d149s0
dbdev3set/d603: component is attached
root@oradev1 # growfs -M /d03/ptcdb/ORACLE_DB1 /dev/md/dbdev3set/rdsk/d603
/dev/md/dbdev3set/rdsk/d603: Unable to find Media type. Proceeding with system
determined parameters.
Warning: inode blocks/cyl group (479) >= data blocks (29) in last
cylinder group. This implies 468 sector(s) cannot be allocated.
/dev/md/dbdev3set/rdsk/d603: 570949632 sectors in 92928 cylinders of 48 tracks, 128
sectors
278784.0MB in 5808 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:
569971488, 570069920, 570168352, 570266784, 570365216, 570463648, 570562080,
570660512, 570758944, 570857376
root@oradev1 # df -h /d03/ptcdb/ORACLE_DB1
Filesystem
size used avail capacity Mounted on
/dev/md/dbdev3set/dsk/d603
268G 151G 115G 57% /d03/ptcdb/ORACLE_DB1
root@oradev1 # df -h /global/rman/
Filesystem
size used avail capacity Mounted on
/dev/md/globalset/dsk/d302
1.8T 1.4T 408G 78% /global/rman

PTC - Confidential/proprietary

PROPOSAL
root@oradev1 # clrg status
=== Cluster Resource Groups ===
Group Name
---------global-rg

Node Name
--------oradev1
oradev2

Suspended
--------No
No

Status
-----Online
Offline

oradbdev1-rg

oradev1
oradev2

No
No

Online
Offline

oradbdev2-rg

oradev2
oradev1

No
No

Online
Offline

oradbdev3-rg

oradev1
oradev2

No
No

Online
Offline

oradev1-rg

oradev1

No

Online

oradev2-rg

oradev2

No

Online

oradbdev4-rg

oradev2
oradev1

No
No

Online
Offline

oradbdev5-rg

oradev1
oradev2

No
No

Online
Offline

oradbdev6-rg

oradev2
oradev1

No
No

Online
Offline

root@oradev1 # metaset -s globalset -a /dev/did/dsk/d150


root@oradev1 # metattach globalset/d302 /dev/did/dsk/d150s0
globalset/d302: component is attached
root@oradev1 # growfs -M /global/rman /dev/md/globalset/rdsk/d302
mkfs: bad value for nbpi: must be at least 1048576 for multi-terabyte, nbpi reset to default
1048576
Warning: 4640 sector(s) in last cylinder unallocated
/dev/md/globalset/rdsk/d302: 3996120544 sectors in 650411 cylinders of 48 tracks, 128
sectors
1951230.8MB in 4549 cyl groups (143 c/g, 429.00MB/g, 448 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 878752, 1757472, 2636192, 3514912, 4393632, 5272352, 6151072, 7029792,
7908512,
Initializing cylinder groups:
...............................................................................
...........
super-block backups for last 10 cylinder groups at:

10

PTC - Confidential/proprietary

PROPOSAL

3987936672, 3988815392, 3989694112, 3990572832, 3991451552, 3992322080,


3993200800, 3994079520, 3994958240, 3995836960
root@oradev1 # df -h /global/rman/
Filesystem
size used avail capacity Mounted on
/dev/md/globalset/dsk/d302
1.9T 1.4T 476G 75% /global/rman
root@oradev1 # df -h /d03/ptcdb/ORACLE_DB1
Filesystem
size used avail capacity Mounted on
/dev/md/dbdev3set/dsk/d603
268G 151G 115G 57% /d03/ptcdb/ORACLE_DB1
root@oradev1 #

Now we are logging to oradev2 server for the following tasks.


bash-2.03$ sudo ssh oradev2
Last login: Thu Dec 3 05:47:32 2009 from veri1.ptc.com
Sourcing //.profile-EIS.....
root@oradev2 # bash
root@oradev2 # cfgadm -al
Ap_Id
c1
c1::50060482d52d4e58
c2
c2::dsk/c2t0d0
c2::dsk/c2t2d0
c3
c3::50060482d52d4e57
usb0/1
usb0/2
usb0/3
usb0/4
usb0/5
usb0/6
usb0/7
usb1/1
usb1/2
usb1/3
usb1/4
usb1/5
usb1/6
usb1/6.1
usb1/6.2
usb1/6.3
usb1/6.4
usb1/7

Type
fc-fabric
disk
scsi-bus
disk
disk
fc-fabric
disk
unknown
unknown
usb-device
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
unknown
usb-hub
unknown
unknown
unknown
unknown
unknown

Receptacle
connected
connected
connected
connected
connected
connected
connected
empty
empty
connected
empty
empty
empty
empty
empty
empty
empty
empty
empty
connected
empty
empty
empty
empty
empty

root@oradev2 # luxadm -e forcelip 50060482d52d4e58


root@oradev2 # luxadm -e forcelip 50060482d52d4e57
root@oradev2 # devfsadm Cv

11

PTC - Confidential/proprietary

Occupant
configured
configured
configured
configured
configured
configured
configured
unconfigured
unconfigured
configured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured
configured
unconfigured
unconfigured
unconfigured
unconfigured
unconfigured

Condition
unknown
unknown
unknown
unknown
unknown
unknown
unknown
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok

PROPOSAL
root@oradev2 # scgdevs
Configuring DID devices
/usr/cluster/bin/scdidadm: Could not open "/dev/rdsk/c0t0d0s2" to verfiy device ID - Device
busy.
Configuring the /dev/global directory (global devices)
obtaining access to all attached disks

12

PTC - Confidential/proprietary

Potrebbero piacerti anche