- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- New disk and old vg's and lv's
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 12:53 AM
03-25-2004 12:53 AM
Disk2- vg01
Disk3- vg02
Disk 2 died. I edited the /etc/lvmrc to not auto activate vg's. The lvmtab is toast as well. I try to use SAM and it locks up when trying to look at anything dealing with disks. Disks 1 and 3 are still in their original slots on my D380. Slot 2 is empty.
Question 1: How do I activate/mount vg02 and it's lv's so that they can be used while waiting for a new disk?
Question 2: When I get the new disk and get it inserted will SAM recognize it right away and allow me to create new vg's and lv's? Or do I have to do some fancy command line stuff first?
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 12:56 AM
03-25-2004 12:56 AM
Re: New disk and old vg's and lv's
SAM should see the disk. You might want to take the oppurtunity to try some of the "fancy" command line things. It's not so hard and much more likely to work :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:00 AM
03-25-2004 01:00 AM
Re: New disk and old vg's and lv's
You insert a new disk and system will recognise it. Then you can create a vg and lvs.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:09 AM
03-25-2004 01:09 AM
Solution# vgchange -a y /dev/vg??
where the ?? are the numbers in the vg name, in your case 02.
Then just mount the stuff from vg02 out of /etc/fstab. If you want it to try to mount everything you can do a 'mount -a' as described above. Anything dealing with VG01 will fail though.
When you get the new disk and put it in the slot about the only you need to do is:
# vgcfgrestore -n vg01 /dev/dsk/c0t8d0
(I am guessing at the device file, but on my D380s the second slot from the top is almost always c0t8d0. If yours is different substitute the correct device file name.)
Once that is done your new disk should now be set like the original VG01 disk. To use it you can now do:
# vgchange -a y vg01
# mount -a
(This will now mount everything that failed with VG01 above).
See now that command line stuff isn't that "fancy" or that difficult is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2004 01:16 AM
03-25-2004 01:16 AM
Re: New disk and old vg's and lv's
# vgchange -a y vg02
# mount -a (and ignore the errors regarding vg01)
Answer 2:
You should not use SAM, I would recommend following steps:
First insert the new disk
# vgexport vg01
(that will remove all infos of vg02 on the system)
# ll /dev/*/group
(and check for free minor numbers)
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000 (if minor number 0x010000 is free)
# pvcreate [-f] /dev/rdsk/c... (to the new disk)
# vgcreate vg01 /dev/dsk/c...
# vgchange -a y vg01
# vgdisplay vg01
# lvcreate -n
# lvextend -L
# newfs -F vxfs /dev/vg01/r
Create as much lvols as you need. Then mount them to the existing mount_point and restore the datas by a backup.
Armin