执行cfgadm -al命令扫描映射到主机的LUN。

root@solaris:~# cfgadm -al

Ap_Id Type Receptacle Occupant Condition

c2 scsi-sas connected configured unknown

c2::dsk/c2t6d0 CD-ROM connected configured unknown

c4 scsi-sas connected configured unknown

c4::w5000cca0258a82e5,0 disk-path connected configured unknown

c5 scsi-sas connected unconfigured unknown

c6 scsi-sas connected configured unknown

c6::w5000cca02570b521,0 disk-path connected configured unknown

c7 scsi-sas connected unconfigured unknown

c10 fc-private connected configured unknown

c10::20080022a10bc14f disk connected configured unknown

c11 fc connected unconfigured unknown

usb0/1 unknown empty unconfigured ok

usb0/2 unknown empty unconfigured ok

usb0/3 unknown empty unconfigured ok

usb1/1 unknown empty unconfigured ok

usb1/2 unknown empty unconfigured ok

usb2/1 unknown empty unconfigured ok

usb2/2 usb-hub connected configured ok

usb2/2.1 unknown empty unconfigured ok

usb2/2.2 unknown empty unconfigured ok

usb2/2.3 usb-hub connected configured ok

usb2/2.3.1 unknown empty unconfigured ok

usb2/2.3.2 usb-storage connected configured ok

usb2/2.3.3 usb-communi connected configured ok

usb2/2.4 usb-device connected configured ok

usb2/3 unknown empty unconfigured ok

usb2/4 usb-hub connected configured ok

usb2/4.1 unknown empty unconfigured ok

usb2/4.2 unknown empty unconfigured ok

usb2/4.3 unknown empty unconfigured ok

usb2/4.4 unknown empty unconfigured ok

usb2/5 unknown empty unconfigured ok

执行umount /mnt/命令卸载待扩容LUN在应用服务器上对应的磁盘。

/mnt/为待扩容LUN对应磁盘的挂载目录。

说明:

若待扩容LUN对应磁盘未挂载,可跳过此操作。

执行format命令,浏览当前应用服务器识别到的所有磁盘信息。

root@solaris:~# format

Searching for disks...done

AVAILABLE DISK SELECTIONS:

0. c0t5000CCA0258A82E4d0 solaris

/scsi_vhci/disk@g5000cca0258a82e4

/dev/chassis//SYS/HDD0/disk

1. c0t5000CCA02570B520d0 solaris

/scsi_vhci/disk@g5000cca02570b520

/dev/chassis//SYS/HDD4/disk

2. c10t5d0

/pci@400/pci@2/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w20080022a10bc14f,0

3. c10t5d1

/pci@400/pci@2/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w20080022a10bc14f,1

Specify disk (enter its number):

在上面的回显中,c10t5d1为待扩容LUN映射给应用服务器的盘符。

在“Specify disk (enter its number)”后输入c10t5d1盘符对应的ID“3”。

Specify disk (enter its number): 3

selecting c10t5d1

[disk formatted]

Note: detected additional allowable expansion storage space that can be

added to current SMI label's computed capacity.

Select to adjust the label capacity.

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 disk ID

volname - set 8-character volume name

! - execute , then return

quit

format>

执行type命令查看磁盘类型。

format> type

AVAILABLE DRIVE TYPES:

0. Auto configure

1. Quantum ProDrive 80S

2. Quantum ProDrive 105S

3. CDC Wren IV 94171-344

4. SUN0104

5. SUN0207

6. SUN0327

7. SUN0340

8. SUN0424

9. SUN0535

10. SUN0669

11. SUN1.0G

12. SUN1.05

13. SUN1.3G

14. SUN2.1G

15. SUN2.9G

16. Zip 100

17. Zip 250

18. Peerless 10GB

19. SUN300G

20. HUAWEI-XXXXXX-2201

21. other

Specify disk type (enter its number)[20]:

在“Specify disk type (enter its number)[20]:”后输入“0”可对磁盘进行自动更新,重新定义磁盘类型,同时刷新磁盘容量。

