Sponsored Content
Full Discussion: failing drive
Operating Systems AIX failing drive Post 302216743 by zaxxon on Monday 21st of July 2008 05:19:26 AM
Old 07-21-2008
If I recall correct from your other post it was hdisk2?
You need to know if it is part of a VG:
Code:
lspv| grep hdisk2

Next check if it is mirrored:
Code:
lsvg -l <nameofthatvg>

You will get a list where there is a column calle LPs and PPs.
If the PPs are a multiple of LPs, you have set up a mirror, which is good and makes it easy. You'll have to check that for all LVs/FS's that are listed. Else you have

If you don't have a mirror, you'll have to varyoffvg the VG and replace the disk, but you'll have to restore from your backup.

When it is mirrored like described above, you can just do following, like "man unmirrorvg" says:
Code:
       3    To replace a bad disk drive in a mirrored volume group, enter:

            unmirrorvg workvg hdisk7
            reducevg workvg hdisk7
            rmdev -l hdisk7 -d
            replace the disk drive, let the drive be renamed hdisk7
            extendvg workvg hdisk7
            mirrorvg workvg
            Note: By default in this example, mirrorvg will try to create 2 copies for logical
            volumes in workvg. It will try to create the new mirrors onto the replaced disk
            drive. However, if the original system had been triply mirrored, there may be no
            new mirrors created onto hdisk7, as other copies may already exist for the logical
            volumes. This follows the default behavior of unmirrorvg to reduce the mirror copy
            count to 1. Note: When unmirrorvg workvg hdisk7 is run, hdisk7 will be the
            remaining drive in the volume group. This drive is not actually removed from the
            volume group. You must run the migratepv command to move the data from the disk
            that is to be removed from the system to disk hdisk7.

 

8 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

The best partitioning schem for a 250GB Sata hard drive & a 75GB SCSI hard drive

Hi I have 2 75GB SCSI hard drives and 2 250GB SATA hard drives which are using RAID Level 1 respectively. I wana have both FTP and Apache installed on them as services. I'm wondering what's the best partitioning schem? I wana use FC3 as my OS, so, I thought I can use the 75GB hard drive as the /... (0 Replies)
Discussion started by: sirbijan
0 Replies

2. UNIX for Dummies Questions & Answers

Map Drive From Windows To Apache Shared Drive?

Anyone know how I can map a windows drive to an apache shared drive? In my httpd.conf file, I have: Alias /merc_rpts/ "/u/merc_rpts/" <Directory "/u/merc_rpts"> Options Indexes </Directory> I'm able to bring up a browser and see the contents of this folder. In... (0 Replies)
Discussion started by: gseyforth
0 Replies

3. SCO

mounting USB floppy drive /Flash drive in OSR 6.0

Can anybody help me out to mount USB flash /floppy drive in sco openserver 6.0 . (5 Replies)
Discussion started by: sureshdrajan
5 Replies

4. Shell Programming and Scripting

ps -ef failing sometimes

Hi Everyone, we have a shell script "DLP_recv.sh" that has below command which is supposed to return the number of active instances of itself, which means of there is no other instance then commad would return 1 (for the current instance). The problem is that it sometimes it returns 0 which is... (3 Replies)
Discussion started by: guycool
3 Replies

5. Hardware

How to Clone a Drive with 512 byte Sectors to a Drive with 4096 bytes/sector (AF)?

I have a 320 GB drive which dual boots Windows and Debian: Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal):... (0 Replies)
Discussion started by: phillipsoasis
0 Replies

6. HP-UX

DLT 7000 tape drive failing with "write error on a record in the index"

HP rp5450 (L2000) running HP-UX 11.11B Using DLT 7000 and DLT 4000 tape drives for nightly full backups Backup jobs created by SAM DLT 7000 cron entry is as follows: 00 2 * * 1-6 /usr/sam/lbin/br_backup DLT FULL Y /dev/rmt/0m /var/sam/graphLCAa17036 root Y 1 N > /var/sam/SAM_br_msgs 2>&1... (1 Reply)
Discussion started by: dreh99
1 Replies

7. UNIX for Dummies Questions & Answers

Need help to move .csv file from UNIX path to windows shared drive or c:\ drive

