Sponsored Content
Operating Systems Solaris Need to remove a disk from Veritas Post 302113294 by reborg on Wednesday 4th of April 2007 05:13:54 PM
Old 04-04-2007
It might help if you said what part wasn't working, and what error message you got, because the method described, does work:


Code:
#: vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -

dm rootdisk     c0t0d0s2     -        35358848 -        -        -       -
dm rootmirr     -            -        -        -        NODEVICE -       -

v  rootvol      root         ENABLED  20624424 -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  20624424 -        ACTIVE   -       -
sd rootdisk-02  rootvol-01   ENABLED  20624424 0        -        -       -
pl rootvol-02   rootvol      DISABLED 20624424 -        NODEVICE -       -
sd rootmirr-01  rootvol-02   DISABLED 20624424 0        NODEVICE -       -

v  swapvol      swap         ENABLED  14682592 -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  14682592 -        ACTIVE   -       -
sd rootdisk-B0  swapvol-01   ENABLED  1        0        -        -       Block0
sd rootdisk-01  swapvol-01   ENABLED  14682591 1        -        -       -
pl swapvol-02   swapvol      DISABLED 14682592 -        NODEVICE -       -
sd rootmirr-02  swapvol-02   DISABLED 14682592 0        NODEVICE -       -

#: vxplex -g rootdg -o rm dis rootvol-02
#: vxplex -g rootdg -o rm dis swapvol-02

#: vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -

dm rootdisk     c0t0d0s2     -        35358848 -        -        -       -
dm rootmirr     -            -        -        -        NODEVICE -       -

v  rootvol      root         ENABLED  20624424 -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  20624424 -        ACTIVE   -       -
sd rootdisk-02  rootvol-01   ENABLED  20624424 0        -        -       -

v  swapvol      swap         ENABLED  14682592 -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  14682592 -        ACTIVE   -       -
sd rootdisk-B0  swapvol-01   ENABLED  1        0        -        -       Block0
sd rootdisk-01  swapvol-01   ENABLED  14682591 1        -        -       -

#: vxedit -g rootdg -rf rm rootmirr
 #: vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -

dm rootdisk     c0t0d0s2     -        35358848 -        -        -       -

v  rootvol      root         ENABLED  20624424 -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  20624424 -        ACTIVE   -       -
sd rootdisk-02  rootvol-01   ENABLED  20624424 0        -        -       -

v  swapvol      swap         ENABLED  14682592 -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  14682592 -        ACTIVE   -       -
sd rootdisk-B0  swapvol-01   ENABLED  1        0        -        -       Block0
sd rootdisk-01  swapvol-01   ENABLED  14682591 1        -        -       -

#: vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:sliced     rootdisk     rootdg       online
c0t1d0s2     auto:sliced     rootdisk     rootdg2      online
c1t1d0s2     auto:cdsdisk    disk1        datadg        online
c2t1d0s2     auto:cdsdisk    disk1mirr    datadg        online


Last edited by reborg; 04-04-2007 at 06:26 PM..
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

FSCK on veritas managed disk

I've had a VXFS filesystem get corrupted and now it won't mount. Can I run a fsck -y on the raw disk device or should something be done within veritas? Veritas does not see the disk at the moment. (2 Replies)
Discussion started by: ozzmosiz
2 Replies

2. Solaris

Veritas root disk mirroring

Hi there, My task is to replace the two 73 G disks with two 143 G disks , which has vxvm 4.1 running on it. I would like to know whether the steps iam following are correct. 1. Break the sub-disks, plexes of the root mirror. 2. Remove the sub-disks,plexes of the root mirror. 3. Remove one of... (10 Replies)
Discussion started by: Jartan
10 Replies

3. Shell Programming and Scripting

mapping device from an inq output to veritas disk groups

Hi, Does anyone have a clever way of mapping the following from two different files using perl. sample line from vxdisk list output (vxdisk-list.file): emcpower18s2 auto:sliced IDFAG1_1 (IDFAG1_appdg) online sample line from 'inq' output (inq.file): ... (0 Replies)
Discussion started by: csoesan
0 Replies

4. UNIX and Linux Applications

Veritas silent disk group creation

I am trying to write a kornshell script that will automatically create veritas disk groups. However, the only utility that I can find that will create the diskgroup is vxdiskadd, which prompts with interactive questions. I've tried to pass the answers through to vxdiskadd, but I receive the... (0 Replies)
Discussion started by: jm6601
0 Replies

