HP-UX how formating LUN disk


 
Thread Tools Search this Thread
Operating Systems HP-UX HP-UX how formating LUN disk
# 1  
Old 09-08-2015
HP HP-UX how formating LUN disk

Hello folks,

I have Hp.ux 11.31 and I need know how formating in OS new LUN disk attach to system

e.g. the wwid:

Code:
# scsimgr lun_map -D /dev/rdisk/disk4

        LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk4

Total number of LUN paths     = 2
World Wide Identifier(WWID)    = 0x60060e80056541000000654100000000

LUN path : lunpath8
Class                         = lunpath
Instance                      = 8
Hardware path                 = 0/3/0/0/0/0.0x50060e8005654100.0x4003000000000000
SCSI transport protocol       = fibre_channel
State                         = ACTIVE
Last Open or Close state      = ACTIVE

LUN path : lunpath7
Class                         = lunpath
Instance                      = 7
Hardware path                 = 0/3/0/0/0/1.0x50060e8005654110.0x4003000000000000
SCSI transport protocol       = fibre_channel
State                         = ACTIVE
Last Open or Close state      = ACTIVE

like format this LUN 0x60060e80056541000000654100000000 for erase all information,

and later create traditional file system,

thanks you,

Last edited by vbe; 09-08-2015 at 04:51 PM.. Reason: code tags not icode please
# 2  
Old 09-09-2015
It depends what you want to do with it. You can choose to use it as either a simple disk, slice it and use it; or you can add it to a volume group and then use LVM to help manage it, which is far more flexible.

Can you show us the output from:-
Code:
bdf
ioscan -fnC disk
vgdisplay -v             # might be quite large

I would generally suggest adding the LUN to a volume group, then creating or extending logical volumes and filesystems to suit your needs. What plans do you have for the space?



Kind regards,
Robin
# 3  
Old 09-09-2015
No need to delete the data.

If you are not using LVM, a simple newfs command will create filesystem, then you mount it and use it as you see fit.

If you are using LVM, simple do a pvcreate on it, and create a new VG or expand existing.
In case the disk has formerly been used as a HPUX LVM volume the pvcreate command will notify you that it belongs to a volume group. If you are sure it is not actually used, you can use pvcreate -f to force the creation.

If you actually require to delete the data, you can use dd and fill it up with zeros (but i fail to see the point in doing so).
This User Gave Thanks to Peasant For This Post:
# 4  
Old 09-09-2015
thanks you explain
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

File formating help

Hi all, I am having the file below I need that as below Thanks, Arun (12 Replies)
Discussion started by: arunkumar_mca
12 Replies

2. UNIX for Dummies Questions & Answers

Which disk is LUN?

how do I know which hdisk from "lsdev -Cc disk" is my LUN on NetApp after zoning from SAN switch? is it "MPIO other FC SCSI Disk Drive"? (1 Reply)
Discussion started by: malayo
1 Replies

3. UNIX for Dummies Questions & Answers

Help with formating when using mailx

Hi I am a newbie here. I tried searching for the solution but I guess I either didn't find it or there hasn't been one posted. my problem is I spooled the results of a query into a .txt file. When I cat the file the formating looks great. All the columns are aligned. However once I mailx the... (2 Replies)
Discussion started by: RB26DETT
2 Replies

4. HP-UX

Disk file and Lun Number

HI all, I am confused when I am seeing the output of bdf command ioscan -fnC disk, there is no same files which i have seen in bdf output and ioscan output...One volume was mounted in one folder called /teldb and device file path was /dev/disk/disk48. The same i didnt found in ioscan disk... (6 Replies)
Discussion started by: selvaforum
6 Replies

5. Shell Programming and Scripting

Formating output

Hello Team i have a file with following data (as columns). I need implement a syntax like below for altering table ALTER TABLE1 TABLENAME ADD COLUMN COL1 CHAR(5) NOT NULL WITH DEFAULT ADD COLUMN COL2 CHAR(5) .. .. ADD COLUMN COLn CHAR(5) NOT NULL... (1 Reply)
Discussion started by: rocking77
1 Replies

6. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

7. AIX

Problem mapping LUN disk from VIOS to the LPAR

Hello guys, It would be so nice of you if someone can provide me with these informations. 1) My SAN group assigned 51G of LUN space to the VIO server.I ran cfgdev to discover the newly added LUN. Unfortunately most of the disks that are in VIO server is 51G. How would I know which is the newly... (3 Replies)
Discussion started by: solaix14
3 Replies

8. Solaris

command to scan Enterprise storage Lun disk in Solaris

I just installed IBMsdd on Solaris diver along with the patches recommended. I also installed 2 - 2Gigs qlogic fiber cards & the corresponding pkges for the cards. What command can I use to scan this LUN disks from my Soalris servers. Solaris doen't seem to be seeing this disks presented on it.... (2 Replies)
Discussion started by: Remi
2 Replies

9. UNIX for Advanced & Expert Users

VxVM disk/lun grow

hi, i have a volume on a LUN of an EMC-storage and i need to increase the size. i could increase the size of the LUN on the EMC, i could increase the size of the disk for solaris, but how can i tell the veritas volume manager that the disk is larger now? what i've done: 1. LUN on EMC 2.... (3 Replies)
Discussion started by: pressy
3 Replies

10. UNIX for Dummies Questions & Answers

Disk formating

i have to repartition some of my filesystems ... I have just one HDD .... df -k gives this :- Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 830107 45532 726468 6% / /dev/dsk/c0t0d0s1 1987399 785728 1142050 41% /usr /proc ... (1 Reply)
Discussion started by: DPAI
1 Replies
Login or Register to Ask a Question