Specify disk type (enter its number)[20]: 0

c10t5d1: configured with capacity of 59.98GB

selecting c10t5d1

[disk formatted]

操作完成后,磁盘容量将变为LUN扩容后的容量,即60GB。

先执行partition命令,再执行print命令查看磁盘的分区情况。

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

! - execute , then return

quit

partition> print

Current partition table (default):

Total disk cylinders available: 7678 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

0 root wm 0 - 15 128.00MB (16/0/0) 262144

1 swap wu 16 - 31 128.00MB (16/0/0) 262144

2 backup wu 0 - 7677 59.98GB (7678/0/0) 125796352

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 32 - 7677 59.73GB (7646/0/0) 125272064

7 unassigned wm 0 0 (0/0/0) 0

说明:

通常,“Part”编号为“2”的分区代表映射给应用服务器的整个磁盘。

先执行l命令,再输入“y”,给扩容LUN打上标签。

partition> l

Ready to label disk, continue? y

执行mount /dev/dsk/c10t5d1s6 /mnt/命令挂载磁盘。

执行growfs -M /mnt /dev/rdsk/c10t5d1s6命令可对待扩容LUN上的文件系统进行扩容。

root@solaris:~# growfs -M /mnt /dev/rdsk/c10t5d1s6

/dev/rdsk/c10t5d1s6: 125272064 sectors in 20390 cylinders of 48 tracks, 128 sectors

61168.0MB in 1275 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:

124360864, 124459296, 124557728, 124656160, 124754592, 124853024, 124951456,

125049888, 125148320, 125246752

执行df -k命令可查看文件系统的容量。

root@solaris:~# df -k

Filesystem 1024-blocks Used Available Capacity Mounted on

rpool/ROOT/solaris 103219200 2269688 79378520 3% /

/devices 0 0 0 0% /devices

/dev 0 0 0 0% /dev

ctfs 0 0 0 0% /system/contract

proc 0 0 0 0% /proc

mnttab 0 0 0 0% /etc/mnttab

swap 30640088 2272 30637816 1% /system/volatile

objfs 0 0 0 0% /system/object

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

fd 0 0 0 0% /dev/fd

rpool/ROOT/solaris/var

103219200 200868 79378520 1% /var

swap 30637816 0 30637816 0% /tmp

rpool/VARSHARE 103219200 48 79378520 1% /var/share

rpool/export 103219200 32 79378520 1% /export

rpool/export/home 103219200 31 79378520 1% /export/home

rpool 103219200 73 79378520 1% /rpool

/dev/dsk/c2t6d0s2 694700 694700 0 100% /media/Oracle_Solaris-11_1-Text-SPARC

/dev/dsk/c10t5d1s6 61687396 61185 61120192 1% /mnt

