Upgrade disk in RAID 1


 
Thread Tools Search this Thread
Operating Systems Solaris Upgrade disk in RAID 1
# 1  
Old 07-08-2008
Upgrade boot disk in RAID 1


I need to upgrade 2 x 73 GB disk and replace with 2 x 146 GB disk in sun v240.

These disks contain boot and swap files

These are mirrored disks with RAID 1

I am trining to create the correct procedure.

So far the procedure I have is as follows:

# metastat

State: Okay

continue

# format
^C
view avialible disks

# cfgadm -al
Get the correct Ap_Id and check if configured

# metadb -i
#metadb -d -f cotodos7

check state database replicas and delete

# cfgadm -c unconfigure c1::dsk/c1t1d0
# cfgadm -al

verify device is unconfigured

# format
# ^C

confirm hard drive is no longer visible.
Safe to remove hard drive and replace with new one when
blue LED light comes on

# format
# ^C

disk is visible

# cfgadm -al
new disk is unconfigured

# format
Specify disk (enter its number): disk-number
fdisk
y or n (y is whole disk ; n create % partitions with 1. selected when prompted)\
format> label
format> yes
format> quit

IA: How to Create a Solaris fdisk Partition (System Administration Guide: Basic Administration)


# metadb -a -c 2 cotodos7
Adding two state database replicas

# cfgadm -c configure c0::dsk/c0t0d0
# cfgadm -al

confirm configured


The RAID 1 mirror should mirror the new disk and once finished repeat the procedure above
for the other disk (c0::dsk/c0t1d0) and wait for mirror to finish by checking metastat.

Last edited by photon; 07-09-2008 at 12:57 AM..
# 2  
Old 07-09-2008
flar create

Hi,
only two hints:

to copy the partition table from one to an other disk:
prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2


make the disks bootable:
/usr/sbin/installboot /usr/lib/fs/ufs/bootblk /dev/rdsk/c?t?d?s?

Br Joerg
# 3  
Old 07-09-2008
Hi,

Is the replacement of the two 72GB drives w/ two 146GB drives just
because you can get the drives quicker for replacement?

Because you dont use the additional added space from the step to 146GB drives, I can write a little how-to of doing that if you want..

In short :

-) Break the 2x72GB mirror by removing the second disk (c0t1d0)
-) Remove the drive and insert a 146GB drive
-) Copy (for now) the VTOC from disk1 (72GB) to disk2 (146GB) OR
create the needed existing partitions by hand and create a big (or two/three..) slice/partition to hold the additional ~65GB space
-) Create metadb replicas on the 146GB disk
-) Start mirror sync
-) When mirrored, break the mirror and remove the first (72GB) disk, V240 now runs from the 146GB disk in slot 2
-) Insert the other 146GB disk and copy the VTOC from disk2 like stated from jörg via prtvtoc , I always add the additional '-sh' arg to prtvtoc
prtvtoc -sh | fmthard -s -
-sh removes the human readable index and stuff , MAN page states that those arguments should be used when duplicating the VTOC from disk to disk
-) Create metaDBs on disk1 and mirror the disk
-) Create a filesystem on the new slice to use the additional space (of course on the metadevice)
-) D O N E

greets,
Christopher
# 4  
Old 07-10-2008
Thanks for replies. Smilie

Nice hints joerg.

This was absolutely needed in procedure

Quote:
to copy the partition table from one to an other disk:
prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2
but since disks are not identical I might do it manually, not sure yet.

Manually would be
# format
# partition
# print

get partition table from 73Gb drive

then with new 146Gb drive

# format
# partition
# (follow prompts etc.. to create partitions of 73Gb drive)

Quote:
make the disks bootable:
/usr/sbin/installboot /usr/lib/fs/ufs/bootblk /dev/rdsk/c?t?d?s?
It says in the man fmthard "adds boot information to the Solaris fdisk partition"
so I do not think hint 2 is needed and if you partition manually the volume
manager will recreate the boot, swap, and other partitions.

Quote:
Is the replacement of the two 72GB drives w/ two 146GB drives just
because you can get the drives quicker for replacement?
Yes, the drives have reached there max capacity and backups of company
critical info have not been done in a month, it seemed like the best choice but
I wonder if there would have been a better?

Quote:
Because you dont use the additional added space from the step to 146GB drives, I can write a little how-to of doing that if you want..
I think it would be best to partition the drive exactly as mirror of 73Gb for volume
manager to do its thing. When both drives are in sync with 146Gb drives then
partion new space with format -> partition and mount a new file system. If you have
a suggestion or idea, I would like to here it.
# 5  
Old 07-11-2008
Quote:
Quote:
to copy the partition table from one to an other disk:
prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2
but since disks are not identical I might do it manually, not sure yet.
I am pretty sure this should be used between same-geometry disks only.

And a hint: to step "0" - make a backup Smilie

