- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: initialize the disk drive
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
Discussions
Forums
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
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
тАО07-24-2002 10:36 AM
тАО07-24-2002 10:36 AM
I want to install a new disk drive. My workstation is HP-UX
B.10.20.
Would someone please tell me how to initialize the disk drive?
Thanks a lot!
zhiyong
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 10:44 AM
тАО07-24-2002 10:44 AM
Re: initialize the disk drive
2. Plug in the new disk. If this is an external disk, you do not have to power down the disk array.
3. Power back up the server
4. Check new device file for the new disk:
#ioscan -funC disk
5. If not shown, try:
# ioscan -fnC disk
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 10:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 10:48 AM
тАО07-24-2002 10:48 AM
Re: initialize the disk drive
Once you have plugged / connected the disk to your system scsi channel (Make sure the scsi id of this disk is unique on that bus), if you have rebooted the system, the device files would have been generated automatically. Do a "ioscan -fnC disk" to see if the disk is sensed and the device file is seen. If the device file has not been generated, you can do so by running the command "insf -e" from the root prompt.
say the device file is /dev/dsk/cxdytz. First do a pvcreate on the disk,
pvcreate -f /dev/rdsk/cxtydz
Now create a vg using vgcreate or extend and existing vg to this disk using vgextend.
Refer to the hp manual "Managing Systems and Workgroups: A Guide for HP-UX System Administrators" for more help.
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 10:48 AM
тАО07-24-2002 10:48 AM
Re: initialize the disk drive
# /etc/diskinfo /dev/rdsk/c2t2d0
and if it shows the correct info especially the "size" as you expect it, then you're all set. Just use "pvcreate" to initialize the disk as a physical volume to be used in a volume group. For example ..
# pvcreate /dev/rdsk/c2t2d0
then continue with the rest of the steps ..
If you use SAM to create/extend a VG you don't even have to run "pvcreate".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 10:50 AM
тАО07-24-2002 10:50 AM
Re: initialize the disk drive
pvcreate -f /dev/rdsk/cxtydz
where x y and z are your particulars.
To put the disk in its own volume group, say vg01, you would use like:
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate -e 20000 /dev/vg01 /dev/dsk/cxtydz
With the volume group created, you will need to create a logical volume:
lvcreate -L MM -n u01 /dev/vg01
where MM is how many megs, u01 will be the name of the logical vol.
then create the file system:
newfs -F vxfs /dev/vg01/ru01
the filesystem can then be mounted:
mount /dev/vg01/u01 /u01
You would then also add a line in your /etc/fstab file to mount the filesystem on bootup.
You should read then man pages for pvcreate, vgcreate, lvcreate and newfs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 10:56 AM
тАО07-24-2002 10:56 AM
Re: initialize the disk drive
Pls take a look this doc: http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90053/B2355-90053_top.html&con=/hpux/onlinedocs/B2355-90053/00/00/25-con.html&toc=/hpux/onlinedocs/B2355-90053/00/00/25-toc.html&searchterms=a%7cnew%7cdisk%7cConfiguring&queryid=20020724-115452
Rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:00 AM
тАО07-24-2002 11:00 AM
Re: initialize the disk drive
Thanks a lot for fast reply!!
I check the "diskinfo /dev/rdsk/c1t4d0", but the size is 0 byte.
Even after I use pvcreate, I use "diskinfo /dev/rdsk/c1t4d0", the size is also o bytes.
Would someone tell me how to solve this problem?
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:16 AM
тАО07-24-2002 11:16 AM
Re: initialize the disk drive
diskinfo /dev/rdsk/cxtydz
hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 11:20 AM
тАО07-24-2002 11:20 AM
Re: initialize the disk drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 04:14 PM
тАО07-24-2002 04:14 PM
Re: initialize the disk drive
Thanks a lot for reply.
I fixed the problem by the sam. There is initialize the disk option in the sam. It is sdisk driver. But I do not how to use command to do this.
Is pvcreate used to initialize the disk drive.
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 04:25 PM
тАО07-24-2002 04:25 PM
Re: initialize the disk drive
Yes it is:
# /usr/sbin/pvcreate /dev/rdsk/c1t4d0
or to force it
# /usr/sbin/pvcreate -f /dev/rdsk/c1t4d0
HTH
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 04:39 PM
тАО07-24-2002 04:39 PM
Re: initialize the disk drive
Thanks for reply.
I totally understand.
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 05:06 PM
тАО07-24-2002 05:06 PM
Re: initialize the disk drive
#mediainit /dev/rdsk/c1t4d0
(mediainit initializes mass storage media by formatting the media, writing and reading test patterns to verify media integrity,then sparing any defective blocks found.)
If success, you can then make LVM.
-Live as you wish-
Gerald Zhou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2002 05:14 PM
тАО07-24-2002 05:14 PM
Re: initialize the disk drive
Thanks for help.I really appreciate it.
This command is realy help me to solve my problem.
zhiyong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2002 05:24 AM
тАО07-25-2002 05:24 AM
Re: initialize the disk drive
*Exactly* which type of disk drive was it (i.e. manufacturer/supplier, product number, etc.) and was it indeed a "new" disk or was it a disk which came from another system (If so, please some details about that system.)?
Also, is this a 'professional'/production/etc. system, or just some 'play' system?
Thanks.