로그인
Sign in
제목 : rootdg를 재구성하는 방법

만약 rootdg가 손상되었다면 다음과 같은 에러가 발생할것이다.

VxVM general startup...
vxvm: Vold is not enabled for transactions
       No volumes started
and

vxvm:vxrecover: ERROR: IPC failure: Configuration daemon is not accessible

이경우 rootdg를 재구성할 필요가있다.

먼저 고장난 디스크를 교체한후 format을 실행 rootdg를 위한 slice를 재구성한다.
rootdg용으로 5mb slice를 할당할경우

node0# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t0d0
  /io-unit@f,e0200000/sbi@0,0/dma@0,81000/esp@0,80000/sd@0,0
1. c0t1d0
  /io-unit@f,e0200000/sbi@0,0/dma@0,81000/esp@0,80000/sd@1,0
2. c1t0d0
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@0,0
3. c1t0d1
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@0,1
4. c1t1d0
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@1,0
5. c1t1d1
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@1,1
6. c1t2d0
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@2,0
7. c1t2d1
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@2,1
8. c1t3d0
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@3,0
9. c1t4d0
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@4,0
10. c1t4d1
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@4,1
11. c1t5d0
  /io-unit@f,e0200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,741464/ssd@5,0
12. c2t0d0
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@0,0
13. c2t0d1
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@0,1
14. c2t1d0
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@1,0
15. c2t1d1
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@1,1
16. c2t2d0
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@2,0
17. c2t2d1
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@2,1
18. c2t3d0
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@3,0
19. c2t4d0
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@4,0
20. c2t4d1
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@4,1
21. c2t5d0
  /io-unit@f,e1200000/sbi@0,0/SUNW,soc@3,0/SUNW,pln@a0000000,740f85/ssd@5,0
Specify disk (enter its number): 1
selecting c0t1d0
[disk formatted]


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
       quit
format> p


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
       quit
partition> p
Current partition table (original):
Total disk cylinders available: 2036 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size       Blocks
0 unassigned    wm       0               0         (0/0/0)
1 unassigned    wm       0               0         (0/0/0)
2     backup    wm       0 - 2035     1002.09MB    (2036/0/0)
3 unassigned    wm       0               0         (0/0/0)
4 unassigned    wm       0               0         (0/0/0)
5 unassigned    wm       0               0         (0/0/0)
6 unassigned    wm       0               0         (0/0/0)
7 unassigned    wm       0               0         (0/0/0)

partition> 7
Part      Tag    Flag     Cylinders        Size       Blocks
7 unassigned    wm       0               0         (0/0/0)

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:
Enter partition size[0b, 0c, 0.00mb]: 5mb
partition> l
Ready to label disk, continue? y

partition> p
Current partition table (unnamed):
Total disk cylinders available: 2036 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size       Blocks
0 unassigned    wm       0               0         (0/0/0)
1 unassigned    wm       0               0         (0/0/0)
2     backup    wm       0 - 2035     1002.09MB    (2036/0/0)
3 unassigned    wm       0               0         (0/0/0)
4 unassigned    wm       0               0         (0/0/0)
5 unassigned    wm       0               0         (0/0/0)
6 unassigned    wm       0               0         (0/0/0)
7 unassigned    wm       0 -   10        5.41MB    (11/0/0)

partition>q


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
       quit
format> q
node0#

DISABLE TRANSACTIONS

node0# vxconfigd -m disable

node0# ps -ef | grep vxconfigd
   root    58     1 80 10:08:39 ?        0:01 vxconfigd
   root   520   328  4 10:35:09 pts/0    0:00 grep vxconfigd

(만약 vxconfigd deamon이 이미 올라와 있다면 다음과 같이 한다)
node0# vxdctl disable

      INITIALIZE DATABASE
node0# vxdctl init

     MAKE A NEW ROOTDG GROUP
node0# vxdg init rootdg

node0# vxdctl add disk c0t3d0s6 type=simple
  
      ADD DISK RECORDS
node0# vxdisk -f init c0t1d0s7 type=simple

      ADD DISK NAME TO ROOTDG DISK GROUP
node0# vxdg adddisk c0t1d0s7

      ENABLE TRANSACTIONS
node0# vxdctl enable

     REMOVE FILE IF PRESENT
node0# cd /etc/vx/reconfig.d/state.d:ls
node0#install-db
node0#rm install-db

NOTE: if the file install-db is there remove it. If it isn't
     don't worry about it.

node0#reboot
NOTE: You must start the pdb to bring in the shared group.

node0# pdbadmin startnode en
Sep  6 10:53:12 node0 ID[SUNWcluster.reconf.1150]: Starting PDB; node 0 (node0)
joining the en cluster.
Starting SPARCcluster PDB software - joining the en cluster.
be0:  Using Onboard Transceiver
be0:  100 Mbps Link Up
be1:  Using Onboard Transceiver
be1:  100 Mbps Link Up
be0:  Using Onboard Transceiver
be0:  100 Mbps Link Up
be0:  Using Onboard Transceiver
be0:  100 Mbps Link Up
Sep  6 10:53:23 node0 ID[SUNWcluster.reconf.1100]: en cluster starting on node
0 (node0)
Sep  6 10:53:23 node0 ID[SUNWcluster.reconf.1100]: en cluster starting on node
1 (node1)
NOTICE: ID[SUNWcluster.dlm.2030] dynamic allocation limit = 0x02944000 bytes
NOTICE: ID[SUNWcluster.dlm.2040] bytes per lock: 0x40, resource 0x68, proc
0x5c, conv 0x50

Sep  6 10:53:28 node0 ID[SUNWcluster.ccmd.up.6010]: link between node 0 and
node 1 on net 0 is up
Sep  6 10:53:28 node0 ID[SUNWcluster.ccmd.up.6010]: link between node 0 and
node 1 on net 1 is up
Sep  6 10:53:33 node0 ID[SUNWcluster.reconf.1030]: en net 0 (be0) selected
Sep  6 10:53:35 node0 ID[SUNWcluster.cvm.6010]: cluster volume manager shared
access mode enabled
Sep  6 10:53:37 node0 ID[SUNWcluster.reconf.1920]: en node 1 (node1) is a
cluster member
Sep  6 10:53:38 node0 ID[SUNWcluster.reconf.1920]: en node 0 (node0) is a
cluster member
Sep  6 10:53:38 node0 ID[SUNWcluster.reconf.1940]: en cluster reconf #6
finished

node0# vxva &
862
node0#

NOTE:  When the gui comes up it will import the shared group and
      you will also see all your ssa's.
      Also a vxdisk list will show all your devices.
      NOTICE THE SIMPLE SLICE FOR ROOTDG

조회 수 :
802
추천 수 :
16 / 0
등록일 :
2003.12.13
16:46:16 (*.193.52.140)
엮인글 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=2939&act=trackback&key=d28
게시글 주소 :
http://bestceok.com/xe/index.php?mid=sun_faq&document_srl=2939
List of Articles
번호 제목 글쓴이 날짜 조회 수
71 키보드의 Power 버튼 기능 막기 하록 2003-12-13 452
70 웹서버를 위한 솔라리스 튜닝 하록 2003-12-13 718
69 FTP 자동 다운로드 하록 2003-12-13 567
68 Automount 설정하기 하록 2003-12-13 424
67 Solaris x86 install 하록 2003-12-13 483
66 Login 사용자 수를 늘리려면... 하록 2003-12-13 456
65 Solaris 7 에서 sendmail setup 방법 하록 2003-12-13 556
64 시스템 성능 측정 하록 2003-12-13 695
63 Multiple Monitor 설정 하록 2003-12-13 484
62 Volume Manager에서 rootdg 복구 (2) 하록 2003-12-13 476
» Volume Manager에서 rootdg 복구 (1) 하록 2003-12-13 802
60 Time zone을 바꾸려면... 하록 2003-12-13 455
59 rsh를 이용해서 다른 시스템으로 디렉토리를 복사하려면.. 하록 2003-12-13 931
58 HDD 추가하는 방법 하록 2003-12-13 483
57 On-board PGX graphic resolution change 하록 2003-12-13 411
56 backup 명령어 정리 (2) 하록 2003-12-13 1253
55 backup 명령어 정리 (1) 하록 2003-12-13 473
54 Disk Quotas 하록 2003-12-13 608
53 Boot Block이 손상되었을 때 하록 2003-12-13 715
52 O/S Backup & Restore 하록 2003-12-13 434