5. Solaris

Help needed to find out the disk controller for veritas disks

hi all i am using vxvm 5.1 on my sun blade 150 which is running with solaris 5.10. When i give the command "vxdisk list" it gives the following output # vxdisk list DEVICE TYPE DISK GROUP STATUS c0t0d0s2 auto:none - - online... (2 Replies)
Discussion started by: kingston
2 Replies

6. AIX

Remove internal disk from Veritas Control

I installed new internal disks in my p570. They will be part of a new AIX vg. Unfortunately, we have Veritas Volume Manager running on this AIX 5.2 ml 10 box. Veritas has grabbed control of the disks. I want AIX LVM to control the disks. I cannot get these disks free of Veritas: <lspv... (2 Replies)
Discussion started by: BobSmith
2 Replies

7. UNIX for Dummies Questions & Answers

Configure disk group with veritas

People i have an a storage i create two virtual disk 1 y 2. In the virtual disk 1 i configure 8 volumes and in the Vd2 configure 5 volumes. Now i want to create a disk group called Prod2 y Dev2 but when i go to vxdiskadm and i choose add disk o encapusalte when i press list to list the disk... (0 Replies)
Discussion started by: enkei17
0 Replies

8. Solaris

Veritas not attaching replaced disk

Hi, I`m on SunFire480R with Solaris 10. Disk in rootdg group failed, so it was replaced. However, I cannot make Veritas initalise the replaced disk: # vxdctl enable # vxdisk list c1t0d0s2 Device: c1t0d0s2 devicetag: c1t0d0 type: auto flags: online error private autoconfig... (1 Reply)
Discussion started by: masloff
1 Replies

9. Solaris

Veritas disk group not the same on each cluster node.

Need help getting all disk devices back on node 2 the same as node 1. Recently Veritas and/or Sun cluster got wrecked on my 2 node Sun cluster after installing the latest patch cluster. I backed out the patches and then node 2 could see only half of the devices and Veritas drives (though format... (0 Replies)
Discussion started by: buggin
0 Replies

10. UNIX for Beginners Questions & Answers

How to extend a disk in veritas volume manager in veritas cluster?

Hi Experts, I wanted to extend a veritas file system which is running on veritas cluster and mounted on node2 system. #hastatus -sum -- System State Frozen A node1 running 0 A node2 running 0 -- Group State -- Group System Probed ... (1 Reply)
Discussion started by: Skmanojkum
1 Replies
advscan(8)						      System Manager's Manual							advscan(8)

NAME
advscan - Locates AdvFS volumes on disk devices SYNOPSIS
/sbin/advfs/advscan [-g] [-a] [-r] [-f domain_name] devices... disk_group... OPTIONS
Scans all devices found in any /etc/fdmns domain as well as those in the command line. Fixes the domain count and the links in the /etc/fdmns directory for the named domain. Lists the AdvFS volumes in the order they are found on each disk device or Logical Storage Man- ager (LSM) disk group. Re-creates missing domains. The domain name is created from the device names or LSM disk group names. OPERANDS
Specifies the device names of disks to scan for AdvFS volumes. Specifies the LSM disk groups to scan for AdvFS volumes. DESCRIPTION
The advscan command locates AdvFS volumes (disk partitions or LSM volumes) that are in AdvFS domains. Given the AdvFS volumes, you can re-create or fix the /etc/fdmns directory of a named domain or LSM disk group. For example, if you have moved disks to a new system, moved disks around in a way that has changed device numbers, or lost track of where the AdvFS domains are, you can use this command to locate them. Another use of the advscan command is to repair AdvFS domains when you have broken them. For example, if you mistakenly delete the /etc/fdmns directory, delete a domain directory in the /etc/fdmns directory, or delete links from a domain directory under the /etc/fdmns directory, you can use the advscan command to fix the problem. The advscan command accepts a list of disk device names and/or LSM disk group names and searches all the disk partitions to determine which partitions are part of an AdvFS domain. You can run the advscan command to automatically rebuild all or part of your /etc/fdmns directory or you can rebuild it manually by supply- ing all the names of the AdvFS volumes in a domain. If the -g option is not set, the AdvFS volumes are listed as they are grouped in domains. Set this option to list the AdvFS volumes in the order they are found on each disk. Run the advscan command with the -r option set to re-create missing domains from the /etc/fdmns directory, missing links, or the entire /etc/fdmns directory. Although the advscan command will rebuild the /etc/fdmns directory automatically, Compaq recommends that you always keep a hard-copy record of the current /etc/fdmns directory. To determine if a disk partition is part of an AdvFS domain, the advscan command performs the following functions: Reads the first two pages of a partition to determine if it is an AdvFS volume and to find the domain information. Reads the disk label to sort out overlap- ping partitions. The size of overlapping partitions are examined and compared to the domain information to determine which partitions are in the domain. These partitions are reported in the output. Reads the boot block to determine if the partition is AdvFS root bootable. The advscan command displays the date the domain was created, the on-disk structure version, and the last known or current state of the volume. In order to mount an AdvFS fileset, the domain that contains the fileset must be consistent. An AdvFS domain is consistent when the number of physical partitions or volumes with the correct domain ID are equal to both the domain volume count (which is a number stored in the domain) and the number of links to the partitions that are in the /etc/fdmns directory. Domain inconsistencies can occur in diverse ways. Use the -f option to correct domain inconsistencies. If you attempt to mount an inconsistent domain, a message similar to the following will appear on the console: # Volume count mismatch for domain dmnz. dmnz expects 2 volumes, /etc/fdmns/dmnz has 1 links. RESTRICTIONS
You must be the root user to use this command. EXAMPLES
The following are examples of the output from the advscan command. The following example scans devices dsk3 and diskgroup rootdg for AdvFS partitions: # advscan dsk3 rootdg Scanning devices /dev/rdisk/dskz3 rootdg Found domains: usr_domain Domain Id 30a91a42.0001e060 Created Thu Mar 16 14:37:54 2000 Domain volumes 2 /etc/fdmns links 2 Actual partitions found: rz3g rootdg.vol03 The following example scans devices found in /etc/fdmns. It uses the -g option to list parti- tions in the order they are found on the disks rather than grouping them into domains and matching them with the /etc/fdmns directory. # advscan -a -g scanning disks /dev/rdisk/dsk2 /dev/rdisk/dsk3 rootdg Partition Domain Id /dev/dsk2a 30a919ff.000ec470 V3, mounted, bootable 1 volume in domain Created Mon Jan 11 14:36:47 1999 Last mount Fri Jun 30 16:00:04 2000 /dev/dsk2g 30a91a32.0007c250 V4, mounted 1 volume in domain Created Thu Mar 16 14:37:38 2000 Last mount Fri Mar 24 17:14:16 2000 /dev/dsk3a 30abe160.00028eff V3, never mounted 1 volume in domain Created Thu Mar 18 17:12:00 1999 /dev/dsk3g 30a91a42.0001e060 V3, mounted 1 volume in domain Created Tue Mar 16 14:37:54 1999 Last mount Thu Mar 23 17:14:17 2000 rootdg.vol01 30c62c74.00036750 V4, dismounted 2 volumes in domain Created Fri Apr 7 15:51:16 2000 Last mount Fri Apr 7 17:16:06 2000 rootdg.vol02 30c62c74.00036750 V3, dismounted Created Wed Apr 7 15:51:16 1999 Last mount Wed Apr 7 17:16:06 1999 For the following example, two domains using device dsk3 and disk group rootdg were removed from the /etc/fdmns directory. The advscan command scans device dsk3 and disk group rootdg and then re-creates the missing domains. # advscan -r dsk3 rootdg Scanning disks /dev/disk/dsk3 /dev/rvol/rootdg Found domains: *unknown* Domain Id 30a91a42.0001e060 Created Tue Mar 16 14:37:54 2000 Domain volumes 1 /etc/fdmns links 0 Actual partitions found: dsk3g* *unknown* Domain Id 30c62c74.00036750 Created Wed Apr 7 15:51:16 2000 Domain volumes 2 /etc/fdmns links 0 Actual partitions found: rootdg.vol01* rootdg.vol02* Creating /etc/fdmns/domain_dsk3g/ linking dsk3g Creating /etc/fdmns/domain_rootdg.vol01_rootdg.vol02/ linking rootdg.vol01 linking rootdg.vol02 FILES
SEE ALSO
Commands: disklabel(8) Files: fstab(4) advscan(8)
All times are GMT -4. The time now is 02:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy