Вы находитесь на странице: 1из 32

The statvfs structure contains the following members:

f_bsize; => preferred file system block size


f_frsize; => fundamental file system block size
f_blocks; => total blocks of f_frsize on file system
f_bfree; => free blocks
f_bavail; => blocks available to non-superusers or users without the
LIMIT privilege
f_files; => total file nodes in file system
f_ffree; => free file nodes in file system
f_favail; => file nodes available to non-superusers or users without
the LIMIT privilege

f_size; => file system size


f_fsid; => file system ID for file system
f_namemax => maximum file name length

char f_basetype[FSTYPSZ]; /* file system type name is */


/* null-terminated */
ulong f_flag; /* bit mask of flags */

char f_fstr[32]; /* file system specific string */

# bdf -i
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg00/lvol3 1613824 519896 1085408 32% 2500 34172 7% /
/dev/vg00/lvol1 1835008 322600 1500696 18% 652 47252 1% /stand
/dev/vg00/lvol8 7143424 2178440 4928072 31% 37072 155152 19% /var
/dev/vg00/lvol7 7995392 3411928 4547776 43% 28762 143206 17% /usr
/dev/vg00/lvol4 524288 20816 499544 4% 27 15717 0% /tmp
/dev/vg00/lvol6 10780672 6025664 4717896 56% 65924 148572 31% /opt
/dev/vg00/lvol5 106496 5872 99960 6% 64 3136 2% /home
/dev/vg20/lvdepot 15360000 7819059 7069639 53% 5 1885235 0% /vol20
172.16.7.85:/ISO 39321600 15248405 22568627 40% 8 6018296 0% /mnt
/dev/fspd1 7797770 7797770 0 100% -1 0 100% /iso_img
/dev/vg08/demo 512000 2261 477888 0% 4 127432 0% /oracle
#
#
#
#
#
#
# mkfs -F vxfs -m /dev/vg00/lvol3
mkfs -F vxfs -o
ninode=unlimited,bsize=8192,version=6,inosize=256,logsize=2048,largefiles
/dev/vg00/lvol3 1613824
#

# ls
f1 f2 file1 file2 kuldeep
# ll -i file1
61 -rw-r--r-- 2 root sys 11 May 10 04:58 file1
# ll -i
total 64
61 -rw-r--r-- 2 root sys 11 May 10 04:58 f1
63 lrwxr-xr-x 1 root sys 19 May 10 05:18 f2 ->
/home/kuldeep/file2
61 -rw-r--r-- 2 root sys 11 May 10 04:58 file1
62 -rw-r--r-- 1 root sys 11 May 10 05:18 file2
60 -rw-r--r-- 1 root sys 24 May 10 04:56 kuldeep

# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1613824 519896 1085408 32% /
/dev/vg00/lvol1 1835008 322600 1500696 18% /stand
/dev/vg00/lvol8 7143424 2178424 4928096 31% /var
/dev/vg00/lvol7 7995392 3411928 4547776 43% /usr
/dev/vg00/lvol4 524288 20816 499544 4% /tmp
/dev/vg00/lvol6 10780672 6025664 4717896 56% /opt
/dev/vg00/lvol5 106496 5872 99960 6% /home
/dev/vg20/lvdepot 15360000 7819059 7069639 53% /vol20
172.16.7.85:/ISO 39321600 15248405 22568627 40% /mnt
/dev/fspd1 7797770 7797770 0 100% /iso_img
/dev/vg08/demo 512000 2261 477888 0% /oracle

# ls
f1 file1 file2 kuldeep
# ln -s /home/kuldeep/file2 /home/kuldeep/f2
# ll -i
total 64
61 -rw-r--r-- 2 root sys 11 May 10 04:58 f1
63 lrwxr-xr-x 1 root sys 19 May 10 05:18 f2 ->
/home/kuldeep/file2
61 -rw-r--r-- 2 root sys 11 May 10 04:58 file1
62 -rw-r--r-- 1 root sys 11 May 10 05:18 file2
60 -rw-r--r-- 1 root sys 24 May 10 04:56 kuldeep

# lvmadm -t
--- LVM Limits ---
VG Version 1.0
Max VG Size (Tbytes) 510
Max LV Size (Tbytes) 16
Max PV Size (Tbytes) 2
Max VGs 256
Max LVs 255
Max PVs 255
Max Mirrors 2
Max Stripes 255
Max Stripe Size (Kbytes) 32768
Max LXs per LV 65535
Max PXs per PV 65535
Max Extent Size (Mbytes) 256

VG Version 2.0
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 512
Max LVs 511
Max PVs 511
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256

VG Version 2.1
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 2048
Max LVs 2047
Max PVs 2048
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256

VG Version 2.2
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 2048
Max LVs 2047
Max PVs 2048
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256
Min Unshare unit(Kbytes) 512
Max Unshare unit(Kbytes) 4096
Max Snapshots per LV 255

# ioscan -fnNC disk /*listing all disk class devices


and their persistent DSFs*/
Class I H/W Path Driver S/W State H/W Type Description
===================================================================================
===============
disk 4 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk4 /dev/disk/disk4_p2 /dev/rdisk/disk4
/dev/rdisk/disk4_p2
/dev/disk/disk4_p1 /dev/disk/disk4_p3 /dev/rdisk/disk4_p1
/dev/rdisk/disk4_p3
disk 7 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk7 /dev/rdisk/disk7
disk 8 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk8 /dev/rdisk/disk8
disk 9 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk9 /dev/disk/disk9_p2 /dev/rdisk/disk9
/dev/rdisk/disk9_p2
/dev/disk/disk9_p1 /dev/disk/disk9_p3 /dev/rdisk/disk9_p1
/dev/rdisk/disk9_p3
disk 11 64000/0xfa00/0xc esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk11 /dev/rdisk/disk11
disk 12 64000/0xfa00/0xd esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk12 /dev/rdisk/disk12
#

# lvmadm -l
--- Version 1.0 volume groups ---
VG Name /dev/vg00
PV Name /dev/disk/disk4_p2

VG Name /dev/vg05
PV Name /dev/dsk/c0t2d0

VG Name /dev/vg20
PV Name /dev/dsk/c0t5d0

--- Version 2.0 volume groups ---


VG Name /dev/vg08
PV Name /dev/disk/disk11

## diskinfo /dev/rdisk/disk4
SCSI describe of /dev/rdisk/disk4:
vendor: HP
product id: Virtual LvDisk
type: direct access
size: 37748736 Kbytes
bytes per sector: 512

===================================================================================
=============================================================================
part-1

1.1

# ioscan -kfnNC disk


Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x5 esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk4 /dev/disk/disk4_p2 /dev/rdisk/disk4
/dev/rdisk/disk4_p2
/dev/disk/disk4_p1 /dev/disk/disk4_p3 /dev/rdisk/disk4_p1
/dev/rdisk/disk4_p3
disk 7 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk7 /dev/rdisk/disk7
disk 8 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk8 /dev/rdisk/disk8
disk 9 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk9 /dev/disk/disk9_p2 /dev/rdisk/disk9
/dev/rdisk/disk9_p2
/dev/disk/disk9_p1 /dev/disk/disk9_p3 /dev/rdisk/disk9_p1
/dev/rdisk/disk9_p3
disk 11 64000/0xfa00/0xc esdisk CLAIMED DEVICE HP Virtual
LvDisk
/dev/disk/disk11 /dev/rdisk/disk11
disk 12 64000/0xfa00/0xd esdisk CLAIMED DEVICE HP Virtual
LvDisk //this is free physcial disk
/dev/disk/disk12 /dev/rdisk/disk12

1.2

# lvmadm -l
--- Version 1.0 volume groups ---
VG Name /dev/vg00
PV Name /dev/disk/disk4_p2 //this physical disk is already
used by vg00

VG Name /dev/vg05
PV Name /dev/dsk/c0t2d0 //this physical disk is already
used by vg05

VG Name /dev/vg20
PV Name /dev/dsk/c0t5d0 //this physical disk is already
used by vg20

--- Version 2.0 volume groups ---


VG Name /dev/vg08
PV Name /dev/disk/disk11 //this physical disk is already
used by vg08

1.3

# diskinfo /dev/
# diskinfo /dev/rdisk/disk12 //disk12 is selected for pv
SCSI describe of /dev/rdisk/disk12:
vendor: HP
product id: Virtual LvDisk
type: direct access
size: 1048576 Kbytes
bytes per sector: 512

===================================================================================
===========================================================================
Part2

2.1

# lvmadm -t
--- LVM Limits ---
VG Version 1.0
Max VG Size (Tbytes) 510
Max LV Size (Tbytes) 16
Max PV Size (Tbytes) 2
Max VGs 256
Max LVs 255
Max PVs 255
Max Mirrors 2
Max Stripes 255
Max Stripe Size (Kbytes) 32768
Max LXs per LV 65535
Max PXs per PV 65535
Max Extent Size (Mbytes) 256

VG Version 2.0
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 512
Max LVs 511
Max PVs 511
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256

VG Version 2.1
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 2048
Max LVs 2047
Max PVs 2048
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256

VG Version 2.2
Max VG Size (Tbytes) 2048
Max LV Size (Tbytes) 256
Max PV Size (Tbytes) 16
Max VGs 2048
Max LVs 2047
Max PVs 2048
Max Mirrors 5
Max Stripes 511
Max Stripe Size (Kbytes) 262144
Max LXs per LV 33554432
Max PXs per PV 16777216
Max Extent Size (Mbytes) 256
Min Unshare unit(Kbytes) 512
Max Unshare unit(Kbytes) 4096
Max Snapshots per LV 255

2.2
# pvcreate /dev/rdisk/disk12
Physical volume "/dev/rdisk/disk12" has been successfully created.

2.3

# pvdisplay /dev/disk/disk12
error: you can't pvdisplay a disk until it is a member of a volume group

2.4

# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgcreate vg01 /dev/disk/disk12
Volume group "/dev/vg01" has been successfully created.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf

2.5

# vgdisplay -v vg01 | more


--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 255
Alloc PE 0
Free PE 255
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 65024m
VG Max Extents 16256

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 255
Free PE 255
Autoswitch On
Proactive Polling On

# pvdisplay /dev/disk/disk12
--- Physical volumes ---
PV Name /dev/disk/disk12
VG Name /dev/vg01
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 255
Free PE 255
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On

2.6

# lvcreate -L 24 -n cadvol vg01


Logical volume "/dev/vg01/cadvol" has been successfully created with
character device "/dev/vg01/rcadvol".
Logical volume "/dev/vg01/cadvol" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
#
#
# lvcreate -L 24 -n camvol vg01
Logical volume "/dev/vg01/camvol" has been successfully created with
character device "/dev/vg01/rcamvol".
Logical volume "/dev/vg01/camvol" has been successfully extended.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
#

2.7

# vgdisplay -v | more
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4505
VGDA 2
PE Size (Mbytes) 8
Total PE 4495
Alloc PE 4182
Free PE 313
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 576640m
VG Max Extents 72080

--- Logical volumes ---


LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 224
Allocated PE 224
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 512
Allocated PE 512
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1576
Current LE 197
Allocated PE 197
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 104
Current LE 13
Allocated PE 13
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 104
Current LE 13
Allocated PE 13
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 10528
Current LE 1316
Allocated PE 1316
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7808
Current LE 976
Allocated PE 976
Used PV 1
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 6976
Current LE 872
Allocated PE 872
Used PV 1

LV Name /dev/vg00/lvpy
LV Status available/syncd
LV Size (Mbytes) 40
Current LE 5
Allocated PE 5
Used PV 1

LV Name /dev/vg00/lvpy00
LV Status available/syncd
LV Size (Mbytes) 24
Current LE 3
Allocated PE 3
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk4_p2
PV Status available
Total PE 4495
Free PE 313
Autoswitch On
Proactive Polling On

VG Name /dev/vg05
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1024
VGDA 2
PE Size (Mbytes) 4
Total PE 255
Alloc PE 0
Free PE 255
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 64g
VG Max Extents 16384

--- Physical volumes ---


PV Name /dev/dsk/c0t2d0
PV Status available
Total PE 255
Free PE 255
Autoswitch On
Proactive Polling On

VG Name /dev/vg20
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 9215
VGDA 2
PE Size (Mbytes) 4
Total PE 9215
Alloc PE 3750
Free PE 5465
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 589760m
VG Max Extents 147440

--- Logical volumes ---


LV Name /dev/vg20/lvdepot
LV Status available/syncd
LV Size (Mbytes) 15000
Current LE 3750
Allocated PE 3750
Used PV 1

--- Physical volumes ---


PV Name /dev/dsk/c0t5d0
PV Status available
Total PE 9215
Free PE 5465
Autoswitch On
Proactive Polling On

VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1016
VGDA 2
PE Size (Mbytes) 4
Total PE 255
Alloc PE 12
Free PE 243
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 65024m
VG Max Extents 16256

--- Logical volumes ---


LV Name /dev/vg01/cadvol
LV Status available/syncd
LV Size (Mbytes) 24
Current LE 6
Allocated PE 6
Used PV 1

LV Name /dev/vg01/camvol
LV Status available/syncd
LV Size (Mbytes) 24
Current LE 6
Allocated PE 6
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 255
Free PE 243
Autoswitch On
Proactive Polling On

--- Volume groups ---


VG Name /dev/vg08
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 2
Open LV 2
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 138
Free PE 114
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Logical volumes ---


LV Name /dev/vg08/demo
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vg08/lvpy
LV Status available/syncd
LV Size (Mbytes) 52
Current LE 13
Allocated PE 13
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk11
PV Status available
Total PE 252
Free PE 114
Autoswitch On
Proactive Polling On

# lvdisplay -v /dev/vg01/cadvol
--- Logical volumes ---
LV Name /dev/vg01/cadvol
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24
Current LE 6
Allocated PE 6
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---


PV Name LE on PV PE on PV
/dev/disk/disk12 6 6

--- Logical extents ---


LE PV1 PE1 Status 1
00000 /dev/disk/disk12 00000 current
00001 /dev/disk/disk12 00001 current
00002 /dev/disk/disk12 00002 current
00003 /dev/disk/disk12 00003 current
00004 /dev/disk/disk12 00004 current
00005 /dev/disk/disk12 00005 current

# lvdisplay -v /dev/vg01/camvol
--- Logical volumes ---
LV Name /dev/vg01/camvol
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 24
Current LE 6
Allocated PE 6
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---


PV Name LE on PV PE on PV
/dev/disk/disk12 6 6

--- Logical extents ---


LE PV1 PE1 Status 1
00000 /dev/disk/disk12 00006 current
00001 /dev/disk/disk12 00007 current
00002 /dev/disk/disk12 00008 current
00003 /dev/disk/disk12 00009 current
00004 /dev/disk/disk12 00010 current
00005 /dev/disk/disk12 00011 current

2.8

# ll /dev/vg01
total 0
brw-r----- 1 root sys 64 0x010001 May 10 06:40 cadvol
brw-r----- 1 root sys 64 0x010002 May 10 06:40 camvol
crw-r--r-- 1 root sys 64 0x010000 May 10 06:36 group
crw-r----- 1 root sys 64 0x010001 May 10 06:40 rcadvol
crw-r----- 1 root sys 64 0x010002 May 10 06:40 rcamvol

2.9

# vgchange -a n vg01
Volume group "vg01" has been successfully changed.
# vgexport vg01
vgexport: Volume group "vg01" has been successfully removed.

2.10

# vgdisplay vg01
vgdisplay: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab" file.
vgdisplay: Volume group "/dev/vg01" does not exist in the "/etc/lvmtab_p" file.
vgdisplay: Cannot display volume group "vg01".

===================================================================================
=================================================================================

part3
3.1

# pvcreate /dev/rdisk/disk12
pvcreate: The physical volume already belongs to a volume group
#

# pvcreate -f /dev/rdisk/disk12
Physical volume "/dev/rdisk/disk12" has been successfully created.

3.2

# vgcreate -V 2.0 -S 1t -s 4 vg08 /dev/disk/disk12


vgcreate: Volume group "/dev/vg08" already exists in the "/etc/lvmtab_p" file.

# pvdisplay /dev/disk/disk12
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/disk/disk12" belongs.
pvdisplay: Cannot display physical volume "/dev/disk/disk12".

# vgcreate -V 2.0 -S 1t -s 4 vg10 /dev/disk/disk12 /*used vg10


as vg08 already occupied
Volume group "/dev/vg10" has been successfully created.
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf

# pvdisplay /dev/disk/disk12
--- Physical volumes ---
PV Name /dev/disk/disk12
VG Name /dev/vg10
PV Status available
Allocatable yes
VGDA 2
Cur LV 0
PE Size (Mbytes) 4
Total PE 252
Free PE 252
Allocated PE 0
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On

