Sponsored Content
Operating Systems Solaris encapsulated root disk replacement Post 302606715 by ggi on Monday 12th of March 2012 01:32:53 PM
Old 03-12-2012
encapsulated root disk replacement

Hello,

I have a Sparc system with encapsulated disks.
Because of disk errors I had to replace rootdisk,
I did it with
vxdiskadm 4)
replacement, vxdctl disable/enable,
vxdiskadm 5)

After it it the system boot failed, dropped back to the ok> prompt, message was:
The file just loaded does not appear to be executable.
I could boot up only from the rootmirr only.

vxdisk list shows
Code:
DEVICE       TYPE      DISK         GROUP        STATUS       c#t#d#_NAME   
c0t0d0s2     sliced    rootdisk_1   rootdg       online       c0t0d0s2
c1t0d0s2     sliced    rootmirr_1   rootdg       online       c1t0d0s2
c1t2d0s2     sliced    COLDMIRR_1   rootdg       online       c1t2d0s2

The question is that vxdiskadm 4/5 handles the installation of the boot record too on the replacement root disk or there is necessary an additional step to install it ? I found UFS related installboot recommendations and vxrelated one too.

As I checked towards I found another disk in the volume instead of the replacement c0t0d0:
Code:
# vxprint -ht -g rootdg
v  global_n1    -            ENABLED  ACTIVE   1048707  ROUND     -        fsgen
pl global_n1-01 global_n1    ENABLED  ACTIVE   1048707  CONCAT    -        RW
sd COLDMIRR_1-04 global_n1-01 COLDMIRR_1 59585625 1048707 0       c1t2d0   ENA
pl global_n1-02 global_n1    ENABLED  ACTIVE   1048707  CONCAT    -        RW
sd rootmirr_1-05 global_n1-02 rootmirr_1 70072695 1048707 0       c1t0d0   ENA

And as I found the partitioning of c0t0d0 is compleetly different from the rootmirr_1 c1t0d0s2.
I don't understand what went wrong ... Have to create the slices by hand first, only then I can use the vxdiskadm replace function ?

Thanks in advance,
Regards,
GG

Last edited by pludi; 03-13-2012 at 04:54 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Newbie: Sun Ultra 5 Disk Replacement

I have just started getting into unix and aquired a Sun Ultra 5 however the disk failed and I want to replace it with a spare maxtor 40Gb i have lying around. I need to partition and format the disk from its old windows format. I have looked up info on the format command in solaris 9 and I think i... (2 Replies)
Discussion started by: kalm
2 Replies

2. Solaris

Disk replacement with svm

I dont even know what raid level this is, but its raid 5 mirrored from the looks of it. I have a failed disk (t12) within this mirror. What is the best way to replace this disk? 2 things concern me, isn't there a command to prepare the disk for a hot swap? and what should i do with the... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

3. Red Hat

Hard disk replacement

Hi all, I need some help with a RHEL 4 on a Sun Fire v65x machine. Some of the disks is damaged or has a hardware issue. This disk is connected to a hardware raid. The problem is that I don't know what is the brand, model and capacity of the disk. I've read the raid manual, but says... (3 Replies)
Discussion started by: adelgadom
3 Replies

4. Solaris

Disk Replacement SVM

Hello, Can someone advise the proper procedure for replacing a mirrored disk in SVM. I have checked the docs and various websites but the procedure seems to vary. This is what I would do... 1. Remove the db replicas from the bad disk. 2. Detach it from the mirror 3. Clear it with... (4 Replies)
Discussion started by: Actuator
4 Replies

5. AIX

errpt kept sending errors after disk replacement

Hi, The system is a Power6 8204 with an external storage 7031. OS is AIX 5.3. I replaced a failed disk hdisk28 and put it back to the volume group. Everything looks just fine. After the replacement, errpt has kept sending "Perm DISK OPERATION ERROR". Other than the error, everything still... (1 Reply)
Discussion started by: aixlover
1 Replies

6. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

7. HP-UX

FAULTY DISK replacement HP rx4640

Hello, I'm new to this forum and as you will see from my question I'm new to UNIX as well. One of our costumers has HP rx4640 running on UNIX with two 300GB hot-swappable disks that are mirrored. They reported to us that one of the disks is faulty and they want us to take care of it. Below is... (16 Replies)
Discussion started by: gjk
16 Replies

8. AIX

Disk replacement on SharedVG.

Hi, One of my disk is in 'disk missing state'. It is a sharedVG and cluster nodes. The errpt keeps reporting stale partition error. lvs are in open/stale state. In this sceanario is replacing the disk the best practice? When i do a lsdev the disk is labelled as below. hdisk3 Available ... (2 Replies)
Discussion started by: ElizabethPJ
2 Replies

9. Filesystems, Disks and Memory

DISK ARRAY PROTECTION SUSPENDED message displayed following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (1 Reply)
Discussion started by: terrya
1 Replies

10. AIX

DISK ARRAY PROTECTION SUSPENDED message following disk replacement

Hello, On 4/20/2018, we performed a disk replacement on our IBM 8202 P7 server. After the disk was rebuilt, the SAS Disk Array sissas0 showed a status of degraded. However, the pdisks in the array all show a status of active. We did see a message in errpt. DISK ARRAY PROTECTION SUSPENDED. ... (3 Replies)
Discussion started by: terrya
3 Replies
vxdiskadm(1M)															     vxdiskadm(1M)

NAME
vxdiskadm - menu-driven Veritas Volume Manager disk administrator SYNOPSIS
vxdiskadm DESCRIPTION
vxdiskadm provides a menu-driven interface to perform common Veritas Volume Manager (VxVM) disk administration tasks. The vxdiskadm script is interactive and prompts you for responses, supplying defaults where appropriate. Help is available at every prompt by entering a question mark (?) to display a context-sensitive help message. To add disks, specify one or more disks with a disk-address-pattern-list. The basic format for disk addresses is c#t#d# or enclosure-based names such as enc1_0. You can specify just the controller and target to add all the disks at that SCSI address. For example, use c2t0 to specify all disks on controller two, target zero. You can specify more than one disk address or address pattern on the command line. The word all specifies all disks on the system. Disk address names relate directly to device node names in the /dev/dsk and /dev/rdsk directo- ries. You can use the files /etc/vx/disks.exclude, /etc/vx/cntrls.exclude and /etc/vx/enclr.exclude to exclude disks, controllers and enclosures from use by vxdiskadm. Each line of disks.exclude specifies a disk to exclude, for example, c0t3d0. Each line of cntrls.exclude specifies the address of a controller to exclude, for example, c2. Each line of enclr.exclude specifies an enclosure to be excluded, for example, enc1. OPERATIONS
Add or initialize one or more disks Prompts for one or more disk device addresses, and a disk group to which these are to be added. When initializing disks into a new disk group, you are prompted to choose whether this disk group should be compatible with the Cross-platform Data Sharing (CDS) feature. You are also given the alternative of initializing the disk but leaving it unallocated to a disk group. A default disk name is assigned with the format, diskgroup##, such that the names are unique within all imported disk groups. You are prompted to specify whether to designate the disks as spares for the disk group. Remove a disk Prompts for a disk, by disk media name. The disk is checked to ensure that no subdisks reside on the disk. If the disk is in use, the operation fails with a recommendation to first move all volumes off the disk. If this disk is the last disk in a group, you are also prompted whether to remove the disk group from the system. The operation then calls vxdg rmdisk to remove the disk from its disk group. If this is the last disk in its disk group, vxdg deport is used instead. Remove a disk for replacement Prompts for a disk by disk media name. The disk is checked for volumes that would lose all mirrors as a result of the operation. If such volumes exist, those volumes are listed and you are prompted whether to continue the operation. The operation calls vxdg -k rmdisk to dissociate the media record from the physical disk. If there are formatted disks available that have disk headers but no disk group, you are prompted whether to use one of these disks as a replacement. Replace a failed or removed disk Prompts for a disk media name. The named media record must be dissociated from a disk. If the media record is not in the removed state, unused disks are scanned for matching disk IDs. If a disk with a matching disk ID is found, you are prompted whether to reattach that disk. If a matching disk is not used, you are prompted for a new disk, by device address. If the named replacement disk has a valid disk header, but is not allocated to a disk group, you are prompted whether to reinitialize the disk. If the named replacement disk is listed as allocated to a disk group or to another host, you are prompted whether to continue the operation. If the device is initialized, vxdisksetup is called to set up public and private regions and to create the disk header. Given an initialized disk, the operation replaces the disk in a disk group with vxdg -k adddisk. Mirror volumes on a disk Prompts for a disk, by media name. It then prompts for a destination disk within the same disk group, also by media name. Spec- ifying no destination disks indicates that any disk can be the destination. The operation calls vxmirror to mirror the volumes. Move volumes from a disk Prompts for a disk, by media name. It then prompts for a possible list of destination disks, also by disk media name. Specify- ing no destination disks indicates that any disk is suitable. The operation calls vxevac to move subdisks off the disk. Enable access to (import) a disk group Prompts for a disk group name. The operation calls vxdg import to import the disk group stored on that disk. Remove access to (deport) a disk group Prompts for a disk group name. The prompt lists alternate disk groups and the disks (media name and access name) that they con- tain. The operation calls vxdg deport. Enable (online) a disk device Prompts for a disk device. The prompt lets you display the disks on the system. The operation functions only for disks cur- rently offline. It then makes the disk accessible. Disable (offline) a disk device Prompts for a disk device. The prompt lets you display the disks on the system. The operation functions only for disks cur- rently online, but not part of any disk group. It then marks the disk as offline such that VxVM no longer tries to access the disk. Mark a disk as a spare for a disk group Sets up a disk as a spare device for its disk group. A spare disk can be used to automatically replace a disk that has failed. No space can be used on a disk that is marked as a spare. Turn off the spare flag for a disk Removes a disk from the list of spare disks, and returns its space to the general pool of available space. Remove (deport) and destroy a disk group Removes access to and destroys a disk group that is currently enabled (imported). A disk group may be destroyed if the disks are needed for some other purpose. Unrelocate subdisks back to a disk Moves subdisks which were hot-relocated following a disk failure back to the original disk, or to a disk with a different name, possibly with a different offset. Exclude a disk from hot-relocation use Sets up a disk to be excluded from use by hot-relocation. The disk is marked as nohotuse and it cannot be used by hot-relocation to replace a disk that has failed. However, it remains available to be used as free space for its disk group. Make a disk available for hot-relocation use Turns off the nohotuse flag on a disk. Use this option to make a disk available for hot-relocation use. This only applies to disks that were previously excluded from hot-relocation use. Prevent multipathing/Suppress devices from VxVM's view Excludes devices from VxVM's view, or prevents them from being multipathed by the dynamic multipathing (DMP) driver, vxdmp. There are three ways of specifying the devices on which these operations are to be performed: o As a controller for all devices connected through the controller. o As a physical pathname for all devices under that path. o As a combination of the Vendor ID and Product ID (VID:PID) for all devices of that type. This option also provides a method to define pathgroups in case of disks which are not multipathed by VxVM. Only one path from a pathgroup will be made visible to VxVM. This is useful to avoid duplicate entries for devices that are not multipathed by vxdmp. Allow multipathing/Unsuppress devices from VxVM's view Makes devices visible to VxVM again or makes vxdmp multipath these devices again. This can be performed only on devices that have already been specified using the "Prevent multipathing/Suppress devices from VxVM's view" option. List currently suppressed/non-multipathed devices Lists all devices suppressed from VxVM's view and all devices prevented from being multipathed by vxdmp. Change the disk naming scheme Changes the disk naming scheme from the c#t#d# format to enclosure-based. Alternatively, if the existing naming scheme is enclo- sure-based, it is changed to c#t#d# format. Note: Changing to enclosure-based naming may cause the failure of persistent disk access records for simple or nopriv disks. You can use the vxdarestore utility to repair these records. See the vxdarestore(1M) manual page for more information. This option is equivalent to using the vxddladm set namingscheme={ebn|osn} command. Note: Devices with very long device names (for example, Fibre Channel devices that include worldwide name (WWN) identifiers) are always represented by enclosure-based names. This operation has no effect on such devices. Change/Display the default disk layouts Allows you to change or display the default disk format and private region length that are used when initializing disks. Mark a disk as allocator-reserved for a disk group Reserves a disk for use with the Intelligent Storage Provisioning (ISP) feature when allocating storage space. Turn off the allocator-reserved flag on a disk Allows space on a disk to be allocated by VxVM commands other those provided with the Intelligent Storage Provisioning feature. List disk information Displays a list of disks. You can also choose to list detailed information about the disk at a specific disk device address. Hardware-Specific Note Some environments provide guidelines to optimize VxVM's interaction with intelligent storage systems. If these guidelines are present, VxVM follows the guidelines when adding disks to disk groups and when mirroring the volumes on a disk. If the operation fails due to these guideline(s), you are prompted to use the force option. The force option ignores any such storage-specific guidelines. FILES
/etc/vx/cntrls.exclude Specifies the address of controllers to exclude from vxdiskadm operations. /etc/vx/disks.exclude Specifies the address of disks to exclude from vxdiskadm operations. /etc/vx/enclr.exclude Specifies the names of enclosures to exclude from vxdiskadm operations. NOTES
EFI disks cannot be added to a disk group that is compatible with the Cross-platform Data Sharing (CDS) feature, nor can they be formatted as CDS disks. See the vxddladm(1M) manual page for information on using the vxddladm command to include or exclude specific array libraries from device discovery. SEE ALSO
vxdarestore(1M), vxddladm(1M), vxdg(1M), vxdisk(1M), vxdiskadd(1M), vxdisksetup(1M), vxevac(1M), vxintro(1M) VxVM 5.0.31.1 24 Mar 2008 vxdiskadm(1M)
All times are GMT -4. The time now is 02:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy