暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

sun os 存储迁移到新上面

原创 yuhao 2020-05-18
972

root@CSZS98 # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d10 192G 94G 97G 50% /
/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 60G 1.7M 60G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
swap 60G 32K 60G 1% /tmp
swap 60G 96K 60G 1% /var/run
/dev/dsk/c5t60A9800065336961676F6C4473536245d0s6
492G 424G 64G 87% /db
/dev/dsk/c5t60A9800037543768355D46756D784B67d0s6
492G 175G 313G 36% /ora5
/dev/dsk/c5t60A9800065336961676F6C44736D4B6Fd0s6
197G 142G 53G 73% /dblog
10.99.2.29:HeartBeatShare
49G 30G 18G 63% /export/home/oracle/heartbeat_remote
root@CSZS98 # format
Searching for disks…done

c5t600A09803831432D352B4F6B4B765773d0: configured with capacity of 1228.80GB
c5t600A09803831432D352B4F6B4B765774d0: configured with capacity of 299.95GB

AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625> solaris
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@0,0
1. c0t1d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625> solaris
/pci@0,600000/pci@0/pci@8/pci@0/scsi@1/sd@1,0
2. c5t60A9800037543768355D46756D784B67d0 <NETAPP-LUN-811a cyl 6480 alt 2 hd 16 sec 10112>
/scsi_vhci/ssd@g60a9800037543768355d46756d784b67
3. c5t60A9800065336961676F6C44736D4B6Fd0 <NETAPP-LUN-8020 cyl 6398 alt 2 hd 16 sec 4096>
/scsi_vhci/ssd@g60a9800065336961676f6c44736d4b6f
4. c5t60A9800065336961676F6C4473536245d0 <NETAPP-LUN-8020 cyl 6480 alt 2 hd 16 sec 10112>
/scsi_vhci/ssd@g60a9800065336961676f6c4473536245
5. c5t600A09803831432D352B4F6B4B765773d0 <NETAPP-LUNC-Mode-9600 cyl 53470 alt 2 hd 255 sec 189>
/scsi_vhci/ssd@g600a09803831432d352b4f6b4b765773
6. c5t600A09803831432D352B4F6B4B765774d0 <NETAPP-LUNC-Mode-9600 cyl 6535 alt 2 hd 16 sec 6016>
/scsi_vhci/ssd@g600a09803831432d352b4f6b4b765774
Specify disk (enter its number): 5
selecting c5t600A09803831432D352B4F6B4B765773d0
[disk formatted]
Disk not labeled. Label it now? yes

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
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> verify

Primary label contents:

Volume name = < >
ascii name = <NETAPP-LUNC-Mode-9600 cyl 53470 alt 2 hd 255 sec 189>
pcyl = 53472
ncyl = 53470
acyl = 2
nhead = 255
nsect = 189
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 5 141.20MB (6/0/0) 289170
1 swap wu 6 - 11 141.20MB (6/0/0) 289170
2 backup wu 0 - 53469 1.20TB (53470/0/0) 2576986650
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 12 - 53469 1.20TB (53458/0/0) 2576408310
7 unassigned wm 0 0 (0/0/0) 0

format>

root@CSZS98 # fcinfo lu
OS Device Name: /dev/rdsk/c5t600A09803831432D352B4F6B4B765773d0s2
OS Device Name: /dev/rdsk/c5t600A09803831432D352B4F6B4B765774d0s2

OS Device Name: /dev/rdsk/c5t60A9800065336961676F6C4473536245d0s2
OS Device Name: /dev/rdsk/c5t60A9800065336961676F6C44736D4B6Fd0s2
OS Device Name: /dev/rdsk/c5t60A9800037543768355D46756D784B67d0s2
5. c5t600A09803831432D352B4F6B4B765773d0 <NETAPP-LUNC-Mode-9600 cyl 53470 alt 2 hd 255 sec 189>
/scsi_vhci/ssd@g600a09803831432d352b4f6b4b765773
6. c5t600A09803831432D352B4F6B4B765774d0 <NETAPP-LUNC-Mode-9600 cyl 6535 alt 2 hd 16 sec 6016>
/scsi_vhci/ssd@g600a09803831432d352b4f6b4b765774

newfs /dev/rdsk/c5t600A09803831432D352B4F6B4B765773d0s2
newfs /dev/rdsk/c5t600A09803831432D352B4F6B4B765774d0s2

root@CSZS98 # newfs /dev/rdsk/c5t600A09803831432D352B4F6B4B765773d0s2
newfs: construct a new file system /dev/rdsk/c5t600A09803831432D352B4F6B4B765773d0s2: (y/n)? y
mkfs: bad value for ntrack: -1 must be between 1 and 2147483647
mkfs: ntrack reset to default 16
Warning: 2656 sector(s) in last cylinder unallocated
/dev/rdsk/c5t600A09803831432D352B4F6B4B765773d0s2: 2576986640 sectors in 852179 cylinders of 16 tracks, 189 sectors
1258294.2MB in 4735 cyl groups (180 c/g, 265.78MB/g, 320 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 544544, 1089056, 1633568, 2178080, 2722592, 3267104, 3811616, 4356128,
4900640,
Initializing cylinder groups:


super-block backups for last 10 cylinder groups at:
2571912992, 2572457504, 2573002016, 2573546528, 2574091040, 2574635552,
2575180064, 2575724576, 2576269088, 2576813600

root@CSZS98 # newfs /dev/rdsk/c5t600A09803831432D352B4F6B4B765774d0s2
newfs: construct a new file system /dev/rdsk/c5t600A09803831432D352B4F6B4B765774d0s2: (y/n)? y
Warning: 2048 sector(s) in last cylinder unallocated
/dev/rdsk/c5t600A09803831432D352B4F6B4B765774d0s2: 629032960 sectors in 102382 cylinders of 48 tracks, 128 sectors
307145.0MB in 6399 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:
628071072, 628169504, 628267936, 628366368, 628464800, 628563232, 628661664,
628760096, 628858528, 628956960


mount /dev/dsk/c5t600A09803831432D352B4F6B4B765773d0s2 /dbdata
mount /dev/dsk/c5t600A09803831432D352B4F6B4B765774d0s2 /dblog2

root@CSZS98 # mkdir dblog2
root@CSZS98 # mkdir dbdata

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论