Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
HP UX Disk and File System

HP UX Disk and File System

Ratings: (0)|Views: 2,138|Likes:
Published by sachinsharma10

More info:

Published by: sachinsharma10 on Sep 25, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, TXT or read online from Scribd
See more
See less


================================HP-UX: Disk and Filesystem tasks=================================> Search for attached diskioscan -fnC disk=> Initialize a disk for use with LVMpvcreate -f /dev/rdsk/c0t1d0=> Create the device structure needed for a new volume group.cd /devmkdir vgdatacd vgdatamknod group c 64 0x010000=> Create volume group vgdatavgcreate vgdata /dev/dsk/c0t1d0{ if your expecting to use more than 16 physical disks use the -poption, range from 1 to 256 disks. }=> Display volume group vgdatavgdisplay -v vg01=> Add another disk to volume grouppvcreate -f /dev/rdsk/c0t4d0vgextend vg01 /dev/dsk/c0t4d0=> Remove disk from volume groupvgreduce vg01 /dev/dsk/c0t4d0=> Create a 100 MB logical volume lvdatalvcreate -L 100 -n lvdata vgdatanewfs -F vxfs /dev/vgdata/rlvdata=> Extend logical volume to 200 MBlvextend -L 200 /dev/vgdata/lvdata=> Extend file system to 200 MB{ if you don't have Online JFS installed volumes must beunmounted before you can extend the file system. }fuser -ku /dev/vgdata/lvdata { kill allprocess that has open files on this volume. }umount /dev/vgdata/lvdata
extendfs /data{ for Online JFS, 200 MB / 4 MB = 50 LE; 50 x 1024 = 51200blocks }fsadm -F vxfs -b 51200 /data=> Set largefiles to support files greater than 2GBfsadm -F vxfs -o largefiles /data===========================================Exporting and Importing disks across system.===========================================1. make the volume group unavailablevgchange -a n /dev/vgdata2. Export the the disk while creating a logical volume map file.vgexport -v -m data_map vgdata3. Disconnect the drives and move to new system.4. Move the data_map file to the new system.5. On the new system recreate the volume group directorymkdir /dev/vgdatamknod /dev/vgdata/group c 64 0x020006. Import the disks to the new systemvgimport -v -m data_map /dev/vgdata /dev/dsk/c2t1d0/dev/dsk/c2t2d07. Enable the new volume groupvgchange -a y /dev/vgdata=========================Renaming a logical volume=========================/dev/vgdata/lvol1 -> /dev/vgdata/data_lvumount /dev/vgdata/lvol1ll /dev/vgdata/lvol1 take note ofthe minor ( e.g 0x010001 )brw-r----- 1 root root 64 0x010001 Dec 3117:59 lvol1mknod /dev/vgdata/data_lv b 64 0x010001 create new logical volumename

Activity (7)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Don Vorkin liked this
Derick Salve liked this
Carlo Banzuela liked this
irfanbeigh liked this
RamBml liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->