## vgdisplay -v vg10
--- Volume groups ---
VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 0
Open LV 0
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 0
Free PE 252
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 252
Free PE 252
Autoswitch On
Proactive Polling On

3.3

# lvcreate -n testvol vg10


Logical volume "/dev/vg10/testvol" has been successfully created with
character device "/dev/vg10/rtestvol".
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf

# vgdisplay -v vg10
--- Volume groups ---
VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 1
Open LV 1
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 0
Free PE 252
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Logical volumes ---


LV Name /dev/vg10/testvol
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 252
Free PE 252
Autoswitch On
Proactive Polling On

3.4

# lvcreate -L 12 vg10
Logical volume "/dev/vg10/lvol2" has been successfully created with
character device "/dev/vg10/rlvol2".
Logical volume "/dev/vg10/lvol2" has been successfully extended.
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf
#
#
# lvcreate -L 16 vg10
Logical volume "/dev/vg10/lvol3" has been successfully created with
character device "/dev/vg10/rlvol3".
Logical volume "/dev/vg10/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf
#
#
#

# vgdisplay -v vg10
--- Volume groups ---
VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 3
Open LV 3
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 7
Free PE 245
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Logical volumes ---


LV Name /dev/vg10/testvol
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0

LV Name /dev/vg10/lvol2
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vg10/lvol3
LV Status available/syncd
LV Size (Mbytes) 16
Current LE 4
Allocated PE 4
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 252
Free PE 245
Autoswitch On
Proactive Polling On

3.5

## lvcreate -L 11 -n test2vol vg10


Warning: rounding up logical volume size to extent boundary at size "12" MB.
Logical volume "/dev/vg10/test2vol" has been successfully created with
character device "/dev/vg10/rtest2vol".
Logical volume "/dev/vg10/test2vol" has been successfully extended.
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf

# vgdisplay -v vg10
--- Volume groups ---
VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 4
Open LV 4
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 10
Free PE 242
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Logical volumes ---


LV Name /dev/vg10/testvol
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0

LV Name /dev/vg10/lvol2
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vg10/lvol3
LV Status available/syncd
LV Size (Mbytes) 16
Current LE 4
Allocated PE 4
Used PV 1

LV Name /dev/vg10/test2vol
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 252
Free PE 242
Autoswitch On
Proactive Polling On

3.6

## lvcreate -l 12 -n test3vol vg10


Logical volume "/dev/vg10/test3vol" has been successfully created with
character device "/dev/vg10/rtest3vol".
Logical volume "/dev/vg10/test3vol" has been successfully extended.
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf
#
#
#
# lvcreate -L 12 -n test4vol vg10
Logical volume "/dev/vg10/test4vol" has been successfully created with
character device "/dev/vg10/rtest4vol".
Logical volume "/dev/vg10/test4vol" has been successfully extended.
Volume Group configuration for /dev/vg10 has been saved in /etc/lvmconf/vg10.conf
#

# vgdisplay -v vg10 |more


--- Volume groups ---
VG Name /dev/vg10
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 6
Open LV 6
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 25
Free PE 227
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Logical volumes ---


LV Name /dev/vg10/testvol
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0

LV Name /dev/vg10/lvol2
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vg10/lvol3
LV Status available/syncd
LV Size (Mbytes) 16
Current LE 4
Allocated PE 4
Used PV 1

LV Name /dev/vg10/test2vol
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vg10/test3vol
LV Status available/syncd
LV Size (Mbytes) 48
Current LE 12
Allocated PE 12
Used PV 1

LV Name /dev/vg10/test4vol
LV Status available/syncd
LV Size (Mbytes) 12
Current LE 3
Allocated PE 3
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk12
PV Status available
Total PE 252
Free PE 227
Autoswitch On
Proactive Polling On

3.7

## vgchange -a n vg10
Volume group "vg10" has been successfully changed.
# vgexport vg10
vgexport: Volume group "vg10" has been successfully removed.
#

===================================================================================
==============================================

Module8

step 1

# lvcreate -L 16 -n datavol vg20


Logical volume "/dev/vg20/datavol" has been successfully created with
character device "/dev/vg20/rdatavol".
Logical volume "/dev/vg20/datavol" has been successfully extended.
Volume Group configuration for /dev/vg20 has been saved in /etc/lvmconf/vg20.conf
#

