You are here

VXVM. Grow a volume with a UFS filesystem

Comprobamos espacio libre de 2 formas:

19pespare3:/:> vxdg -g datadg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
datadg01 c3t10d0s2 c3t10d0 2100735 15577758 -
19pespare3:/:> echo '15577758 * 512 / 1024 / 1024' | bc
7606

19pespare3:/:> vxassist maxgrow datvol01 layout=concat
Volume datvol01 can be extended by 15577088 to 17674240 (8630Mb)

Ampliamos el vol al maximo:

19pespare3:/:> vxassist -g datadg growto datvol01 8630M
19pespare3:/:> growfs -M /data01 /dev/vx/rdsk/datadg/datvol01
/dev/vx/rdsk/datadg/datvol01: 17674240 sectors in 8630 cylinders of 32 tracks, 64 sectors
8630.0MB in 270 cyl groups (32 c/g, 32.00MB/g, 15872 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 65632, 131232, 196832, 262432, 328032, 393632, 459232, 524832, 590432,
656032, 721632, 787232, 852832, 918432, 984032, 1049632, 1115232, 1180832,
1246432, 1312032, 1377632, 1443232, 1508832, 1574432, 1640032, 1705632,
1771232, 1836832, 1902432, 1968032, 2033632, 2097184, 2162784, 2228384,
2293984, 2359584, 2425184, 2490784, 2556384, 2621984, 2687584, 2753184,
2818784, 2884384, 2949984, 3015584, 3081184, 3146784, 3212384, 3277984,
3343584, 3409184, 3474784, 3540384, 3605984, 3671584, 3737184, 3802784,
3868384, 3933984, 3999584, 4065184, 4130784, 4194336, 4259936, 4325536,
4391136, 4456736, 4522336, 4587936, 4653536, 4719136, 4784736, 4850336,
4915936, 4981536, 5047136, 5112736, 5178336, 5243936, 5309536, 5375136,
5440736, 5506336, 5571936, 5637536, 5703136, 5768736, 5834336, 5899936,
5965536, 6031136, 6096736, 6162336, 6227936, 6291488, 6357088, 6422688,
6488288, 6553888, 6619488, 6685088, 6750688, 6816288, 6881888, 6947488,
7013088, 7078688, 7144288, 7209888, 7275488, 7341088, 7406688, 7472288,
7537888, 7603488, 7669088, 7734688, 7800288, 7865888, 7931488, 7997088,
8062688, 8128288, 8193888, 8259488, 8325088, 8388640, 8454240, 8519840,
8585440, 8651040, 8716640, 8782240, 8847840, 8913440, 8979040, 9044640,
9110240, 9175840, 9241440, 9307040, 9372640, 9438240, 9503840, 9569440,
9635040, 9700640, 9766240, 9831840, 9897440, 9963040, 10028640, 10094240,
10159840, 10225440, 10291040, 10356640, 10422240, 10485792, 10551392,
10616992, 10682592, 10748192, 10813792, 10879392, 10944992, 11010592,
11076192, 11141792, 11207392, 11272992, 11338592, 11404192, 11469792,
11535392, 11600992, 11666592, 11732192, 11797792, 11863392, 11928992,
11994592, 12060192, 12125792, 12191392, 12256992, 12322592, 12388192,
12453792, 12519392, 12582944, 12648544, 12714144, 12779744, 12845344,
12910944, 12976544, 13042144, 13107744, 13173344, 13238944, 13304544,
13370144, 13435744, 13501344, 13566944, 13632544, 13698144, 13763744,
13829344, 13894944, 13960544, 14026144, 14091744, 14157344, 14222944,
14288544, 14354144, 14419744, 14485344, 14550944, 14616544, 14680096,
14745696, 14811296, 14876896, 14942496, 15008096, 15073696, 15139296,
15204896, 15270496, 15336096, 15401696, 15467296, 15532896, 15598496,
15664096, 15729696, 15795296, 15860896, 15926496, 15992096, 16057696,
16123296, 16188896, 16254496, 16320096, 16385696, 16451296, 16516896,
16582496, 16648096, 16713696, 16777248, 16842848, 16908448, 16974048,
17039648, 17105248, 17170848, 17236448, 17302048, 17367648, 17433248,
17498848, 17564448, 17630048,
19pespare3:/:> df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t10d0s0 5043518 1914822 3078261 39% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 1008664 16 1008648 1% /var/run
swap 1009208 560 1008648 1% /tmp
/dev/md/dsk/d2 97306 2 87574 1% /fs_d2
/dev/md/dsk/d5 191611 2 172448 1% /fs_d5
/dev/dsk/c1t10d0s7 6050182 47946 5941735 1% /export/home
/dev/vx/dsk/datadg/datvol01
8297099 9 8238017 1% /data01

Comprobamos que no queda apenas espacio libre:

19pespare3:/:> vxdg -g datadg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
datadg01 c3t10d0s2 c3t10d0 17674902 3591 -

otra forma de ampliar vxresize:

19pespare3:/:> cd /etc/vx/bin
19pespare3:/:> ls
egettxt vxckdiskrm vxencap vxpartrm vxslicer
strtovoff vxcntrllist vxevac vxpartrmall vxspare
vxapslice vxcxcld vxliccheck vxprtvtoc vxsparecheck
vxbadcxcld vxdevlist vxmirror vxr5check vxswapreloc
vxbaddxcld vxdiskrm vxmkboot vxr5vrfy vxtaginfo
vxbootsetup vxdisksetup vxmksdpart vxreattach vxunroot
vxcap-part vxdiskunsetup vxnewdmname vxrelocd
vxcap-vol vxdxcld vxparms vxresize
vxcheckda vxedvtoc vxpartadd vxroot
vxchksundev vxeeprom vxpartinfo vxrootmir

19pespare3:/:> ./vxresize datvol01 3G
/dev/vx/rdsk/datadg/datvol01: 6291456 sectors in 3072 cylinders of 32 tracks, 64 sectors
3072.0MB in 96 cyl groups (32 c/g, 32.00MB/g, 15872 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 65632, 131232, 196832, 262432, 328032, 393632, 459232, 524832, 590432,
656032, 721632, 787232, 852832, 918432, 984032, 1049632, 1115232, 1180832,
1246432, 1312032, 1377632, 1443232, 1508832, 1574432, 1640032, 1705632,
1771232, 1836832, 1902432, 1968032, 2033632, 2097184, 2162784, 2228384,
2293984, 2359584, 2425184, 2490784, 2556384, 2621984, 2687584, 2753184,
2818784, 2884384, 2949984, 3015584, 3081184, 3146784, 3212384, 3277984,
3343584, 3409184, 3474784, 3540384, 3605984, 3671584, 3737184, 3802784,
3868384, 3933984, 3999584, 4065184, 4130784, 4194336, 4259936, 4325536,
4391136, 4456736, 4522336, 4587936, 4653536, 4719136, 4784736, 4850336,
4915936, 4981536, 5047136, 5112736, 5178336, 5243936, 5309536, 5375136,
5440736, 5506336, 5571936, 5637536, 5703136, 5768736, 5834336, 5899936,
5965536, 6031136, 6096736, 6162336, 6227936,
19pespare3:/:> bdf
bdf: not found
19pespare3:/:> df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t10d0s0 5043518 1917309 3075774 39% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
swap 1008480 16 1008464 1% /var/run
swap 1009056 592 1008464 1% /tmp
/dev/md/dsk/d2 97306 2 87574 1% /fs_d2
/dev/md/dsk/d5 191611 2 172448 1% /fs_d5
/dev/dsk/c1t10d0s7 6050182 47946 5941735 1% /export/home
/dev/vx/dsk/datadg/datvol01
2953710 9 2894628 1% /datvol02

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://www.hpuxtips.es/?q=content/vxvm-grow-volume-ufs-filesystem [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.90.207.75 [:db_insert_placeholder_9] => 1512951212 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.