Sponsored Content
Full Discussion: copy failing disk to Spare
Top Forums UNIX for Dummies Questions & Answers copy failing disk to Spare Post 302371768 by rees_a on Monday 16th of November 2009 06:59:59 AM
Old 11-16-2009
copy failing disk to Spare

Hi Guys,

I have a failing 4gb (c0t5d0) drive that contains lvol4 -8 on hp-ux. It's not the boot disk but is part of VG00 volume group. Within that group, I have a disk (c0t4d0) of the same size that has 1 lvol on it for swap(4gb) I also have a seperate 1.5 gb swap volume on another physical disk

Can I remove the 4gb swap volume(lvol9) and then somehow copy the failing disk to the now empty swap disk. If this is possible, can you please help me with the order/commands I will need to perform this.

I'm assuming the following will work just need clarification -

goto Sam and remove the 4gb Swap volume from physical disk c0t4d0

copy from c0t5d0 to c0t4d0 using 'dd if=c0t5d0 of=c0t4d0

shut server down and phyisically swap c0t5d0 for a new drive,

change c0t4d0 to c0t5d0 physical address

then reboot

does this make sense?

I'm assuming the new empty physical disk will need to be c0t4d0. Will the system recognise that lvol4-8 are on the right disk?

Any help with this will be great as I don't want to lose any data
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help me with disk copy

I do not have a Unix machine, i do have a Linux machine.. i have a Unix boot disk that is essencial to my unit. Is there any way in Windows98 or Linux to make copies of this disk. So far i can't get either to read the disk. (1 Reply)
Discussion started by: deathsfriend
1 Replies

2. UNIX for Dummies Questions & Answers

Vfstab on spare disk - HOW ? Mount ?

Hi, guys ! Could someone clarify one thing for me: I start machine from disk0, and want to check the /etc/vfstab on disk1. How do i do it ? Tried to write: cd / mount /dev/dsk/c0t1d0s0 /mnt But if I do cd /mnt, it is empty. I expected to see disk1 there ? Or am I wrong ? How do I... (3 Replies)
Discussion started by: DGoubine
3 Replies

3. Filesystems, Disks and Memory

SCSI disk spare sectors

Is there a way to determine the number of available spare sectors on a disk ? as it may be useful for notifying a user to take a backup of the disk before it runs into a medium error. (6 Replies)
Discussion started by: rednex
6 Replies

4. Solaris

Solaris 10: how to copy whole disk?

Hi, i have problems with my system disk (os solaris 5.10) and i'm wondering if there is any way to copy the whole disk to a new one, without reinstalling everything (so to do a mirroring)?? thanks in advance (3 Replies)
Discussion started by: sprehodec
3 Replies

5. UNIX for Advanced & Expert Users

Failing to write retrieve script for tape to disk conversion

I have the below script which has been written to retrieve files from tape drive i.e. TSM server. Now i have to write the script using UNIX commands for retrieve operation but I am not able to proceed. The script is: #!/usr/local/bin/expect -f set timeout 1800 set file spawn $env(SHELL)... (0 Replies)
Discussion started by: hrsaurav
0 Replies

6. UNIX for Dummies Questions & Answers

What is in-core copy and disk-copy of i-node table?

I have found a question from the exercises of my study mat. The question is "Why are there a in-core copy and a disk-copy of i-node block and super block?" If any one know the proper answer then please send me..... (1 Reply)
Discussion started by: dearanik
1 Replies

7. UNIX for Dummies Questions & Answers

Help!! Failing HP-UX 11 system disk

Firstly, system setup - HP900 K460, 3 internal hard drives that make up the system volume group(vg00) no software mirroring HP-ux version 11.00 2 Nike 20 raid arrays attached, fully populated with 40 4gb hot swap drives(All used in production environment) I have 3 disks that make up my... (0 Replies)
Discussion started by: rees_a
0 Replies

8. AIX

IBM SAN STORAGE HOT SPARE DISK

Hello, I have DS4000 IBM SAN Storage ( aka FastT Storage ) One of my disks has failed and I had a hot spare disk covering all the arrays. As the disk failed, immediately the hotspare disk took over the failed disk ( see the JPEG in the attachment ) My Question: How can I make the hotspare... (1 Reply)
Discussion started by: filosophizer
1 Replies

9. Solaris

Use 'dd' to copy boot disk to larger target disk

