Powered By Blogger

Sunday, October 2, 2011

Adding new hardisk in Solaris10

Adding new hardisk in Solaris10

# format

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
! - execute , then return

quit

format>p

partition> p

Current partition table (unnamed):

Total disk cylinders available: 2044 + 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 - 2043 3.99GB (2044/0/0) 8372224
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 2.00MB (1/0/0) 4096
9 unassigned wm 0 0 (0/0/0) 0

partition> 3

Part Tag Flag Cylinders Size Blocks

3 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 1
Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 2043c

partition> p
 
Current partition table (unnamed):
Total disk cylinders available: 2044 + 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 - 2043 3.99GB (2044/0/0) 8372224
3 unassigned wm 1 - 2043 3.99GB (2043/0/0) 8368128
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 2.00MB (1/0/0) 4096
9 unassigned wm 0 0 (0/0/0) 0

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
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
! - execute , then return

quit

format> l

Ready to label disk, continue? y

format> q

# newfs /dev/rdsk/c1t1d0s3

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

/dev/rdsk/c1t1d0s3: 8368128 sectors in 2043 cylinders of 128 tracks, 32 sectors

4086.0MB in 79 cyl groups (26 c/g, 52.00MB/g, 6400 i/g)

super-block backups (for fsck -F ufs -o b=#) at:

32, 106560, 213088, 319616, 426144, 532672, 639200, 745728, 852256, 958784,

7350464, 7456992, 7563520, 7670048, 7776576, 7883104, 7989632, 8096160,

8202688, 8309216

# mkdir /u01

# mount -f ufs /dev/dsk/c1t1d0s3 /u01

# df -h

Filesystem size used avail capacity Mounted on

/dev/dsk/c1t0d0s0 9.3G 4.4G 4.8G 48% /

/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 938M 924K 937M 1% /etc/svc/volatile

objfs 0K 0K 0K 0% /system/object

sharefs 0K 0K 0K 0% /etc/dfs/sharetab

/usr/lib/libc/libc_hwcap1.so.1

9.3G 4.4G 4.8G 48% /lib/libc.so.1

fd 0K 0K 0K 0% /dev/fd

swap 937M 112K 937M 1% /tmp

swap 937M 36K 937M 1% /var/run

/hgfs 16G 4.0M 16G 1% /hgfs

/tmp/VMwareDnD 0K 0K 0K 0% /var/run/vmblock

/dev/dsk/c1t1d0s3 3.9G 4.0M 3.9G 1% /u01

#

# bash

bash-3.00# mount -p

/dev/dsk/c1t0d0s0 - / ufs - no rw,intr,largefiles,logging,xattr,onerror=panic

/devices - /devices devfs - no

ctfs - /system/contract ctfs - no

proc - /proc proc - no

mnttab - /etc/mnttab mntfs - no

swap - /etc/svc/volatile tmpfs - no xattr

objfs - /system/object objfs - no

sharefs - /etc/dfs/sharetab sharefs - no

/usr/lib/libc/libc_hwcap1.so.1 - /lib/libc.so.1 lofs - no

fd - /dev/fd fd - no rw

swap - /tmp tmpfs - no xattr

swap - /var/run tmpfs - no xattr

/hgfs - /hgfs vmhgfs - no

/tmp/VMwareDnD - /var/run/vmblock vmblock - no

/dev/dsk/c1t1d0s3 - /u01 ufs - no rw,intr,largefiles,logging,xattr,onerror=panic

bash-3.00# man fstype

Regards,
Navaneeth

No comments:

Post a Comment