Ooh, and what about the "metadevadm -u" after you swap drives?
This command updates mapping between so called "device ID" and cXtXdX identifier, and should be run (at least on Sol9) after disk replacements.
# 6  
Old 07-11-2008
Quote:
I am pretty sure this should be used between same-geometry disks only.
I agree, going to do it manually, safer.

Quote:
And a hint: to step "0" - make a backup
Yes, but since the problem is no backups can be made, we have decided to
shutdown the oracle database when there is least trafic at 1:00 am (mind
you this may take about 2 hours) then pull the old drive and keep that
as the only backup so if we plug it in again it will start the oracle with a
clean startup.

Quote:
Ooh, and what about the "metadevadm -u" after you swap drives?
Since I am using metadb -d (delete)
then metadb -a (attach) with new drive it should update database replica with new device id (mddb.cf file is updated with -a) but like it says in the metadevadm -u man "If the device ID has not changed this option does nothing", so it would do nothing probably but does not hurt to try it. The location of update would be in /etc/lvm/mddb.cf
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Patching on Raid 0 Disk

Dear All , We need to do patching on one Solaris Server , where we have raid 0 configured. What is the process to patch a Server if RAID 0 (Concat/Stripe) is there. Below is the sample output. # metadb flags first blk block count a m pc luo 16 ... (1 Reply)
Discussion started by: jegaraman
1 Replies

2. SuSE

/proc/mdstat and cciss not available, how to know your disk is raid

Im issuing a cat /proc/mdstat, dmraid -r, and finding a cciss, to know if my server is software raid and hardware raid. But all of them are missing. What is the other way to know, your disk are raid, your disks is sync, your disk are out of sync, your disk is failed, ASIDE LOOKING AT THEM... (0 Replies)
Discussion started by: invinzin21
0 Replies

3. AIX

SAN DISK raid level in AIX

Hello All, Our servers having emc clarion for the data disks. Is that possible to see those san disks raid level from AIX ? Am having AIX 6.1 and EMC clarion 5.5. Regards, Gowtham.G (3 Replies)
Discussion started by: gowthamakanthan
3 Replies

4. Solaris

Hardware RAID not recognize the new disk [Sun T6320]

We have hardware RAID configured on Sun-Blade-T6320 and one of the disk got failed. Hence we replaced the failed disk. But the hot swapped disk not recognized by RAID. Kindly help on fixing this issue. We have 2 LDOM configured on this server and this server running on single disk. #... (8 Replies)
Discussion started by: rock123
8 Replies

5. UNIX for Advanced & Expert Users

Identify failed disk in Linux RAID

Good Evening, 2 years ago, I set up an Ubuntu file-server for a friend, who is a photograph amateur. Basically, the server offers a software RAID-5 that can be accessed remotely from a MAC. Unfortunately, I didn't labeled the hard drives (i.e. which physical drive corresponds to the /dev/sdX... (2 Replies)
Discussion started by: Loic Domaigne
2 Replies

6. Ubuntu

Ubunutu 8.04.4 RAID 1 mirror replace disk

Hi, I have an Ubuntu system which I have an faulted mirror. I trying to replace the disk, but I'm stuck on that it boots and only showing GRUB GRUB ## ## End Default Options ## title Ubuntu 8.04.4 LTS, kernel 2.6.24-26-server root (hd0,0) kernel ... (0 Replies)
Discussion started by: jld
0 Replies

7. Solaris

Configuring RAID using single disk

Hi All, I have a SUN ENTERPRISE 3500 server with solaris 10 on it. I have already mirrored root partition.Now i need to mirror two more partitions with 25GB space. But i have only one disk having 70GB space.Total i have 7 disks but each one is of 18 GB only except one. Please find the output of... (2 Replies)
Discussion started by: Renjesh
2 Replies

8. Filesystems, Disks and Memory

Problem replace disk with RAID-5 volumes

Good morning, I have a problem replacing a disk with raid-5 volumes. An hardware error was occurred from a disk c9t3 so all slices were in maintenace. Every slice is part of a raid-5 volume. Any replica is present. Following Volume manager manual for replacing a disk, I have: - phisically... (0 Replies)
Discussion started by: bonovox
0 Replies

9. UNIX for Advanced & Expert Users

disk upgrade

Hi all, this s going to be my 1st time upgrading a disk.I need the ways or steps to migrate data from a 2gb disk to a 4gb disk which sits in the High Availability Disk Array Model 10.the os disk is the internal disk of the K200 system so i dont think i would be meddling around with that.what r... (1 Reply)
Discussion started by: giriplug
1 Replies

10. Filesystems, Disks and Memory

Creating a Mirror RAID With Existing Disk

Hi there, I'm not sure if this is possible, but here is what I'd like to do.. I have an existing 160GB drive in my Redhat 9.0 server that I would like to add an additional 160GB drive to and create a mirrored RAID of the first disk to the new disk. I would like to do this without having to... (2 Replies)
Discussion started by: sysera
2 Replies
Login or Register to Ask a Question