step2

# newfs /dev/vg20/rdatavol
newfs: /etc/default/fs is used for determining the file system type
version 7 layout
16384 sectors, 16384 blocks of size 1024, log size 1024 blocks
largefiles supported

step3

# mkdir /data2
# mount /dev/vg20/datavol /data2

===================================================================================
===============================================

# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
/dev/vg20/datavol on /data2 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030002 on Wed May 10
07:17:31 2017
#

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1613824 521440 1083872 32% /
/dev/vg00/lvol1 1835008 322600 1500696 18% /stand
/dev/vg00/lvol8 7143424 2178472 4928048 31% /var
/dev/vg00/lvol7 7995392 3411928 4547776 43% /usr
/dev/vg00/lvol4 524288 20816 499544 4% /tmp
/dev/vg00/lvol6 10780672 6025664 4717896 56% /opt
/dev/vg00/lvol5 106496 5888 99944 6% /home
/dev/vg20/lvdepot 15360000 7819059 7069639 53% /vol20
172.16.7.85:/ISO 39321600 15248405 22568627 40% /mnt
/dev/fspd1 7797770 7797770 0 100% /iso_img
/dev/vg08/demo 512000 2261 477888 0% /oracle
/dev/vg20/datavol 16384 2141 13360 14% /data2

===================================================================================
============================================

# vgdisplay -v vg08
--- Volume groups ---
VG Name /dev/vg08
VG Write Access read/write
VG Status available
Max LV 511
Cur LV 2
Open LV 2
Max PV 511
Cur PV 1
Act PV 1
Max PE per PV 262144
VGDA 2
PE Size (Mbytes) 4
Total PE 252
Alloc PE 138
Free PE 114
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 2.0
VG Max Size 1t
VG Max Extents 262144

--- Logical volumes ---


LV Name /dev/vg08/demo
LV Status available/syncd
LV Size (Mbytes) 500
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vg08/lvpy
LV Status available/syncd
LV Size (Mbytes) 52
Current LE 13
Allocated PE 13
Used PV 1

--- Physical volumes ---


PV Name /dev/disk/disk11
PV Status available
Total PE 252
Free PE 114
Autoswitch On
Proactive Polling On

# lvcreate _L
# lvcreate -L 24 -n swapvol vg08
Logical volume "/dev/vg08/swapvol" has been successfully created with
character device "/dev/vg08/rswapvol".
Logical volume "/dev/vg08/swapvol" has been successfully extended.
Volume Group configuration for /dev/vg08 has been saved in /etc/lvmconf/vg08.conf

# lvcreate -L 24 -n datavol vg08


Logical volume "/dev/vg08/datavol" has been successfully created with
character device "/dev/vg08/rdatavol".
Logical volume "/dev/vg08/datavol" has been successfully extended.
Volume Group configuration for /dev/vg08 has been saved in /etc/lvmconf/vg08.conf
#

# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
/dev/vg20/datavol on /data2 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030002 on Wed May 10
07:17:31 2017

===================================================================================
================================
part3

# newfs /dev/vg08/rdatavol
newfs: /etc/default/fs is used for determining the file system type
version 7 layout
24576 sectors, 24576 blocks of size 1024, log size 1024 blocks
largefiles supported

# mkfs -m /dev/vg08/rdatavol
mkfs: /etc/default/fs is used for determining the file system type
mkfs -F vxfs -o
ninode=unlimited,bsize=1024,version=7,inosize=256,logsize=1024,largefiles
/dev/vg08/rdatavol 24576
#

# mkdir /data3
#
#
# mount /dev/vg08/datavol /data3
#
#
# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
/dev/vg20/datavol on /data2 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030002 on Wed May 10
07:17:31 2017
/dev/vg08/datavol on /data3 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000004 on Wed May 10
09:41:42 2017
#

# vi /etc/fstab
"/etc/fstab" 9 lines, 414 characters
# System /etc/fstab file. Static information about the file systems
# See fstab(4) and sam(1M) for further details on configuring devices.
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg08/datavol /data3 vxfs defaults 0 3
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/fstab" 10 lines, 457 characters
#

# umount /data3
#
#
#
# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
/dev/vg20/datavol on /data2 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030002 on Wed May 10
07:17:31 2017
#

# mount -a
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /opt
mount: /dev/vg00/lvol5 is already mounted on /home
mount: /dev/vg00/lvol4 is already mounted on /tmp
mount: /dev/vg00/lvol1 is already mounted on /stand

# mount -a
mount: /dev/vg08/datavol is already mounted on /data3
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /opt
mount: /dev/vg00/lvol5 is already mounted on /home
mount: /dev/vg00/lvol4 is already mounted on /tmp
mount: /dev/vg00/lvol1 is already mounted on /stand
#

===================================================================================
=======================================
part 4

# mount -v
mount: /dev/vg08/datavol is already mounted on /data3 //used as
example for part 4
mount: /dev/vg00/lvol8 is already mounted on /var
mount: /dev/vg00/lvol7 is already mounted on /usr
mount: /dev/vg00/lvol6 is already mounted on /opt
mount: /dev/vg00/lvol5 is already mounted on /home
mount: /dev/vg00/lvol4 is already mounted on /tmp
mount: /dev/vg00/lvol1 is already mounted on /stand

# cd /data3
# cp /usr/bin/d* /data3 2>/dev/null
# ls /data3
date delta diff dirname
domainname dosll dspcat dtsd
dc deroff diff3 disable dos2ux
dosls dspmsg du
dce_login df diffmk dmpxlt
doschmod dosmkdir dts_ntp_provider dumpfs
dcecp dhcpv6client_ui dig dnssec-keygen doscp
dosrm dts_null_provider dumpmsg
dd dhcpv6db2conf dircmp dnssec-signzone dosdf
dosrmdir dtscp lost+found
#

# pwd
/data3
# umount /data3
umount: cannot unmount /dev/vg08/datavol : Device busy
umount: return error 1.
#cd ..
#pwd
/
# umount /data3
#

# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
/dev/vg20/datavol on /data2 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030002 on Wed May 10
07:17:31 2017
# cd /data2
# ls
lost+found
# cp /user
# cp /usr/bin/d* /data2 2>/dev/null

vxfs: msgcnt 4 mesg 001: V-2-1: vx_nospace - /dev/vg20/datavol file system full
(1024 block extent)#
#
#
#
#
#
# ls
date dd dhcpv6client_ui diffmk disable
domainname dosdf dts_ntp_provider
dc delta dhcpv6db2conf dig dmpxlt
dos2ux dosll dts_null_provider
dce_login deroff diff dircmp dnssec-
keygen doschmod dspcat dtscp
dcecp df diff3 dirname dnssec-
signzone doscp dspmsg lost+found
# pwd
/data2
#
#
#
# umount /data2
umount: cannot unmount /dev/vg20/datavol : Device busy
umount: return error 1.
# cd ..
# umount /data2
# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
# ls /data2
#
#
#
# mount /dev/vg20/datavol /data2
# mount -v
/dev/vg00/lvol3 on / type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000003 on Thu Apr 27
04:47:06 2017
/dev/vg00/lvol1 on /stand type vxfs
ioerror=mwdisable,nolargefiles,log,nodatainlog,tranflush,dev=40000001 on Thu Apr 27
04:47:13 2017
/dev/vg00/lvol8 on /var type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000008 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol7 on /usr type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000007 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol4 on /tmp type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000004 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol6 on /opt type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000006 on Thu Apr 27
04:47:25 2017
/dev/vg00/lvol5 on /home type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40000005 on Thu Apr 27
04:47:26 2017
-hosts on /net type autofs ignore,indirect,nosuid,soft,nobrowse,dev=4000002 on Thu
Apr 27 04:48:05 2017
/dev/vg20/lvdepot on /vol20 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030001 on Thu Apr 27
09:44:31 2017
172.16.7.85:/ISO on /mnt type nfs rsize=32768,wsize=32768,NFSv3,dev=4000003 on Thu
Apr 27 09:50:18 2017
/dev/fspd1 on /iso_img type cdfs imagepath=/vol20/HPUX11.31_1.iso inode=4 residing
on blockdevice 0x40030001, ro,rr,dev=6000001 on Thu Apr 27 10:04:08 2017
/dev/vg08/demo on /oracle type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=80000001 on Tue May 9
10:00:16 2017
/dev/vg20/datavol on /data2 type vxfs
ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=40030002 on Wed May 10
10:23:21 2017
#

Вам также может понравиться