Hi, I'm looking to copy a boot disk on an old Solaris 8 system using dd. I'll bring the system down to single user mode and begin from there. I'm copying my source disk to a larger target disk. Do I need to do anything other than the 'dd' command below because the target disk is bigger? ... (2 Replies)
Discussion started by: sparcman
2 Replies

10. AIX

Failing to add new NetApp disk AIX 7.1 - but no error

Hello, AIX 7.1 - several NetApp disks already running. Trying to install a new one. Storage folks provision it. I run cfgmgr - nothing. no new disks show up in "lsdev", "sanlun lun show" shows no new device. No errors, just nothing. Storage guys disconnect it and attaches to another aix server -... (5 Replies)
Discussion started by: sid
5 Replies
volencap(8)						      System Manager's Manual						       volencap(8)

NAME
volencap, volreconfig - Encapsulates disks, partitions, or AdvFS domains SYNOPSIS
/usr/sbin/volencap [-g diskgroup] [-p volprefix] [privlen=nn] [nconfig=nn] { diskname | partition_name | domain_name }... /usr/sbin/volencap -k { diskname | partition_name | domain_name }... /usr/sbin/volencap -k -a /usr/sbin/volencap -s /sbin/volreconfig OPTIONS
Puts the encapsulated disk into the disk group specified by disk group ID or disk group name. Instructs volencap to use the specified vol- prefix as the prefix for LSM volume names generated. This is useful if the LSM volume names generated already exist. Instructs volencap to remove any pending encapsulation requests for the specified disk(s), partition(s), or domain(s). Instructs volencap to remove all pending encapsulation requests. Displays all pending encapsulation requests. DESCRIPTION
Disk partitions that have data can be added to LSM using the encapsulation process. This enables users with existing data in disk parti- tions to easily migrate to the use of LSM volumes instead of disk partitions. The /usr/sbin/volencap command is used to encapsulate one or many disk partitions or AdvFS domains. If an individual partition is specified for encapsulation, the volencap command creates a nopriv disk and a volume for that partition. If an entire disk is specified, the volencap command creates a nopriv disk and volume for each in-use partition on the disk. If an AdvFS domain is specified, all disk partitions in the domain are converted to LSM volumes. You can use the volencap command to encapsulate the partitions on the boot disk, including the root file system, primary swap, usr and var partitions, to place them under LSM control. See the Logical Storage Manager manual for more information on encapsulating these partitions. The volencap command can be run directly or through the voldiskadm menus. The volencap command generates LSM commands that are later exe- cuted by the /sbin/volreconfig command to perform the actual conversion of disk partitions to LSM volumes. If the disk partition contains a mounted file system or is otherwise open or in use, the volreconfig command will reboot the system to com- plete the encapsulation process. If you cannot reboot the system at the time you encapsulate the disk partition, either defer running the volreconfig command until you can reboot the system, or unmount or close the disk partition, then run the volreconfig command. See the Logical Storage Manager manual for more details. ATTRIBUTES
Specifies the size of the LSM private region in bytes, for example, privlen=1024. Specifies the number of log copies and copies of the configuration database, for example, nconfig=0. EXAMPLES
To encapsulate all disk partitions on the boot disk called dsk0 to LSM volumes, enter: # volencap dsk0 # volreconfig The volreconfig command will request confirmation prior to rebooting the system. The LSM command scripts created by the volencap command will execute as the system reboots. To encapsulate only the root file system (dsk0a) and swap (dsk0b) partitions on the boot disk, enter: # volencap dsk0a dsk0b # volreconfig The volreconfig command will request confirmation prior to rebooting the system. The LSM command scripts created by the volencap command will execute as the system reboots. To convert all disk partitions in the AdvFS domain called dom1 to LSM volumes, enter: # volencap dom1 # volreconfig The volreconfig command will determine if the domain is active, and if so, request confirmation prior to rebooting the system. The LSM command scripts created by the volencap command will execute as the system reboots. If the AdvFS filesets in domain dom1 are not mounted, then /sbin/volreconfig can be executed on the command line. To encapsulate the specific partition dsk1g to an LSM volume, enter: # volencap dsk1g # volreconfig The volreconfig command will determine if the partition is open, and if so, request confirmation prior to rebooting the system. The LSM command scripts created by the volencap command will be executed as the system reboots. SEE ALSO
volintro(8) volencap(8)
All times are GMT -4. The time now is 03:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy