Raj1986
15 years agoLevel 2
Root disk encapsulation problem in VXVM on solaris 10
Select disk devices to encapsulate:
[<pattern-list>,all,list,q,?] list
DEVICE DISK GROUP STATUS
c0t0d0 - - online invalid
c2t0d0 rajdg01 rajdg online
c2t1d0 - - online
c0t0d0 - - online invalid
c2t0d0 rajdg01 rajdg online
c2t1d0 - - online
Select disk devices to encapsulate:
[<pattern-list>,all,list,q,?] c0t0d0
Here is the disk selected. Output format: [Device_Name]
[<pattern-list>,all,list,q,?] c0t0d0
Here is the disk selected. Output format: [Device_Name]
c0t0d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group or to
a new disk group. To create a new disk group, select a disk group
name that does not yet exist.
Which disk group [<group>,list,q,?] rootdg
There is no active disk group named rootdg.
Create a new group named rootdg? [y,n,q,?] (default: y)
Use a default disk name for the disk? [y,n,q,?] (default: y)
A new disk group will be created named rootdg and the selected
disks will be encapsulated and added to this disk group with
default disk names.
A new disk group will be created named rootdg and the selected
disks will be encapsulated and added to this disk group with
default disk names.
c0t0d0
Continue with operation? [y,n,q,?] (default: y)
This disk device does not appear to be valid. The disk may not be
formatted (format(1M)), may have a corrupted VTOC, the device file
for the disk may be missing or invalid, or the device may be turned-off
or detached from the system. This disk will be ignored.
Output format: [Device_Name,Disk_Access_Name]
[c0t0d0,c0t0d0s2]
Hit RETURN to continue.
Here is the slice information.
partition>
partition> print
Current partition table (original):
Total disk cylinders available: 1563 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 1562 11.95GB (1560/0/0) 25061400
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 1562 11.97GB (1563/0/0) 25109595
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wu 1 - 2 15.69MB (2/0/0) 32130
0 root wm 3 - 1562 11.95GB (1560/0/0) 25061400
1 unassigned wm 0 0 (0/0/0) 0
2 backup wm 0 - 1562 11.97GB (1563/0/0) 25109595
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 7.84MB (1/0/0) 16065
9 alternates wu 1 - 2 15.69MB (2/0/0) 32130
uname -a
SunOS node1.localdomain.com 5.10 Generic_141445-09 i86pc i386 i86pc
Please guide me where is the problem.
- From VxVM Admin Guide (Solaris 5.0MP3)
--------------------
To prevent the encapsulation from failing, make sure that the following conditions apply:
• The disk has two free partitions for the public and private regions.
• The disk has an s2 slice.
• The disk has a small amount of free space (at least 1 megabyte at the beginning
or end of the disk) that does not belong to any partition. If the disk being encapsulated is the root disk, and this does not have sufficient free space available, a similar sized portion of the swap partition is used instead.
--------------------
The last point appears to be the problem here - from the output there are no spare sectors - 0 is being used by s8, 1-2 by s9, remaining (3-1562) by s0.
Either get rid of s9 or free up at least a sector from the end of s0 (if shrinking s0 would obviously also need to shrink the filesystem first)