zpool status -lGeneric January 2005
$ bash
bash-3.2$ df -kh
rpool/ROOT/s10x_u11wos_24a
547G 10.0G 502G 2% /
/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 57G 444K 57G 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
512G 10.0G 502G 2% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 57G 2.3M 57G 1% /tmp
swap 57G 40K 57G 1% /var/run
rpool/export 547G 32K 502G 1% /export
mrpool/export/home 3.8T 196G 3.5T 6% /export/home
mrpool 3.8T 24G 3.5T 1% /mrpool
mrpool/export 3.8T 31K 3.5T 1% /mrpool/export
rpool 547G 42K 502G 1% /rpool
bash-3.2$ iostat -xpn
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.2 0 0 c1t0d0
0.0 4.2 0.3 72.7 0.0 0.0 0.0 0.1 0 0 c0t0d0s0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.4 0 0 c0t0d0s2
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t0d0s8
0.0 0.0 0.0 0.0 0.0 0.0 0.0 7.9 0 0 c0t0d0p0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.2 0 0 c0t0d0p1
0.0 4.2 0.3 72.7 0.0 0.0 0.0 0.1 0 0 c0t0d0
1.0 12.8 11.4 1194.1 0.0 0.1 0.0 6.1 0 2 c0t1d0
1.0 12.8 11.3 1194.1 0.0 0.1 0.0 6.1 0 2 c0t1d0s0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t1d0s8
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.4 0 0 c0t1d0p0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2 0 0 sd2,h
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 lnlte2dson:vold(pid
911)
bash-3.2$ iostat -E
sd0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: ORACLE Product: SSM Revision: PMAP Serial No:
Size: 4.01GB <4009754624 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 5 Predictive Failure Analysis: 0
sd1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: LSI Product: MR9261-8i Revision: 2.13 Serial No: Size: 599.00GB <598999039488 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 3 Predictive Failure Analysis: 0
sd2 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: LSI Product: MR9261-8i Revision: 2.13 Serial No: Size: 4192.99GB <4192993279488 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 5 Predictive Failure Analysis: 0
bash-3.2$ iostat
tty sd0 sd1 sd2 nfs1 cpu
tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id
0 7 0 0 0 73 4 0 1205 14 6 0 0 0 6 11 0 83
bash-3.2$ iostat -p
tty sd0 sd1,a sd1,c sd1 cpu
tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id
0 7 0 0 0 73 4 0 0 0 2 73 4 0 6 11 0 83
bash-3.2$ iostat -x
extended device statistics
device r/s w/s kr/s kw/s wait actv svc_t %w %b
sd0 0.0 0.0 0.0 0.0 0.0 0.0 0.2 0 0
sd1 0.0 4.2 0.3 72.7 0.0 0.0 0.1 0 0
sd2 1.0 12.8 11.4 1194.1 0.0 0.1 6.1 0 2
nfs1 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0
bash-3.2$ timed out waiting for input: auto-logout
$ bash
bash-3.2$ vxdisklist
bash: vxdisklist: command not found
bash-3.2$ vxdisk list
bash: vxdisk: command not found
bash-3.2$ vxdisk
bash: vxdisk: command not found
bash-3.2$ df -k
rpool/ROOT/s10x_u11wos_24a
573898752 10455653 526506596 2% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 59449044 444 59448600 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
sharefs 0 0 0 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
536962249 10455653 526506596 2% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 59450992 2392 59448600 1% /tmp
swap 59448640 40 59448600 1% /var/run
rpool/export 573898752 32 526506596 1% /export
mrpool/export/home 4029677568 205457608 3799241157 6% /export/home
mrpool 4029677568 24887150 3799241157 1% /mrpool
mrpool/export 4029677568 31 3799241157 1% /mrpool/export
rpool 573898752 42 526506596 1% /rpool
bash-3.2$ df
/ (rpool/ROOT/s10x_u11wos_24a):1053013193 1053013193
/devices (/devices ): 0 0
/system/contract (ctfs ): 0 2147483595
/proc (proc ): 0 26975
/etc/mnttab (mnttab ): 0 0
/etc/svc/volatile (swap ):118898096 9453094
/system/object (objfs ): 0 2147483421
/etc/dfs/sharetab (sharefs ): 0 2147483646
/lib/libc.so.1 (/usr/lib/libc/libc_hwcap1.so.1):1053013193 1053013193
/dev/fd (fd ): 0 0
/tmp (swap ):118898096 9453094
/var/run (swap ):118898096 9453094
/export (rpool/export ):1053013193 1053013193
/export/home (mrpool/export/home):7598482314 7598482314
/mrpool (mrpool ):7598482314 7598482314
/mrpool/export (mrpool/export ):7598482314 7598482314
/rpool (rpool ):1053013193 1053013193
bash-3.2$ su - root
:
Generic January 2005
Sourcing //.profile-EIS.....
root@lnlte2dson # bash
root@lnlte2dson # pwd
/
root@lnlte2dson # ls
Desktop lnlte2dson_checkinfo_20170929140849.log
Documents mnt
TT_DB mrpool
bin net
boot opt
cdrom platform
dev proc
devices rpool
etc sbin
etc1114.tar system
export tmp
home usr
kernel var
lib vol
root@lnlte2dson # more /etc/mnttab
rpool/ROOT/s10x_u11wos_24a / zfs dev=2d50002 0
/devices /devices devfs dev=4b80000 1479439391
ctfs /system/contract ctfs dev=4c00001 1479439391
proc /proc proc dev=4bc0000 1479439391
mnttab /etc/mnttab mntfs dev=4c40001 1479439391
swap /etc/svc/volatile tmpfs xattr,dev=4c80001 1479439391
objfs /system/object objfs dev=4cc0001 1479439391
sharefs /etc/dfs/sharetab sharefs dev=4d00001 1479439391
/usr/lib/libc/libc_hwcap1.so.1 /lib/libc.so.1 lofs dev=2d50002 1479439396
fd /dev/fd fd rw,dev=4e80001 1479439401
swap /tmp tmpfs xattr,dev=4c80002 1479439401
swap /var/run tmpfs xattr,dev=4c80003 1479439401
rpool/export /export zfs rw,devices,setuid,nonbmand,exec,rstchown,xattr,atime,dev=2d50003 1479439402
mrpool/export/home /export/home zfs rw,devices,setuid,nonbmand,exec,rstchown,xattr,atime,dev=2d50004 1
479439402
mrpool /mrpool zfs rw,devices,setuid,nonbmand,exec,rstchown,xattr,atime,dev=2d50005 1479439402
mrpool/export /mrpool/export zfs rw,devices,setuid,nonbmand,exec,rstchown,xattr,atime,dev=2d50006 147943940
2
rpool /rpool zfs rw,devices,setuid,nonbmand,exec,rstchown,xattr,atime,dev=2d50007 1479439402
-hosts /net autofs nosuid,indirect,ignore,nobrowse,dev=4f00001 1479439403
auto_home /home autofs indirect,ignore,nobrowse,dev=4f00002 1479439403
lnlte2dson:vold(pid911) /vol nfs ignore,noquota,dev=4f40001 1479439405
root@lnlte2dson # timed out waiting for input: auto-logout
root@lnlte2dson # more /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/zvol/dsk/rpool/swap - - swap - no -
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
root@lnlte2dson # vxdisk list
vxdisk:
root@lnlte2dson # df -h
rpool/ROOT/s10x_u11wos_24a
547G 10.0G 502G 2% /
/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 57G 444K 57G 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
512G 10.0G 502G 2% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 57G 2.3M 57G 1% /tmp
swap 57G 40K 57G 1% /var/run
rpool/export 547G 32K 502G 1% /export
mrpool/export/home 3.8T 196G 3.5T 6% /export/home
mrpool 3.8T 24G 3.5T 1% /mrpool
mrpool/export 3.8T 31K 3.5T 1% /mrpool/export
rpool 547G 42K 502G 1% /rpool
root@lnlte2dson # mount -v
rpool/ROOT/s10x_u11wos_24a on / type zfs read/write/setuid/devices/rstchown/dev=2d50002 on 1 1 08:00:00 1970
/devices on /devices type devfs read/write/setuid/devices/rstchown/dev=4b80000 on 11 18 11:23:11 2016
ctfs on /system/contract type ctfs read/write/setuid/devices/rstchown/dev=4c00001 on 11 18 11:23:11 2016
proc on /proc type proc read/write/setuid/devices/rstchown/dev=4bc0000 on 11 18 11:23:11 2016
mnttab on /etc/mnttab type mntfs read/write/setuid/devices/rstchown/dev=4c40001 on 11 18 11:23:11 2016
swap on /etc/svc/volatile type tmpfs read/write/setuid/devices/rstchown/xattr/dev=4c80001 on 11 18 11:23:11 2016
objfs on /system/object type objfs read/write/setuid/devices/rstchown/dev=4cc0001 on 11 18 11:23:11 2016
sharefs on /etc/dfs/sharetab type sharefs read/write/setuid/devices/rstchown/dev=4d00001 on 11 18 11:23:11 2016
/usr/lib/libc/libc_hwcap1.so.1 on /lib/libc.so.1 type lofs read/write/setuid/devices/rstchown/dev=2d50002 on 11 18 1
1:23:16 2016
fd on /dev/fd type fd read/write/setuid/devices/rstchown/dev=4e80001 on 11 18 11:23:21 2016
swap on /tmp type tmpfs read/write/setuid/devices/rstchown/xattr/dev=4c80002 on 11 18 11:23:21 2016
swap on /var/run type tmpfs read/write/setuid/devices/rstchown/xattr/dev=4c80003 on 11 18 11:23:21 2016
rpool/export on /export type zfs read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/dev=2d50003 on 11 18 1
1:23:22 2016
mrpool/export/home on /export/home type zfs read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/dev=2d50004 on
11 18 11:23:22 2016
mrpool on /mrpool type zfs read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/dev=2d50005 on 11 18 11:23:2
2 2016
mrpool/export on /mrpool/export type zfs read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/dev=2d50006 on 1
1 18 11:23:22 2016
rpool on /rpool type zfs read/write/setuid/devices/rstchown/nonbmand/exec/xattr/atime/dev=2d50007 on 11 18 11:23:22
2016
root@lnlte2dson # zpool status -l
'l'
For more info, run: zpool help status
root@lnlte2dson # bash
root@lnlte2dson # zpool status
mrpool
ONLINE
scan:
NAME STATE READ WRITE CKSUM
mrpool ONLINE 0 0 0
c0t1d0 ONLINE 0 0 0
rpool
ONLINE
scan:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c0t0d0s0 ONLINE 0 0 0
root@lnlte2dson # zpool status -l
'l'
For more info, run: zpool help status
root@lnlte2dson # iostat -xpn
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.2 0 0 c1t0d0
0.0 4.2 0.3 72.7 0.0 0.0 0.0 0.1 0 0 c0t0d0s0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.4 0 0 c0t0d0s2
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t0d0s8
0.0 0.0 0.0 0.0 0.0 0.0 0.0 7.9 0 0 c0t0d0p0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.2 0 0 c0t0d0p1
0.0 4.2 0.3 72.7 0.0 0.0 0.0 0.1 0 0 c0t0d0
1.0 12.8 11.3 1194.0 0.0 0.1 0.0 6.1 0 2 c0t1d0
1.0 12.8 11.3 1194.0 0.0 0.1 0.0 6.1 0 2 c0t1d0s0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t1d0s8
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.4 0 0 c0t1d0p0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.2 0 0 sd2,h
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 lnlte2dson:vold(pid911)
root@lnlte2dson #
root@lnlte2dson #
zpool status命令是关键:
使用 zpool status 命令来显示 /dev/chassis 目录中包含的关于池设备的物理磁盘位置信息。
https://docs.oracle.com/cd/E26926_01/html/E25826/gbscy.html#gkkko
如果是UFS(UNIX文件系统)使用mount -v,more /etc/mnttab或者df -h查看就能显示磁盘号
如何创建 ZFS 文件系统
https://docs.oracle.com/cd/E26926_01/html/E25884/fscreate-6.html
已挂载文件系统表
https://docs.oracle.com/cd/E37934_01/html/E36653/fsmount-5.html#fsoverview-53
mount命令
https://docs.oracle.com/cd/E26926_01/html/E29115/mount-1m.html#scrolltoc
format命令
https://docs.oracle.com/cd/E26926_01/html/E29115/format-1m.html#scrolltoc
下面是其他有用的链接:
在Solaris系统加磁盘、分区、挂载和开机自动挂载
https://www.linuxidc.com/Linux/2013-06/86723.htm
怎样知道挂载点是在哪个物理磁盘下?(vxdisk list没试验成功)
http://bbs.chinaunix.net/thread-3882098-1-1.html
Solaris文件系统
https://wenku.baidu.com/view/b8e7ed65482fb4daa48d4b06.html
Solaris 设备状态检查常用命令
https://wenku.baidu.com/view/e1c18332a22d7375a417866fb84ae45c3b35c2b5.html
solaris查看内存、CPU、硬盘总数和使用情况情况
https://blog.youkuaiyun.com/li19236/article/details/41806731
Solaris top命令详解(top命令不是系统自带的,没试验成功)
https://wenku.baidu.com/view/e561d5fb0242a8956bece44a.html
iostat -xpn
http://blog.chinaunix.net/uid-194468-id-2790700.html/
非常不错的Solaris文章,适合入门(很长,但字太小)
https://blog.youkuaiyun.com/ma12shuai/article/details/7692753