sun服务器文件系统扩容,应用服务器侧扩容LUN(Solaris)相关推荐

  1. VDO使用LVM逻辑卷作为后端设备创建XFS文件系统在线添加磁盘扩容操作过程(推荐)

    VDO使用LVM逻辑卷作为后端设备创建XFS文件系统在线添加磁盘扩容操作过程(推荐) 0.服务器环境信息 192.168.111.192    CentOS 7 安装vdo和kmod-kvdo软件包: ...

  2. 服务器异常下电文件系统,SUN服务器Solaris异常情况下恢复操作步骤(8页)-原创力文档...

    5/27/2020 Solaris系统恢复操作步骤指南 Solaris系统恢复操作步骤指南 HLR 连接串口线到HLR 主机 连接串口线到 主机 1. 将'25 转 RJ45'接头插在 SUN 服务器 ...

  3. 银河麒麟服务器操作系统虚拟机根分区扩容

    一.在vmware上为麒麟系统虚拟机扩展存储 二.在麒麟系统上扩充 1.打开终端,执行命令: df -hT 查看磁盘情况,发现新扩展的空间并没有加载上. 2.输入 fdisk -l 查看系统当前磁盘分 ...

  4. sun服务器多磁盘配置信息,配置 Solaris iSCSI initiator

    第 15 章 配置 Solaris iSCSI initiator 本章介绍如何从 Solaris 10 1/06 发行版开始配置 Solaris iSCSI initiator.有关与配置 iSCS ...

  5. 服务器 文件系统,服务器硬盘文件系统

    服务器硬盘文件系统 内容精选 换一换 云硬盘支持在"可用"和"正在使用"状态进行扩容,通过管理控制台扩容成功后,仅扩大了云硬盘的存储容量,还需要登录云服务器自行 ...

  6. ES分布式机制的透明性,垂直扩容和水平扩容,数据rebalance,master节点,节点平等的分布式架构,shard和replica机制(学习)

    1.Elasticsearch对复杂分布式机制的透明影藏特性 Elasticsearch是一套分布式的系统,分布式是为了应对大数据量影藏了复杂的分布式机制. 分片机制(我们可以随随便便就将一些docu ...

  7. SUN服务器清除所有报错信息,SUN服务器可能遇到的问题总结.doc

    SUN服务器可能遇到的问题总结(一)1) Q:现在遇到这样一个问题,telnet一台SUN机时报下面的错误: No utmpx entry. You must exec "login&quo ...

  8. sun服务器Solaris9安装

    sun服务器Solaris9安装 1.开机上电,等待显示器亮后,按Stop-a键.如果是在终端上安装,按Ctrl-Break键. 这时,服务器进入OK监控状态: OK 2.将Solaris9系统盘So ...

  9. SUN服务器Solaris10安装步骤

    Sun服务器Solaris10安装步骤 (通过终端安装) 把系统光盘放入光驱.  1. 开机上电,等待显示器亮后,按Stop-a键.如果是在终端上安装,按Ctrl-Break键. 2. 这时,服务器进 ...

  10. sun服务器删除多余文件,Sun服务器(基于Solaris 10)日常应用基本处理的一些实例...

    原稿增加了存储和磁带机的相关内容,但给朋友误删了,在郁闷中--  哎-- 本文档知识来源于网络.个人经验等 大家也可以添加进来 在不断更新中 1.31更新 SUN FIRE 系列........... ...

最新文章

  1. 使用Python,OpenCV进行形态学操作
  2. 云服务器 架设传奇_传奇手游-战神引擎架设教程
  3. 通过Nagios监控weblogic服务
  4. 11.4 iftop:动态显示网络接口流量信息
  5. PADS Layout VX.2.3 制作PCB封装(Decal)时,导入DXF文件
  6. android在主程序中调用图片,009android初级篇之APP中使用系统相机相册等集成应用...
  7. '[linux下tomcat 配置
  8. Android拍照上传代码样例
  9. react-redux学习笔记
  10. 微信开发--开发模式简单配置
  11. Unity资源打包之Assetbundle
  12. 在C#中控制ListBox某一行的字体颜色
  13. Layout state should be one of 100 but it is 10
  14. 使用Animate制作汽车广告动画
  15. Matlab回归分析获取预测变量的系数和p值和R2(仅一行代码)
  16. 第26章 SpringMVC中基于注解的Controller(一)
  17. 预言机私享,Defi实战特训,一场对开放式金融认知新突围来了!
  18. android面试宝典!Android高级工程师面试实战,通用流行框架大全
  19. 攀藤G5S数据位编码
  20. python排名差怎么改,2017中国大学排名爬虫代码修改

热门文章

  1. 2019顶级WordPress音频和视频插件
  2. 当前话题管理故事:厨师绑湖蟹 (转载)
  3. QuantLib 金融计算——基本组件之 ExchangeRate 类
  4. html那个代码看不到内容,IE浏览器 查看不了HTML源代码的问题解决!
  5. 论程序员如何正确上班摸鱼
  6. 最值得看的文章之一:林锐《大学十年》
  7. Debian没有reboot命令
  8. hdu 3954 Level up(成段更新)
  9. MPEG-4、MPEG-4/AVC、H.264之间的联系与区别
  10. 16 位 CPU 寄存器英文全称