Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hdisk replacement steps

Status
Not open for further replies.

scient

IS-IT--Management
Oct 24, 2007
15
US
i have a problem with one hdisk in volume group , so we need to replace it with new one
but i want the same configuration like exact filesytem name, logical volume names..

the disk i have problem is with hdisk1
before this i take the TSM backup of whole filesystem

atlanta1/root: / > lspv -l hdisk1
hdiskpower53:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
loglv05 1 1 01..00..00..00 N/A
lv04 256 256 0..115..115..26..00 /db2

take the mapping file of logical volume
lslv -l lv04
then umount the filesystem
>>>>umount /db2
remove the LVs
>>>>>rmlv lv04
remove the disk from volume group
>>>>>reducevg hdisk1
remove the device from ODM
>>>>rmdev -dl hdisk1
after adding the new one
>>>>extendvg sanvg hdisk#
>>>>i need to run mklv right ??? to match the same old logical volume whats the syntax here ???????
then for file system, i need to do mkfs ...whats the syntax??????
>>>>>mkfs
then mount that file system
and do the old TSM data resotre to here ..

so can any one pls confirm these steps and tell those ????? syntax thing...

any help appreciated ..

thank you..
 
It doesn't look that you are mirroring this disk as you are only showing lspv of the disk so if you are sure that it wasn't mirrored (which i suppose you do) then what you did was ok!

You can use smitty lv to create your lv and then smitty fs to create your fs but if you still want to use the mklv and mkfs commands then try these:

/usr/sbin/mklv -y'lv04' -t'jfs2' sanvg 256 hdisk1

/usr/sbin/mkfs -V jfs2 /dev/lv04

you can use smitty crjfs2lvstd fast path (instead of mkfs) because it is straight foreward. Just use the same lv that you created above on the first field (Logical Volume Name) then type your file system name in the second field (Mount Point) and then you can set the third field to yes (Mount automatically on system restart) to add it to the /etc/filesystems and that's it

Note in the above i assumed you are using jfs2 file system. if you are using jfs then:

/usr/sbin/mklv -y'lv04' -t'jfs' sanvg 256 hdisk1

and

/usr/sbin/mkfs -V jfs /dev/lv04 (not sure about this coz i don't really use jfs any more!)

or

smitty crjfslvstd (for normal filesystems)

Regards,
Khalid
 
sorry try crfs instead of the mkfs:

crfs -v jfs -d(lv) -m(mount point) -A yes
Will create a file system on the whole of the logical volume, adds entry into
/etc/filesystems and will create mount point directory if it does not exist.
( use -v jfs2 for JFS2 filesystems )

for more info on the crfs command:


for more info on the mklv command:


and don't forget the TSM restore afterward!

note. i'm still not sure whether u are using the loglv05 in here so in case you needed to recreate this you can follow the smitty lv (remember to change the filesystem type to jfs2log or jfslog) and then you have to logform the created log file after this. But this is only when the above didn't work as it was relying on the loglv05!

Good luck.

Regards,
Khalid
 

Do you not have another slot for the new disk? If so it would be 10 times easier to just mirror it onto othe new disk...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top