vxvm做卷.docx
《vxvm做卷.docx》由会员分享,可在线阅读,更多相关《vxvm做卷.docx(54页珍藏版)》请在冰豆网上搜索。
vxvm做卷
login:
root
Password:
Lastlogin:
TueAug3011:
41:
57onconsole
OracleCorporationSunOS5.10GenericPatchJanuary2005
#bash
bash-3.00#devfsadm
bash-3.00#format
Searchingfordisks...done
AVAILABLEDISKSELECTIONS:
0.c1t0d0
/pci@0,0/pci15ad,1976@10/sd@0,0
1.c1t1d0
/pci@0,0/pci15ad,1976@10/sd@1,0
2.c1t2d0
/pci@0,0/pci15ad,1976@10/sd@2,0
3.c1t3d0
/pci@0,0/pci15ad,1976@10/sd@3,0
4.c1t4d0
/pci@0,0/pci15ad,1976@10/sd@4,0
5.c1t5d0
/pci@0,0/pci15ad,1976@10/sd@5,0
6.c1t6d0
/pci@0,0/pci15ad,1976@10/sd@6,0
Specifydisk(enteritsnumber):
^C
bash-3.00#vxdisklist
DEVICETYPEDISKGROUPSTATUS
disk_1auto:
sliceddatadg01datadgonline
disk_8auto:
none--onlineinvalid
disk_9auto:
none--onlineinvalid
disk_10auto:
none--onlineinvalid
disk_11auto:
none--onlineinvalid
disk_12auto:
none--onlineinvalid
disk_13auto:
none--onlineinvalid
bash-3.00#vxdiskadm
VolumeManagerSupportOperations
Menu:
VolumeManager/Disk
1Addorinitializeoneormoredisks
2Encapsulateoneormoredisks
3Removeadisk
4Removeadiskforreplacement
5Replaceafailedorremoveddisk
6Mirrorvolumesonadisk
7Movevolumesfromadisk
8Enableaccessto(import)adiskgroup
9Removeaccessto(deport)adiskgroup
10Enable(online)adiskdevice
11Disable(offline)adiskdevice
12Markadiskasaspareforadiskgroup
13Turnoffthespareflagonadisk
14Unrelocatesubdisksbacktoadisk
15Excludeadiskfromhot-relocationuse
16Makeadiskavailableforhot-relocationuse
17Preventmultipathing/SuppressdevicesfromVxVM'sview
18Allowmultipathing/UnsuppressdevicesfromVxVM'sview
19Listcurrentlysuppressed/non-multipatheddevices
20Changethedisknamingscheme
21Getthenewlyconnected/zoneddisksinVxVMview
22Change/Displaythedefaultdisklayouts
listListdiskinformation
?
Displayhelpaboutmenu
?
?
Displayhelpaboutthemenuingsystem
qExitfrommenus
Selectanoperationtoperform:
1
Addorinitializedisks
Menu:
VolumeManager/Disk/AddDisks
Usethisoperationtoaddoneormorediskstoadiskgroup.Youcan
addtheselecteddiskstoanexistingdiskgrouportoanewdiskgroup
thatwillbecreatedasapartoftheoperation.Theselecteddisksmay
alsobeaddedtoadiskgroupasspares.Ortheymaybeaddedas
nohotusestobeexcludedfromhot-relocationuse.Theselected
disksmayalsobeinitializedwithoutaddingthemtoadiskgroup
leavingthedisksavailableforuseasreplacementdisks.
Morethanonediskorpatternmaybeenteredattheprompt.Hereare
somediskselectionexamples:
all:
alldisks
c3c4t2:
alldisksonbothcontroller3andcontroller4,target2
c3t4d2:
asingledisk(inthec#t#d#namingscheme)
xyz_0:
asingledisk(intheenclosurebasednamingscheme)
xyz_:
alldisksontheenclosurewhosenameisxyz
Selectdiskdevicestoadd:
[,all,list,q,?
]list
DEVICEDISKGROUPSTATUS
disk_1datadg01datadgonline
disk_8--onlineinvalid
disk_9--onlineinvalid
disk_10--onlineinvalid
disk_11--onlineinvalid
disk_12--onlineinvalid
disk_13--onlineinvalid
Selectdiskdevicestoadd:
[,all,list,q,?
]disk_8
Hereisthediskselected.Outputformat:
[Device_Name]
disk_8
Continueoperation?
[y,n,q,?
](default:
y)
Youcanchoosetoaddthisdisktoanexistingdiskgroup,a
newdiskgroup,orleavethediskavailableforusebyfuture
addorreplacementoperations.Tocreateanewdiskgroup,
selectadiskgroupnamethatdoesnotyetexist.Toleave
thediskavailableforfutureuse,specifyadiskgroupname
of"none".
Whichdiskgroup[,none,list,q,?
](default:
none)list
NAMESTATEID
datadgenabled1314675566.11.zpsong
Whichdiskgroup[,none,list,q,?
](default:
none)datadg
Useadefaultdisknameforthedisk?
[y,n,q,?
](default:
y)
Adddiskasasparediskfordatadg?
[y,n,q,?
](default:
n)
Excludediskfromhot-relocationuse?
[y,n,q,?
](default:
n)
Addsitetagtodisk?
[y,n,q,?
](default:
n)
Theselecteddiskswillbeaddedtothediskgroupdatadgwith
defaultdisknames.
disk_8
Continuewithoperation?
[y,n,q,?
](default:
y)
Initializingdevicedisk_8.
Whenselectingtheformatforthedisk,keepinmindthataCDSdisk
cannotcontainasubdiskfora'root'or'swap'volume,soitcannot
beusedformirroring,evacuating,orsparingthebootdisk.
Enterthedesiredformat
[cdsdisk,sliced,simple,q,?
](default:
cdsdisk)
Enterdesiredprivateregionlength
[,q,?
](default:
65536)
VxVMNOTICEV-5-2-88
Addingdiskdevicedisk_8todiskgroupdatadgwithdisk
namedatadg02.
Addorinitializeotherdisks?
[y,n,q,?
](default:
n)
VolumeManagerSupportOperations
Menu:
VolumeManager/Disk
1Addorinitializeoneormoredisks
2Encapsulateoneormoredisks
3Removeadisk
4Removeadiskforreplacement
5Replaceafailedorremoveddisk
6Mirrorvolumesonadisk
7Movevolumesfromadisk
8Enableaccessto(import)adiskgroup
9Removeaccessto(deport)adiskgroup
10Enable(online)adiskdevice
11Disable(offline)adiskdevice
12Markadiskasaspareforadiskgroup
13Turnoffthespareflagonadisk
14Unrelocatesubdisksbacktoadisk
15Excludeadiskfromhot-relocationuse
16Makeadiskavailableforhot-relocationuse
17Preventmultipathing/SuppressdevicesfromVxVM'sview
18Allowmultipathing/UnsuppressdevicesfromVxVM'sview
19Listcurrentlysuppressed/non-multipatheddevices
20Changethedisknamingscheme
21Getthenewlyconnected/zoneddisksinVxVMview
22Change/Displaythedefaultdisklayouts
listListdiskinformation
?
Displayhelpaboutmenu
?
?
Displayhelpaboutthemenuingsystem
qExitfrommenus
Selectanoperationtoperform:
q
Goodbye.
bash-3.00#list
bash:
list:
commandnotfound
bash-3.00#vxdisklist
DEVICETYPEDISKGROUPSTATUS
disk_1auto:
sliceddatadg01datadgonline
disk_8auto:
cdsdiskdatadg02datadgonline
disk_9auto:
none--onlineinvalid
disk_10auto:
none--onlineinvalid
disk_11auto:
none--onlineinvalid
disk_12auto:
none--onlineinvalid
disk_13auto:
none--onlineinvalid
bash-3.00#vxdiskadm
VolumeManagerSupportOperations
Menu:
VolumeManager/Disk
1Addorinitializeoneormoredisks
2Encapsulateoneormoredisks
3Removeadisk
4Removeadiskforreplacement
5Replaceafailedorremoveddisk
6Mirrorvolumesonadisk
7Movevolumesfromadisk
8Enableaccessto(import)adiskgroup
9Removeaccessto(deport)adiskgroup
10Enable(online)adiskdevice
11Disable(offline)adiskdevice
12Markadiskasaspareforadiskgroup
13Turnoffthespareflagonadisk
14Unrelocatesubdisksbacktoadisk
15Excludeadiskfromhot-relocationuse
16Makeadiskavailableforhot-relocationuse
17Preventmultipathing/SuppressdevicesfromVxVM'sview
18Allowmultipathing/UnsuppressdevicesfromVxVM'sview
19Listcurrentlysuppressed/non-multipatheddevices
20Changethedisknamingscheme
21Getthenewlyconnected/zoneddisksinVxVMview
22Change/Displaythedefaultdisklayouts
listListdiskinformation
?
Displayhelpaboutmenu
?
?
Displayhelpaboutthemenuingsystem
qExitfrommenus
Selectanoperationtoperform:
1
Addorinitializedisks
Menu:
VolumeManager/Disk/AddDisks
Usethisoperationtoaddoneormorediskstoadiskgroup.Youcan
addtheselecteddiskstoanexistingdiskgrouportoanewdiskgroup
thatwillbecreatedasapartoftheoperation.Theselecteddisksmay
alsobeaddedtoadiskgroupasspares.Ortheymaybeaddedas
nohotusestobeexcludedfromhot-relocationuse.Theselected
disksmayalsobeinitializedwithoutaddingthemtoadiskgroup
leavingthedisksavailableforuseasreplacementdisks.
Morethanonediskorpatternmaybeenteredattheprompt.Hereare
somediskselectionexamples:
all:
alldisks
c3c4t2:
alldisksonbothcontroller3andcontroller4,target2
c3t4d2:
asingledisk(inthec#t#d#namingscheme)
xyz_0:
asingledisk(intheenclosurebasednamingscheme)
xyz_:
alldisksontheenclosurewhosenameisxyz
Selectdiskdevicestoadd:
[,all,list,q,?
]list
DEVICEDISKGROUPSTATUS
disk_1datadg01datadgonline
disk_8datadg02datadgonline
disk_9--onlineinvalid
disk_10--onlineinvalid
disk_11--onlineinvalid
disk_12--onlineinvalid
disk_13--onlineinvalid
Selectdiskdevicestoadd:
[,all,list,q,?
]disk_9
Hereisthediskselected.Outputformat:
[Device_Name]
disk_9
Continueoperation?
[y,n,q,?
](default:
y)
Youcanchoosetoaddthisdisktoanexistingdiskgroup,a
newdiskgroup,orleavethediskavailableforusebyfuture
addorreplacementoperations.Tocreateanewdiskgroup,
selectadiskgroupnamethatdoesnotyetexist.Toleave
thediskavailableforfutureuse,specifyadiskgroupname
of"none".
Whichdiskgroup[,none,list,q,?
](default:
none)datadg
Useadefaultdisknameforthedisk?
[y,n,q,?
](default:
y)
Adddiskasasparediskfordatadg?
[y,n,q,?
](default:
n)
Excludediskfromhot-relocationuse?
[y,n,q,?
](default:
n)
Addsitetagtodisk?
[y,n,q,?
](default:
n)
Theselecteddiskswillbeaddedtothediskgroupdatadgwith
defaultdisknames.
disk_9
Continuewithoperation?
[y,n,q,?
](default:
y)
Initializingdevicedisk_9.
Whenselectingtheformatforthedisk