安全、誠(chéng)信、可靠、信心
濟(jì)南市山大路157號(hào)華強(qiáng)電子世界三樓Q3059,Q3060室
1、 檢查存儲(chǔ)資源是否被系統(tǒng)識(shí)別。
重新掃描設(shè)備
# cfgmgr –v
查看磁盤(pán):(這里的hdisk可能是本地磁盤(pán)或者存儲(chǔ))
# lsdev –Cc disk
hdisk0 Available 01-08-00 SAS Disk Drive
hdisk1 Available 01-08-00 SAS Disk Drive
hdisk2 Available Other iSCSI Disk Drive
檢查PV信息。
# lspv
hdisk0 00cb45e5678b2a2b rootvg active
hdisk1 00cb45e500864dcc None
hdisk2 None None
給hdisk2分配一個(gè)PVID使 hdisk2可用
# chdev –l hdisk2 –a pv=yes
# lspv
hdisk0 00cb45e5678b2a2b rootvg active
hdisk1 00cb45e500864dcc None
hdisk2 00cb45e5115f3a33 None
其他相關(guān)命令
# lspv hdisk2 物理卷詳細(xì)信息
# lspv -l hdisk2 物理卷上分配的邏輯卷信息
# lspv -p hdisk2 物理卷上物理分區(qū)分布的情況
# rmdev -l hdisk2 -d 從ODM庫(kù)中徹底刪除hdisk0
# extendvg rootvg hdisk1 向卷組中加一個(gè)物理卷
# migratepv -l lv01 hdisk0 hdisk1 把屬于lv01的pp從hdisk0移動(dòng)到hdisk1
創(chuàng)建VG 使用hdisk2
# mkvg –y mqvg –d 6 –s 8 hdisk2
mqvg為VG名,-d 6 表示最多包含6個(gè)物理卷, -s 8 pp為8m , 包含物理卷為hdisk2。
# lspv
hdisk0 00cb45e5678b2a2b rootvg active
hdisk1 00cb45e500864dcc None
hdisk2 00cb45e5115f3a33 mqvg active
其他相關(guān)命令
# lsvg -l vgname 查看vg中包含的lv
# lsvg -p vgname 查看vg中包含的pv
# chvg -ay vgname 系統(tǒng)啟動(dòng)時(shí)自動(dòng)激活vg
# chvg -an vgname 系統(tǒng)啟動(dòng)時(shí)不激活vg
# extendvg vgname hdisk9 向卷組中加一個(gè)物理卷
# reducevg datavg disk2 vg中刪除一個(gè)物理卷,之前必須用rmlv刪除該物理卷上的所有l(wèi)v
如:
# mklv -y wolflv -t jsf rootvg 10
wolflv
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 12 24 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 45 90 2 open/syncd /
hd2 jfs2 7 14 2 open/syncd /usr
hd9var jfs2 1 2 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 1 2 2 open/syncd /home
hd10opt jfs2 1 2 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
dzytest jfs 2 4 2 open/syncd /dzytest
loglv00 jfslog 1 2 2 open/syncd N/A
oraclelv jfs2 80 80 1 open/syncd /oracle
wolflv jsf 10 10 1 closed/syncd N/A
# rmlv wolflv
Warning, all data contained on logical volume wolflv will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)? y
rmlv: Logical volume wolflv is removed.
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 12 24 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 45 90 2 open/syncd /
hd2 jfs2 7 14 2 open/syncd /usr
hd9var jfs2 1 2 2 open/syncd /var
hd3 jfs2 20 40 2 open/syncd /tmp
hd1 jfs2 1 2 2 open/syncd /home
hd10opt jfs2 1 2 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
dzytest jfs 2 4 2 open/syncd /dzytest
loglv00 jfslog 1 2 2 open/syncd N/A
oraclelv jfs2 80 80 1 open/syncd /oracle
創(chuàng)建LV
# mklv –y lvname –t jsf2 vgname 20
20為該lv包含20個(gè)邏輯分區(qū)
# lsvg –l mqvg
mqvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
ma jfs 20 20 1 open/syncd
loglv00 jfslog 1 1 1 open/syncd N/A
其他相關(guān)命令
# lspv –l lvname 查看lv的基本情況
# lspv –p hdisk2 查看pv上空間使用情況
方法一 :在LV上創(chuàng)建文件系統(tǒng)
# crfs –v jfs –d lvname –m /test
# mount /test
# lsvg -l mqvg
mqvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
ma jfs 20 20 1 closed/syncd /test
loglv00 jfslog 1 1 1 closed/syncd N/A
如:# mklv -y wolflv -t jfs2 rootvg 10
wolflv
# crfs -v jfs2 -d wolflv -m /wolf
File system created successfully.
2621156 kilobytes total disk space.
New File System size is 5242880
# mount /wolf
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 11.25 8.86 22% 16797 1% /
/dev/hd2 1.75 0.12 93% 35768 53% /usr
/dev/hd9var 0.25 0.23 7% 529 1% /var
/dev/hd3 5.00 5.00 1% 35 1% /tmp
/dev/hd1 0.25 0.25 1% 53 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.25 0.14 44% 3265 9% /opt
/dev/dzytest 0.50 0.48 4% 17 1% /dzytest
/dev/oraclelv 20.00 11.31 44% 35381 2% /oracle
/dev/wolflv 2.50 2.50 1% 4 1% /wolf
方法二: 直接創(chuàng)建文件系統(tǒng)
# crfs –v jfs –g vgname –m /qing –a size=100M
# mount /qing
# crfs -v jfs2 -g rootvg -m /yj -a size=10M
File system created successfully.
261932 kilobytes total disk space.
New File System size is 524288
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 11.25 8.86 22% 16800 1% /
/dev/hd2 1.75 0.12 93% 35768 53% /usr
/dev/hd9var 0.25 0.23 7% 529 1% /var
/dev/hd3 5.00 5.00 1% 35 1% /tmp
/dev/hd1 0.25 0.25 1% 53 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.25 0.14 44% 3265 9% /opt
/dev/dzytest 0.50 0.48 4% 17 1% /dzytest
/dev/oraclelv 20.00 11.31 44% 35381 2% /oracle
/dev/wolflv 2.50 2.50 1% 4 1% /wolf
/dev/fslv00 0.25 0.25 1% 4 1% /yj
直接創(chuàng)建文件系統(tǒng),系統(tǒng)會(huì)在底層創(chuàng)建該文件系統(tǒng)關(guān)聯(lián)的LV
# lsvg -l mqvg
mqvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
ma jfs 20 20 1 open/syncd /test
loglv00 jfslog 1 1 1 open/syncd N/A
lv00 jfs 13 13 1 open/syncd /qing
# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.50 0.32 36% 13859 16% /
/dev/hd2 2.50 0.57 78% 39931 23% /usr
/dev/hd9var 0.50 0.26 49% 7150 11% /var
/dev/hd3 0.25 0.22 12% 143 1% /tmp
/dev/fwdump 0.75 0.75 1% 6 1% /var/adm/ras/platform
/dev/hd1 0.25 0.25 1% 5 1% /home
/dev/hd11admin 0.25 0.25 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 0.50 0.31 39% 8679 11% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/dev/ma 0.16 0.15 4% 17 1% /test
/dev/lv00 0.10 0.10 4% 17 1% /qing
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 524288 336092 36% 13859 16% /
/dev/hd2 2621440 601776 78% 39931 23% /usr
/dev/hd9var 524288 268724 49% 7150 11% /var
/dev/hd3 262144 230860 12% 143 1% /tmp
/dev/fwdump 786432 783820 1% 6 1% /var/adm/ras/platform
/dev/hd1 262144 261744 1% 5 1% /home
/dev/hd11admin 262144 261744 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 524288 320236 39% 8679 11% /opt
/dev/livedump 262144 261776 1% 4 1% /var/adm/ras/livedump
/dev/ma 163840 158660 4% 17 1% /test
/dev/lv00 106496 103116 4% 17 1% /qing
增加文件系統(tǒng)的空間可用
# chfs –a size=+3G /usr 給/usr增加3G的空間
# chfs –a size=-3G /usr
文件系統(tǒng)
#cat /etc/filesystems
掛載
#mount /wolf
文件系統(tǒng)一致性(fsck命令檢查文件系統(tǒng)的信息一致性,并且支持文件系統(tǒng)修復(fù))
#fsck -p /dev/fslv00
服務(wù)器數(shù)據(jù)恢復(fù) RAID存儲(chǔ)數(shù)據(jù)恢復(fù) 數(shù)據(jù)庫(kù)數(shù)據(jù)恢復(fù) 非線編視頻恢復(fù)
服務(wù)器數(shù)據(jù)恢復(fù) 數(shù)據(jù)庫(kù)數(shù)據(jù)恢復(fù) 虛擬化數(shù)據(jù)恢復(fù) 塊存儲(chǔ)數(shù)據(jù)恢復(fù) 硬盤(pán)數(shù)據(jù)恢復(fù)
濟(jì)南鑒信DATAHELP山東服務(wù)器數(shù)據(jù)恢復(fù)中心,濟(jì)南承誠(chéng)鑒信信息技術(shù)有限公司 ICP備案編號(hào):魯ICP備16040624號(hào)-4
數(shù)據(jù)恢復(fù)公司電話:400-0531-988,0531-55575577 傳真:0531-62399989 數(shù)據(jù)恢復(fù)公司地址:山東省濟(jì)南市山大路157號(hào)華強(qiáng)電子世界3F
技術(shù)支持:數(shù)據(jù)恢復(fù)
服務(wù)器數(shù)據(jù)恢復(fù)QQ:1968869
RAID存儲(chǔ)數(shù)據(jù)恢復(fù)QQ:139928669