Hi Guys, Can any one help me on this. I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive? Regards, LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies

8. Solaris

Drive is showing offline in the /var/adm/messages and shows "drive type unknown" in the format outpu

Hi, I am facing issue with one of the drive is solaris 10. it is showing offline in the messages file scsi: WARNING: /pci@2,600000/QLGC,qlc@0/fp@0,0/ssd@w5006016746e00b1b,0 (ssd0): drive offline genunix: WARNING: Page83 data not standards compliant DGC LUNZ 0430 ... (1 Reply)
Discussion started by: Prasanth T K
1 Replies
lvmerge(1M)															       lvmerge(1M)

NAME
lvmerge - merge two LVM logical volumes into one logical volume SYNOPSIS
autobackup] copy_lv_path master_lv_path Remarks This command requires the installation of the optional HP MirrorDisk/UX software, which is not included in the standard HP-UX operating system. DESCRIPTION
The command merges two logical volumes of the same size. The copy_lv_path is added as a mirrored copy of master_lv_path and only the mas- ter_lv_path logical volume is retained. The number of mirrored copies of the master_lv_path is increased by the number of copies in the copy_lv_path. Either copy_lv_path or master_lv_path must be an unmirrored logical volume. Data previously contained in the copy_lv_path will be resynchronized using the data in the master_lv_path. All new data on the copy_lv_path will be destroyed and the copy_lv_path logical volume will be removed. By default, completes after all the extents are resynchronized. When run with the option, if there is no bitmap (see below), returns with- out resynchronizing the remaining logical volume. Using the option may affect data high availability as extents may remain stale. Use or to synchronize the mirrors. The normal usage for this command is to merge previously mirrored logical volumes that have been split using the command. However, the two logical volumes are not required to have been the result of a previous operation. NOTE: When a mirrored logical volume of a non-shared volume group is split into two logical volumes using a bitmap is stored that keeps track of all writes to either logical volume in the split pair. If the volume group was shared at the time of the split, no bitmap was created. When the two logical volumes are subsequently merged using the bitmap is used to decide which areas of copy_lv_path need to be resynchronized with the master_lv_path. This bitmap remains in existence until one of the following conditions occurs: o The merge is completed. o One of the logical volumes is extended, reduced, or split again. o The volume group is deactivated, or cross-activated to shared mode (see vgchange(1M)). o The system is rebooted. If there is no bitmap available, all the physical extents from the copy_lv_path are marked stale. If there is a bitmap available, the option is ignored. Options and Arguments recognizes the following options and arguments: copy_lv_path The block device path name of a logical volume that will be removed. master_lv_path The block device path name of a logical volume that will remain. Set automatic backup for this invocation of this command. autobackup can have one of the following values: Automatically back up configuration changes made to the logical volume. This is the default. After this command executes, the command (see vgcfgbackup(1M)) is executed for the volume group to which the logical volume belongs. Do not back up configuration changes this time. If there is no bitmap, do not synchronize the new mirrors in the master_lv_path after the merge. Using the option may affect data high availability as extents may remain stale. Use or to synchronize the mirrors. Shared Volume Group Considerations For volume group version 1.0 and 2.0, cannot be used if the volume group is activated in shared mode. For volume groups version 2.1 (or higher), can be performed when activated in either shared, exclusive, or standalone mode. Note that the daemon must be running on all the nodes sharing a volume group activated in shared mode. See lvmpud(1M). When a node wants to share the volume group, the user must first execute a if logical volumes were merged at the time the volume group was not activated on that node. LVM shared mode is currently only available in Serviceguard clusters. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified or is null, it defaults to "C" (see lang(5)). If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)). EXAMPLES
Merge with Data in will be overwritten by and will be removed. Merge with Data in will be overwritten by and will be removed. If the bitmap does not exist, then mark all extents associated with as stale and complete without resynchronizing. WARNINGS
does not check to guarantee that the allocation policy of master_lv_path is preserved after the merge. SEE ALSO
lvcreate(1M), lvextend(1M), lvmpud(1M), lvsplit(1M), lvsync(1M), vgsync(1M). Requires Optional HP MirrorDisk/UX Software lvmerge(1M)
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy